4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Administration › EDI accounts
8 › Modify account
10 › Add new account
13 [% IF delete_confirm %]
14 › Confirm deletion of account
17 [% INCLUDE 'doc-head-close.inc' %]
19 <body id="admin_edi_acct" class="admin">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'prefs-admin-search.inc' %]
23 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
26 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
29 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
34 <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
38 <a href="#" aria-current="page">
44 <a href="#" aria-current="page">
50 [% ELSIF delete_confirm %]
52 <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
55 <a href="#" aria-current="page">
56 Confirm deletion of account
62 <a href="#" aria-current="page">
70 <div class="main container-fluid">
72 <div class="col-sm-10 col-sm-push-2">
76 <div id="toolbar" class="btn-toolbar">
77 <a class="btn btn-default" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
78 <i class="fa fa-plus"></i>
85 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
86 <input type="hidden" name="op" value="save" />
88 <input type="hidden" name="id" value="[% account.id | html %]" />
90 <fieldset class="rows">
101 <label for="vendor_id">Vendor: </label>
102 <select name="vendor_id" id="vendor_id">
103 [% FOREACH vendor IN vendors %]
104 [% IF account.vendor_id == vendor.id %]
105 <option value="[% vendor.id | html %]" selected="selected">[% vendor.name | html %]</option>
107 <option value="[% vendor.id | html %]">[% vendor.name | html %]</option>
114 <label for="plugin">Plugin: </label>
115 <select name="plugin" id="plugin">
116 <option value="">Do not use plugin</option>
117 [% FOREACH plugin IN plugins %]
118 [% IF account.plugin == plugin.class %]
119 <option value="[% plugin.class | html %]" selected="selected">[% plugin.metadata.name | html %]</option>
121 <option value="[% plugin.class | html %]">[% plugin.metadata.name | html %]</option>
127 <input type="hidden" name="plugin" value="" />
130 <label for="description">Description: </label>
131 <input type="text" name="description" id="description" size="20" value="[% account.description | html %]" />
134 [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
135 <label for="transport">Transport: </label>
136 <select name="transport" title="valid types of transport are FTP and SFTP"
138 [% FOREACH transport_type IN transport_types %]
139 [% IF transport_type == account.transport %]
140 <option value="[% transport_type | html %]" selected="selected">[% transport_type | html %]</option>
142 <option value="[% transport_type | html %]">[% transport_type | html %]</option>
148 <label for="host">Remote host: </label>
149 <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host | html %]" />
152 <label for="username">Username: </label>
153 <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username | html %]" />
156 <label for="password">Password: </label>
157 <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password | html %]" />
160 <label for="download_directory">Download directory: </label>
161 <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" />
162 <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
165 <label for="upload_directory">Upload directory: </label>
166 <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory | html %]" />
167 <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
170 <label for="id_code_qualifier">Qualifier:</label>
171 <select name="id_code_qualifier" id="id_code_qualifier">
172 [% FOREACH qualifier IN code_qualifiers %]
173 [% IF qualifier.code == account.id_code_qualifier %]
174 <option value="[% qualifier.code | html %]" selected="selected">
175 [% qualifier.description | html %] ([% qualifier.code | html %])
178 <option value="[% qualifier.code | html %]">
179 [% qualifier.description | html %] ([% qualifier.code | html %])
186 <label for="san">SAN: </label>
187 <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san | html %]" />
190 <label for="quotes_enabled">Quotes enabled: </label>
191 [% IF account.quotes_enabled %]
192 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
194 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
198 <label for="orders_enabled">Orders enabled: </label>
199 [% IF account.orders_enabled %]
200 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
202 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
206 <label for="invoices_enabled">Invoices enabled: </label>
207 [% IF account.invoices_enabled %]
208 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
210 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
214 <label for="responses_enabled">Responses enabled: </label>
215 [% IF account.responses_enabled %]
216 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
218 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
222 <label for="auto_orders">Automatic ordering: </label>
223 [% IF account.auto_orders %]
224 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
226 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
229 With automatic ordering quotes generate orders without staff intervention.
235 <fieldset class="action">
236 <input type="submit" value="Submit" />
237 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
242 [% IF delete_confirm %]
243 <div class="dialog alert">
244 <h3>Delete this account?</h3>
248 <td>[% account.vendor.name | html %]</td>
252 <td>[% account.description | html %]</td>
256 <td>[% account.san | html %]</td>
259 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
262 <input type="hidden" name="op" value="delete_confirmed" />
263 <input type="hidden" name="id" value="[% account.id | html %]" />
264 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
266 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
267 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
272 [% IF ( ediaccounts ) %]
273 <h2>Vendor EDI accounts</h2>
284 <th>Download directory</th>
285 <th>Upload directory</th>
292 <th>Auto ordering</th>
293 <th class="noExport">Actions</th>
295 [% FOREACH account IN ediaccounts %]
297 <td>[% account.id | html %]</td>
298 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
299 <td>[% account.description | html %]</td>
300 <td>[% account.transport | html %]</td>
301 <td>[% account.host | html %]</td>
302 <td>[% account.username | html %]</td>
303 <td>[% IF account.password %]*****[% END %]</td>
304 <td>[% account.download_directory | html %]</td>
305 <td>[% account.upload_directory | html %]</td>
307 [% FOREACH qualifier IN code_qualifiers %]
308 [% IF qualifier.code == account.id_code_qualifier %]
309 [% qualifier.description | html %]
312 ([% account.id_code_qualifier | html %])
314 <td>[% account.san | html %]</td>
315 [% IF account.quotes_enabled %]
320 [% IF account.orders_enabled %]
325 [% IF account.invoices_enabled %]
330 [% IF account.responses_enabled %]
335 [% IF account.auto_orders %]
341 <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>
347 <div class="dialog message">
348 There are no EDI accounts.
354 </div> <!-- /.col-sm-10.col-sm-push-2 -->
356 <div class="col-sm-2 col-sm-pull-10">
358 [% INCLUDE 'admin-menu.inc' %]
360 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
361 </div> <!-- /.row -->
363 [% MACRO jsinclude BLOCK %]
364 [% Asset.js("js/admin-menu.js") | $raw %]
366 [% INCLUDE 'intranet-bottom.inc' %]