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 <div id="breadcrumbs">
24 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
28 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Modify account
30 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Add new account
32 [% ELSIF delete_confirm %]
33 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Confirm deletion of account
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
45 <div id="toolbar" class="btn-toolbar">
46 <a class="btn btn-default" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
47 <i class="fa fa-plus"></i>
54 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
55 <input type="hidden" name="op" value="save" />
57 <input type="hidden" name="id" value="[% account.id | html %]" />
59 <fieldset class="rows">
70 <label for="vendor_id">Vendor: </label>
71 <select name="vendor_id" id="vendor_id">
72 [% FOREACH vendor IN vendors %]
73 [% IF account.vendor_id == vendor.id %]
74 <option value="[% vendor.id | html %]" selected="selected">[% vendor.name | html %]</option>
76 <option value="[% vendor.id | html %]">[% vendor.name | html %]</option>
83 <label for="plugin">Plugin: </label>
84 <select name="plugin" id="plugin">
85 <option value="">Do not use plugin</option>
86 [% FOREACH plugin IN plugins %]
87 [% IF account.plugin == plugin.class %]
88 <option value="[% plugin.class | html %]" selected="selected">[% plugin.metadata.name | html %]</option>
90 <option value="[% plugin.class | html %]">[% plugin.metadata.name | html %]</option>
96 <input type="hidden" name="plugin" value="" />
99 <label for="description">Description: </label>
100 <input type="text" name="description" id="description" size="20" value="[% account.description | html %]" />
103 [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
104 <label for="transport">Transport: </label>
105 <select name="transport" title="valid types of transport are FTP and SFTP"
107 [% FOREACH transport_type IN transport_types %]
108 [% IF transport_type == account.transport %]
109 <option value="[% transport_type | html %]" selected="selected">[% transport_type | html %]</option>
111 <option value="[% transport_type | html %]">[% transport_type | html %]</option>
117 <label for="host">Remote host: </label>
118 <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host | html %]" />
121 <label for="username">Username: </label>
122 <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username | html %]" />
125 <label for="password">Password: </label>
126 <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password | html %]" />
129 <label for="download_directory">Download directory: </label>
130 <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" />
131 <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
134 <label for="upload_directory">Upload directory: </label>
135 <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory | html %]" />
136 <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
139 <label for="id_code_qualifier">Qualifier:</label>
140 <select name="id_code_qualifier" id="id_code_qualifier">
141 [% FOREACH qualifier IN code_qualifiers %]
142 [% IF qualifier.code == account.id_code_qualifier %]
143 <option value="[% qualifier.code | html %]" selected="selected">
144 [% qualifier.description | html %] ([% qualifier.code | html %])
147 <option value="[% qualifier.code | html %]">
148 [% qualifier.description | html %] ([% qualifier.code | html %])
155 <label for="san">SAN: </label>
156 <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san | html %]" />
159 <label for="quotes_enabled">Quotes enabled: </label>
160 [% IF account.quotes_enabled %]
161 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
163 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
167 <label for="orders_enabled">Orders enabled: </label>
168 [% IF account.orders_enabled %]
169 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
171 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
175 <label for="invoices_enabled">Invoices enabled: </label>
176 [% IF account.invoices_enabled %]
177 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
179 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
183 <label for="responses_enabled">Responses enabled: </label>
184 [% IF account.responses_enabled %]
185 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
187 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
191 <label for="auto_orders">Automatic ordering: </label>
192 [% IF account.auto_orders %]
193 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
195 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
198 With automatic ordering quotes generate orders without staff intervention.
204 <fieldset class="action">
205 <input type="submit" value="Submit" />
206 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
211 [% IF delete_confirm %]
212 <div class="dialog alert">
213 <h3>Delete this account?</h3>
217 <td>[% account.vendor.name | html %]</td>
221 <td>[% account.description | html %]</td>
225 <td>[% account.san | html %]</td>
228 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
231 <input type="hidden" name="op" value="delete_confirmed" />
232 <input type="hidden" name="id" value="[% account.id | html %]" />
233 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
235 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
236 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
241 [% IF ( ediaccounts ) %]
242 <h2>Vendor EDI accounts</h2>
253 <th>Download directory</th>
254 <th>Upload directory</th>
261 <th>Auto ordering</th>
262 <th class="noExport">Actions</th>
264 [% FOREACH account IN ediaccounts %]
266 <td>[% account.id | html %]</td>
267 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
268 <td>[% account.description | html %]</td>
269 <td>[% account.transport | html %]</td>
270 <td>[% account.host | html %]</td>
271 <td>[% account.username | html %]</td>
272 <td>[% IF account.password %]*****[% END %]</td>
273 <td>[% account.download_directory | html %]</td>
274 <td>[% account.upload_directory | html %]</td>
276 [% FOREACH qualifier IN code_qualifiers %]
277 [% IF qualifier.code == account.id_code_qualifier %]
278 [% qualifier.description | html %]
281 ([% account.id_code_qualifier | html %])
283 <td>[% account.san | html %]</td>
284 [% IF account.quotes_enabled %]
289 [% IF account.orders_enabled %]
294 [% IF account.invoices_enabled %]
299 [% IF account.responses_enabled %]
304 [% IF account.auto_orders %]
310 <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>
316 <div class="dialog message">
317 There are no EDI accounts.
323 </div> <!-- /.col-sm-10.col-sm-push-2 -->
325 <div class="col-sm-2 col-sm-pull-10">
327 [% INCLUDE 'admin-menu.inc' %]
329 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
330 </div> <!-- /.row -->
332 [% MACRO jsinclude BLOCK %]
333 [% Asset.js("js/admin-menu.js") | $raw %]
335 [% INCLUDE 'intranet-bottom.inc' %]