1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › EDI accounts
7 ’ Add new account
10 [% IF delete_confirm %]
11 ’ Confirm deletion of account
14 [% INCLUDE 'doc-head-close.inc' %]
16 <body id="admin_edi_acct" class="admin">
17 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'cat-search.inc' %]
20 <div id="breadcrumbs">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
23 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
26 › Modify account
28 › Add new account
30 [% ELSIF delete_confirm %]
31 › Confirm deletion of account
37 <div id="doc3" class="yui-t2">
43 <div id="toolbar" class="btn-toolbar">
44 <a class="btn btn-small" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
45 <i class="icon-plus"></i>
52 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
53 <input type="hidden" name="op" value="save" />
55 <input type="hidden" name="id" value="[% account.id %]" />
57 <fieldset class="rows">
68 <label for="vendor_id">Vendor: </label>
69 <select name="vendor_id" id="vendor_id">
70 [% FOREACH vendor IN vendors %]
71 [% IF account.vendor_id == vendor.id %]
72 <option value="[% vendor.id %]" selected="selected">[% vendor.name %]</option>
74 <option value="[% vendor.id %]">[% vendor.name %]</option>
80 <label for="plugin">Plugin: </label>
81 <select name="plugin" id="plugin">
82 <option value="">Do not use plugin</option>
83 [% FOREACH plugin IN plugins %]
84 [% IF account.plugin == plugin.class %]
85 <option value="[% plugin.class %]" selected="selected">[% plugin.metadata.name %]</option>
87 <option value="[% plugin.class %]">[% plugin.metadata.name %]</option>
93 <label for="description">Description: </label>
94 <input type="text" name="description" id="description" size="20" maxlength="90" value="[% account.description %]" />
97 [% transport_types = [
101 <label for="transport">Transport: </label>
102 <select name="transport" title="valid types of transport are FTP and SFTP"
104 [% FOREACH transport_type IN transport_types %]
105 [% IF transport_type == account.transport %]
106 <option value="[% transport_type %]" selected="selected">[% transport_type %]</option>
108 <option value="[% transport_type %]">[% transport_type %]</option>
114 <label for="host">Remote host: </label>
115 <input type="text" name="host" id="host" size="20" maxlength="90" value="[% account.host %]" />
118 <label for="username">Username: </label>
119 <input type="text" name="username" id="username" size="20" maxlength="90" value="[% account.username %]" />
122 <label for="password">Password: </label>
123 <input type="text" name="password" id="password" size="20" maxlength="90" value="[% account.password %]" />
126 <label for="download_directory">Download directory: </label>
127 <input type="text" name="download_directory" id="download_directory" size="20" maxlength="90"
128 title="The download directory specifies the directory on the ftpsite from which we download quotes and invoices"
129 value="[% account.download_directory %]" />
132 <label for="upload_directory">Upload directory: </label>
133 <input type="text" name="upload_directory" id="upload_directory" size="20" maxlength="90"
134 title="The upload directory specifies the directory on the ftp site to which we upload orders"
135 value="[% account.upload_directory %]" />
138 <label for="id_code_qualifier">Qualifier:</label>
139 <select name="id_code_qualifier" id="id_code_qualifier">
140 [% FOREACH qualifier IN code_qualifiers %]
141 [% IF qualifier.code == account.id_code_qualifier %]
142 <option value="[% qualifier.code %]" selected="selected">
143 [% qualifier.description %] ([% qualifier.code %])
146 <option value="[% qualifier.code %]">
147 [% qualifier.description %] ([% qualifier.code %])
154 <label for="san">SAN: </label>
155 <input type="text" name="san" id="san" size="20" maxlength="90" value="[% account.san %]" />
158 <label for="quotes_enabled">Quotes enabled: </label>
159 [% IF account.quotes_enabled %]
160 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked />
162 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" />
166 <label for="orders_enabled">Orders enabled: </label>
167 [% IF account.orders_enabled %]
168 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked />
170 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" />
174 <label for="invoices_enabled">Invoices enabled: </label>
175 [% IF account.invoices_enabled %]
176 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked />
178 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" />
182 <label for="responses_enabled">Responses enabled: </label>
183 [% IF account.responses_enabled %]
184 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked />
186 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" />
190 <label for="auto_orders">Automatic ordering (Quotes generate orders without staff intervention): </label>
191 [% IF account.auto_orders %]
192 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked />
194 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" />
200 <fieldset class="action">
201 <input type="submit" value="Submit" />
202 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
207 [% IF delete_confirm %]
208 <div class="dialog alert">
209 <h3>Delete this account?</h3>
213 <td>[% account.vendor %]</td>
217 <td>[% account.description %]</td>
221 <td>[% account.san %]</td>
224 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
227 <input type="hidden" name="op" value="delete_confirmed" />
228 <input type="hidden" name="id" value="[% account.id %]" />
229 <input type="submit" class="approve" value="Yes, Delete" />
231 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
232 <input type="submit" class="deny" value="No, do not Delete" />
236 <h2>Vendor EDI accounts</h2>
247 <th>Download Directory</th>
248 <th>Upload Directory</th>
255 <th>Auto ordering</th>
258 [% FOREACH account IN ediaccounts %]
259 [% IF loop.even %]<tr>
260 [% ELSE %]<tr class="highlight">
262 <td>[% account.id %]</td>
263 <td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% account.vendor_id %]">[% account.vendor.name %]</a></td>
264 <td>[% account.description %]</td>
265 <td>[% account.transport %]</td>
266 <td>[% account.host %]</td>
267 <td>[% account.username %]</td>
268 <td>[% IF account.password %]*****[% END %]</td>
269 <td>[% account.download_directory %]</td>
270 <td>[% account.upload_directory %]</td>
272 [% FOREACH qualifier IN code_qualifiers %]
273 [% IF qualifier.code == account.id_code_qualifier %]
274 [% qualifier.description %]
277 ([% account.id_code_qualifier %])
279 <td>[% account.san %]</td>
280 [% IF account.quotes_enabled %]
285 [% IF account.orders_enabled %]
290 [% IF account.invoices_enabled %]
295 [% IF account.responses_enabled %]
300 [% IF account.auto_orders %]
306 <a href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id %]">Edit</a> | <a href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id %]">Delete</a>
316 [% INCLUDE 'admin-menu.inc' %]
319 [% INCLUDE 'intranet-bottom.inc' %]