1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › EDI accounts
5 › Modify account
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 'prefs-admin-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>
25 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Modify account
27 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Add new account
29 [% ELSIF delete_confirm %]
30 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Confirm deletion of account
36 <div id="doc3" class="yui-t2">
42 <div id="toolbar" class="btn-toolbar">
43 <a class="btn btn-default btn-sm" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
44 <i class="fa fa-plus"></i>
51 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
52 <input type="hidden" name="op" value="save" />
54 <input type="hidden" name="id" value="[% account.id %]" />
56 <fieldset class="rows">
67 <label for="vendor_id">Vendor: </label>
68 <select name="vendor_id" id="vendor_id">
69 [% FOREACH vendor IN vendors %]
70 [% IF account.vendor_id == vendor.id %]
71 <option value="[% vendor.id %]" selected="selected">[% vendor.name %]</option>
73 <option value="[% vendor.id %]">[% vendor.name %]</option>
78 [% IF plugins_enabled %]
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 <input type="hidden" name="plugin" value="" />
96 <label for="description">Description: </label>
97 <input type="text" name="description" id="description" size="20" value="[% account.description %]" />
100 [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
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="40" value="[% account.host %]" />
118 <label for="username">Username: </label>
119 <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username %]" />
122 <label for="password">Password: </label>
123 <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password %]" />
126 <label for="download_directory">Download directory: </label>
127 <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory %]" />
128 <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
131 <label for="upload_directory">Upload directory: </label>
132 <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory %]" />
133 <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
136 <label for="id_code_qualifier">Qualifier:</label>
137 <select name="id_code_qualifier" id="id_code_qualifier">
138 [% FOREACH qualifier IN code_qualifiers %]
139 [% IF qualifier.code == account.id_code_qualifier %]
140 <option value="[% qualifier.code %]" selected="selected">
141 [% qualifier.description %] ([% qualifier.code %])
144 <option value="[% qualifier.code %]">
145 [% qualifier.description %] ([% qualifier.code %])
152 <label for="san">SAN: </label>
153 <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san %]" />
156 <label for="quotes_enabled">Quotes enabled: </label>
157 [% IF account.quotes_enabled %]
158 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked="checked" />
160 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" />
164 <label for="orders_enabled">Orders enabled: </label>
165 [% IF account.orders_enabled %]
166 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked="checked" />
168 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" />
172 <label for="invoices_enabled">Invoices enabled: </label>
173 [% IF account.invoices_enabled %]
174 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked="checked" />
176 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" />
180 <label for="responses_enabled">Responses enabled: </label>
181 [% IF account.responses_enabled %]
182 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked="checked" />
184 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" />
188 <label for="auto_orders">Automatic ordering: </label>
189 [% IF account.auto_orders %]
190 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked="checked" />
192 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" />
195 With automatic ordering quotes generate orders without staff intervention.
201 <fieldset class="action">
202 <input type="submit" value="Submit" />
203 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
208 [% IF delete_confirm %]
209 <div class="dialog alert">
210 <h3>Delete this account?</h3>
214 <td>[% account.vendor.name %]</td>
218 <td>[% account.description %]</td>
222 <td>[% account.san %]</td>
225 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
228 <input type="hidden" name="op" value="delete_confirmed" />
229 <input type="hidden" name="id" value="[% account.id %]" />
230 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
232 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
233 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
238 [% IF ( ediaccounts ) %]
239 <h2>Vendor EDI accounts</h2>
250 <th>Download directory</th>
251 <th>Upload directory</th>
258 <th>Auto ordering</th>
261 [% FOREACH account IN ediaccounts %]
263 <td>[% account.id %]</td>
264 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id %]">[% account.vendor.name %]</a></td>
265 <td>[% account.description %]</td>
266 <td>[% account.transport %]</td>
267 <td>[% account.host %]</td>
268 <td>[% account.username %]</td>
269 <td>[% IF account.password %]*****[% END %]</td>
270 <td>[% account.download_directory %]</td>
271 <td>[% account.upload_directory %]</td>
273 [% FOREACH qualifier IN code_qualifiers %]
274 [% IF qualifier.code == account.id_code_qualifier %]
275 [% qualifier.description %]
278 ([% account.id_code_qualifier %])
280 <td>[% account.san %]</td>
281 [% IF account.quotes_enabled %]
286 [% IF account.orders_enabled %]
291 [% IF account.invoices_enabled %]
296 [% IF account.responses_enabled %]
301 [% IF account.auto_orders %]
307 <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>
313 <div class="dialog message">
314 There are no EDI accounts.
322 [% INCLUDE 'admin-menu.inc' %]
325 [% INCLUDE 'intranet-bottom.inc' %]