2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › EDI accounts
6 › Modify account
8 › Add new account
11 [% IF delete_confirm %]
12 › Confirm deletion of account
15 [% INCLUDE 'doc-head-close.inc' %]
17 <body id="admin_edi_acct" class="admin">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'prefs-admin-search.inc' %]
21 <div id="breadcrumbs">
22 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
23 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
26 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Modify account
28 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Add new account
30 [% ELSIF delete_confirm %]
31 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Confirm deletion of account
37 <div id="doc3" class="yui-t2">
43 <div id="toolbar" class="btn-toolbar">
44 <a class="btn btn-default btn-sm" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
45 <i class="fa fa-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>
79 [% IF plugins_enabled %]
81 <label for="plugin">Plugin: </label>
82 <select name="plugin" id="plugin">
83 <option value="">Do not use plugin</option>
84 [% FOREACH plugin IN plugins %]
85 [% IF account.plugin == plugin.class %]
86 <option value="[% plugin.class %]" selected="selected">[% plugin.metadata.name %]</option>
88 <option value="[% plugin.class %]">[% plugin.metadata.name %]</option>
94 <input type="hidden" name="plugin" value="" />
97 <label for="description">Description: </label>
98 <input type="text" name="description" id="description" size="20" value="[% account.description %]" />
101 [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
102 <label for="transport">Transport: </label>
103 <select name="transport" title="valid types of transport are FTP and SFTP"
105 [% FOREACH transport_type IN transport_types %]
106 [% IF transport_type == account.transport %]
107 <option value="[% transport_type %]" selected="selected">[% transport_type %]</option>
109 <option value="[% transport_type %]">[% transport_type %]</option>
115 <label for="host">Remote host: </label>
116 <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host %]" />
119 <label for="username">Username: </label>
120 <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username %]" />
123 <label for="password">Password: </label>
124 <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password %]" />
127 <label for="download_directory">Download directory: </label>
128 <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory %]" />
129 <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
132 <label for="upload_directory">Upload directory: </label>
133 <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory %]" />
134 <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
137 <label for="id_code_qualifier">Qualifier:</label>
138 <select name="id_code_qualifier" id="id_code_qualifier">
139 [% FOREACH qualifier IN code_qualifiers %]
140 [% IF qualifier.code == account.id_code_qualifier %]
141 <option value="[% qualifier.code %]" selected="selected">
142 [% qualifier.description %] ([% qualifier.code %])
145 <option value="[% qualifier.code %]">
146 [% qualifier.description %] ([% qualifier.code %])
153 <label for="san">SAN: </label>
154 <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san %]" />
157 <label for="quotes_enabled">Quotes enabled: </label>
158 [% IF account.quotes_enabled %]
159 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked="checked" />
161 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" />
165 <label for="orders_enabled">Orders enabled: </label>
166 [% IF account.orders_enabled %]
167 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked="checked" />
169 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" />
173 <label for="invoices_enabled">Invoices enabled: </label>
174 [% IF account.invoices_enabled %]
175 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked="checked" />
177 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" />
181 <label for="responses_enabled">Responses enabled: </label>
182 [% IF account.responses_enabled %]
183 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked="checked" />
185 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" />
189 <label for="auto_orders">Automatic ordering: </label>
190 [% IF account.auto_orders %]
191 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked="checked" />
193 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" />
196 With automatic ordering quotes generate orders without staff intervention.
202 <fieldset class="action">
203 <input type="submit" value="Submit" />
204 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
209 [% IF delete_confirm %]
210 <div class="dialog alert">
211 <h3>Delete this account?</h3>
215 <td>[% account.vendor.name %]</td>
219 <td>[% account.description %]</td>
223 <td>[% account.san %]</td>
226 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
229 <input type="hidden" name="op" value="delete_confirmed" />
230 <input type="hidden" name="id" value="[% account.id %]" />
231 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
233 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
234 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
239 [% IF ( ediaccounts ) %]
240 <h2>Vendor EDI accounts</h2>
251 <th>Download directory</th>
252 <th>Upload directory</th>
259 <th>Auto ordering</th>
262 [% FOREACH account IN ediaccounts %]
264 <td>[% account.id %]</td>
265 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id %]">[% account.vendor.name %]</a></td>
266 <td>[% account.description %]</td>
267 <td>[% account.transport %]</td>
268 <td>[% account.host %]</td>
269 <td>[% account.username %]</td>
270 <td>[% IF account.password %]*****[% END %]</td>
271 <td>[% account.download_directory %]</td>
272 <td>[% account.upload_directory %]</td>
274 [% FOREACH qualifier IN code_qualifiers %]
275 [% IF qualifier.code == account.id_code_qualifier %]
276 [% qualifier.description %]
279 ([% account.id_code_qualifier %])
281 <td>[% account.san %]</td>
282 [% IF account.quotes_enabled %]
287 [% IF account.orders_enabled %]
292 [% IF account.invoices_enabled %]
297 [% IF account.responses_enabled %]
302 [% IF account.auto_orders %]
308 <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>
314 <div class="dialog message">
315 There are no EDI accounts.
323 [% INCLUDE 'admin-menu.inc' %]
327 [% MACRO jsinclude BLOCK %]
328 <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
330 [% INCLUDE 'intranet-bottom.inc' %]