4 [% INCLUDE 'doc-head-open.inc' %]
11 [% END %] › [% END %]
12 [% IF delete_confirm %]
13 Confirm deletion of account › [% END %]
14 EDI accounts › Administration › Koha
16 [% INCLUDE 'doc-head-close.inc' %]
18 <body id="admin_edi_acct" class="admin">
19 [% INCLUDE 'header.inc' %]
20 [% INCLUDE 'prefs-admin-search.inc' %]
22 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
25 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
28 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
33 <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
37 <a href="#" aria-current="page">
43 <a href="#" aria-current="page">
49 [% ELSIF delete_confirm %]
51 <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
54 <a href="#" aria-current="page">
55 Confirm deletion of account
61 <a href="#" aria-current="page">
69 <div class="main container-fluid">
71 <div class="col-sm-10 col-sm-push-2">
75 <div id="toolbar" class="btn-toolbar">
76 <a class="btn btn-default" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
77 <i class="fa fa-plus"></i>
84 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
85 <input type="hidden" name="op" value="save" />
87 <input type="hidden" name="id" value="[% account.id | html %]" />
89 <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="quotes_enabled">Quotes enabled: </label>
190 [% IF account.quotes_enabled %]
191 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
193 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
197 <label for="orders_enabled">Orders enabled: </label>
198 [% IF account.orders_enabled %]
199 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
201 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
205 <label for="invoices_enabled">Invoices enabled: </label>
206 [% IF account.invoices_enabled %]
207 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
209 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
213 <label for="responses_enabled">Responses enabled: </label>
214 [% IF account.responses_enabled %]
215 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
217 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
221 <label for="auto_orders">Automatic ordering: </label>
222 [% IF account.auto_orders %]
223 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
225 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
228 With automatic ordering quotes generate orders without staff intervention.
234 <fieldset class="action">
235 <input type="submit" value="Submit" />
236 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
241 [% IF delete_confirm %]
242 <div class="dialog alert">
243 <h3>Delete this account?</h3>
247 <td>[% account.vendor.name | html %]</td>
251 <td>[% account.description | html %]</td>
255 <td>[% account.san | html %]</td>
258 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
261 <input type="hidden" name="op" value="delete_confirmed" />
262 <input type="hidden" name="id" value="[% account.id | html %]" />
263 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
265 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
266 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
271 [% IF ( ediaccounts ) %]
272 <h2>Vendor EDI accounts</h2>
283 <th>Download directory</th>
284 <th>Upload directory</th>
291 <th>Auto ordering</th>
292 <th class="noExport">Actions</th>
294 [% FOREACH account IN ediaccounts %]
296 <td>[% account.id | html %]</td>
297 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
298 <td>[% account.description | html %]</td>
299 <td>[% account.transport | html %]</td>
300 <td>[% account.host | html %]</td>
301 <td>[% account.username | html %]</td>
302 <td>[% IF account.password %]*****[% END %]</td>
303 <td>[% account.download_directory | html %]</td>
304 <td>[% account.upload_directory | html %]</td>
306 [% FOREACH qualifier IN code_qualifiers %]
307 [% IF qualifier.code == account.id_code_qualifier %]
308 [% qualifier.description | html %]
311 ([% account.id_code_qualifier | html %])
313 <td>[% account.san | html %]</td>
314 [% IF account.quotes_enabled %]
319 [% IF account.orders_enabled %]
324 [% IF account.invoices_enabled %]
329 [% IF account.responses_enabled %]
334 [% IF account.auto_orders %]
340 <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>
346 <div class="dialog message">
347 There are no EDI accounts.
353 </div> <!-- /.col-sm-10.col-sm-push-2 -->
355 <div class="col-sm-2 col-sm-pull-10">
357 [% INCLUDE 'admin-menu.inc' %]
359 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
360 </div> <!-- /.row -->
362 [% MACRO jsinclude BLOCK %]
363 [% Asset.js("js/admin-menu.js") | $raw %]
365 [% INCLUDE 'intranet-bottom.inc' %]