4 [% PROCESS 'i18n.inc' %]
6 [% INCLUDE 'doc-head-open.inc' %]
13 [% END %] › [% END %]
14 [% IF delete_confirm %]
15 Confirm deletion of account › [% END %]
16 EDI accounts › Administration › Koha
18 [% INCLUDE 'doc-head-close.inc' %]
20 <body id="admin_edi_acct" class="admin">
21 [% WRAPPER 'header.inc' %]
22 [% INCLUDE 'prefs-admin-search.inc' %]
25 [% WRAPPER 'sub-header.inc' %]
26 [% WRAPPER breadcrumbs %]
27 [% WRAPPER breadcrumb_item %]
28 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
31 [% IF acct_form || delete_confirm %]
32 [% WRAPPER breadcrumb_item %]
33 <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
36 [% WRAPPER breadcrumb_item bc_active= 1 %]
37 <span>EDI accounts</span>
43 [% WRAPPER breadcrumb_item bc_active= 1 %]
44 <span>Modify account</span>
47 [% WRAPPER breadcrumb_item bc_active= 1 %]
48 <span>Add new account</span>
52 [% ELSIF delete_confirm %]
53 [% WRAPPER breadcrumb_item bc_active= 1 %]
54 <span>Confirm deletion of account</span>
57 [% END #/ WRAPPER breadcrumbs %]
58 [% END #/ WRAPPER sub-header.inc %]
60 <div class="main container-fluid">
62 <div class="col-sm-10 col-sm-push-2">
66 [% UNLESS Koha.Preference('EDIFACT') %]
67 <div class="dialog message">
68 EDIFACT is currently disabled
73 <div id="toolbar" class="btn-toolbar">
74 <a class="btn btn-default" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
75 <i class="fa fa-plus"></i>
82 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
83 <input type="hidden" name="op" value="save" />
85 <input type="hidden" name="id" value="[% account.id | html %]" />
87 <fieldset class="rows">
100 <label for="vendor_id">Vendor: </label>
101 <select name="vendor_id" id="vendor_id">
102 [% FOREACH vendor IN vendors %]
103 [% IF account.vendor_id == vendor.id %]
104 <option value="[% vendor.id | html %]" selected="selected">[% vendor.name | html %]</option>
106 <option value="[% vendor.id | html %]">[% vendor.name | html %]</option>
113 <label for="plugin">Plugin: </label>
114 <select name="plugin" id="plugin">
115 <option value="">Do not use plugin</option>
116 [% FOREACH plugin IN plugins %]
117 [% IF account.plugin == plugin.class %]
118 <option value="[% plugin.class | html %]" selected="selected">[% plugin.metadata.name | html %]</option>
120 <option value="[% plugin.class | html %]">[% plugin.metadata.name | html %]</option>
126 <input type="hidden" name="plugin" value="" />
129 <label for="description">Description: </label>
130 <input type="text" name="description" id="description" size="20" value="[% account.description | html %]" />
133 [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
134 <label for="transport">Transport: </label>
135 <select name="transport" title="valid types of transport are FTP and SFTP"
137 [% FOREACH transport_type IN transport_types %]
138 [% IF transport_type == account.transport %]
139 <option value="[% transport_type | html %]" selected="selected">[% transport_type | html %]</option>
141 <option value="[% transport_type | html %]">[% transport_type | html %]</option>
147 <label for="host">Remote host: </label>
148 <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host | html %]" />
151 <label for="username">Username: </label>
152 <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username | html %]" />
155 <label for="password">Password: </label>
156 <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password | html %]" />
159 <label for="download_directory">Download directory: </label>
160 <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" />
161 <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
164 <label for="upload_directory">Upload directory: </label>
165 <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory | html %]" />
166 <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
169 <label for="id_code_qualifier">Qualifier:</label>
170 <select name="id_code_qualifier" id="id_code_qualifier">
171 [% FOREACH qualifier IN code_qualifiers %]
172 [% IF qualifier.code == account.id_code_qualifier %]
173 <option value="[% qualifier.code | html %]" selected="selected">
174 [% qualifier.description | html %] ([% qualifier.code | html %])
177 <option value="[% qualifier.code | html %]">
178 [% qualifier.description | html %] ([% qualifier.code | html %])
185 <label for="san">SAN: </label>
186 <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san | html %]" />
189 <label for="standard">Standard:</label>
190 <select name="standard" id="standard">
191 [% FOREACH standard IN standards %]
192 [% IF standard == 'BIC' %]
193 [% SET description = 'BiC' %]
195 [% SET description = 'EDItEUR' %]
197 [% IF standard == account.standard %]
198 <option value="[% standard | html %]" selected="selected">
199 [% description | html %]
202 <option value="[% standard | html %]">
203 [% description | html %]
210 <label for="quotes_enabled">Quotes enabled: </label>
211 [% IF account.quotes_enabled %]
212 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
214 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
218 <label for="orders_enabled">Orders enabled: </label>
219 [% IF account.orders_enabled %]
220 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
222 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
226 <label for="invoices_enabled">Invoices enabled: </label>
227 [% IF account.invoices_enabled %]
228 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
230 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
234 <label for="responses_enabled">Responses enabled: </label>
235 [% IF account.responses_enabled %]
236 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
238 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
242 <label for="auto_orders">Automatic ordering: </label>
243 [% IF account.auto_orders %]
244 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
246 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
249 With automatic ordering quotes generate orders without staff intervention.
255 <fieldset class="action">
256 <input type="submit" class="btn btn-primary" value="Submit" />
257 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
262 [% IF delete_confirm %]
263 <div class="dialog alert">
264 <h1>Delete this account?</h1>
268 <td>[% account.vendor.name | html %]</td>
272 <td>[% account.description | html %]</td>
276 <td>[% account.san | html %]</td>
279 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
282 <input type="hidden" name="op" value="delete_confirmed" />
283 <input type="hidden" name="id" value="[% account.id | html %]" />
284 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
286 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
287 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
292 [% IF ( ediaccounts ) %]
293 <h1>Vendor EDI accounts</h1>
294 <div class="page-section">
304 <th>Download directory</th>
305 <th>Upload directory</th>
309 <th>[% tp('EDIFACT message QUOTE', 'Quotes') | html %]</th>
313 <th>Auto ordering</th>
314 <th class="noExport">Actions</th>
316 [% FOREACH account IN ediaccounts %]
318 <td>[% account.id | html %]</td>
319 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
320 <td>[% account.description | html %]</td>
321 <td>[% account.transport | html %]</td>
322 <td>[% account.host | html %]</td>
323 <td>[% account.username | html %]</td>
324 <td>[% IF account.password %]*****[% END %]</td>
325 <td>[% account.download_directory | html %]</td>
326 <td>[% account.upload_directory | html %]</td>
328 [% FOREACH qualifier IN code_qualifiers %]
329 [% IF qualifier.code == account.id_code_qualifier %]
330 [% qualifier.description | html %]
333 ([% account.id_code_qualifier | html %])
335 <td>[% account.san | html %]</td>
336 <td>[% IF account.standard == 'BIC' %]BiC[% ELSE %]EDItEUR[% END %]</td>
337 [% IF account.quotes_enabled %]
342 [% IF account.orders_enabled %]
347 [% IF account.invoices_enabled %]
352 [% IF account.responses_enabled %]
357 [% IF account.auto_orders %]
363 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id | html %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id | html %]"><i class="fa fa-trash"></i> Delete</a>
368 </div> <!-- /.page-section -->
370 <div class="dialog message">
371 There are no EDI accounts.
377 </div> <!-- /.col-sm-10.col-sm-push-2 -->
379 <div class="col-sm-2 col-sm-pull-10">
381 [% INCLUDE 'admin-menu.inc' %]
383 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
384 </div> <!-- /.row -->
386 [% MACRO jsinclude BLOCK %]
387 [% Asset.js("js/admin-menu.js") | $raw %]
389 [% INCLUDE 'intranet-bottom.inc' %]