3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Administration › EDI accounts
7 › Modify account
9 › Add new account
12 [% IF delete_confirm %]
13 › Confirm deletion of account
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 <div id="breadcrumbs">
23 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
27 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Modify account
29 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Add new account
31 [% ELSIF delete_confirm %]
32 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Confirm deletion of account
38 <div id="doc3" class="yui-t2">
44 <div id="toolbar" class="btn-toolbar">
45 <a class="btn btn-default btn-sm" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
46 <i class="fa fa-plus"></i>
53 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
54 <input type="hidden" name="op" value="save" />
56 <input type="hidden" name="id" value="[% account.id %]" />
58 <fieldset class="rows">
69 <label for="vendor_id">Vendor: </label>
70 <select name="vendor_id" id="vendor_id">
71 [% FOREACH vendor IN vendors %]
72 [% IF account.vendor_id == vendor.id %]
73 <option value="[% vendor.id %]" selected="selected">[% vendor.name %]</option>
75 <option value="[% vendor.id %]">[% vendor.name %]</option>
80 [% IF plugins_enabled %]
82 <label for="plugin">Plugin: </label>
83 <select name="plugin" id="plugin">
84 <option value="">Do not use plugin</option>
85 [% FOREACH plugin IN plugins %]
86 [% IF account.plugin == plugin.class %]
87 <option value="[% plugin.class %]" selected="selected">[% plugin.metadata.name %]</option>
89 <option value="[% plugin.class %]">[% plugin.metadata.name %]</option>
95 <input type="hidden" name="plugin" value="" />
98 <label for="description">Description: </label>
99 <input type="text" name="description" id="description" size="20" value="[% account.description %]" />
102 [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
103 <label for="transport">Transport: </label>
104 <select name="transport" title="valid types of transport are FTP and SFTP"
106 [% FOREACH transport_type IN transport_types %]
107 [% IF transport_type == account.transport %]
108 <option value="[% transport_type %]" selected="selected">[% transport_type %]</option>
110 <option value="[% transport_type %]">[% transport_type %]</option>
116 <label for="host">Remote host: </label>
117 <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host %]" />
120 <label for="username">Username: </label>
121 <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username %]" />
124 <label for="password">Password: </label>
125 <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password %]" />
128 <label for="download_directory">Download directory: </label>
129 <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory %]" />
130 <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
133 <label for="upload_directory">Upload directory: </label>
134 <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory %]" />
135 <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
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="20" 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="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="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="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="checked" />
186 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" />
190 <label for="auto_orders">Automatic ordering: </label>
191 [% IF account.auto_orders %]
192 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked="checked" />
194 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" />
197 With automatic ordering quotes generate orders without staff intervention.
203 <fieldset class="action">
204 <input type="submit" value="Submit" />
205 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
210 [% IF delete_confirm %]
211 <div class="dialog alert">
212 <h3>Delete this account?</h3>
216 <td>[% account.vendor.name %]</td>
220 <td>[% account.description %]</td>
224 <td>[% account.san %]</td>
227 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
230 <input type="hidden" name="op" value="delete_confirmed" />
231 <input type="hidden" name="id" value="[% account.id %]" />
232 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
234 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
235 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
240 [% IF ( ediaccounts ) %]
241 <h2>Vendor EDI accounts</h2>
252 <th>Download directory</th>
253 <th>Upload directory</th>
260 <th>Auto ordering</th>
263 [% FOREACH account IN ediaccounts %]
265 <td>[% account.id %]</td>
266 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id %]">[% account.vendor.name %]</a></td>
267 <td>[% account.description %]</td>
268 <td>[% account.transport %]</td>
269 <td>[% account.host %]</td>
270 <td>[% account.username %]</td>
271 <td>[% IF account.password %]*****[% END %]</td>
272 <td>[% account.download_directory %]</td>
273 <td>[% account.upload_directory %]</td>
275 [% FOREACH qualifier IN code_qualifiers %]
276 [% IF qualifier.code == account.id_code_qualifier %]
277 [% qualifier.description %]
280 ([% account.id_code_qualifier %])
282 <td>[% account.san %]</td>
283 [% IF account.quotes_enabled %]
288 [% IF account.orders_enabled %]
293 [% IF account.invoices_enabled %]
298 [% IF account.responses_enabled %]
303 [% IF account.auto_orders %]
309 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id %]"><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 %]"><i class="fa fa-trash"></i> Delete</a>
315 <div class="dialog message">
316 There are no EDI accounts.
324 [% INCLUDE 'admin-menu.inc' %]
328 [% MACRO jsinclude BLOCK %]
329 [% Asset.js("js/admin-menu.js") %]
331 [% INCLUDE 'intranet-bottom.inc' %]