1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › EDI accounts
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 'cat-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>
23 › <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
26 › Modify account
28 › Add new account
30 [% ELSIF delete_confirm %]
31 › Confirm deletion of account
37 <div id="doc3" class="yui-t2">
43 <div id="toolbar" class="btn-toolbar">
44 <a class="btn btn-small" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
45 <i class="icon-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>
80 <label for="description">Description: </label>
81 <input type="text" name="description" id="description" size="20" maxlength="90" value="[% account.description %]" />
84 [% transport_types = [
88 <label for="transport">Transport: </label>
89 <select name="transport" title="valid types of transport are FTP and SFTP"
91 [% FOREACH transport_type IN transport_types %]
92 [% IF transport_type == account.transport %]
93 <option value="[% transport_type %]" selected="selected">[% transport_type %]</option>
95 <option value="[% transport_type %]">[% transport_type %]</option>
101 <label for="host">Remote host: </label>
102 <input type="text" name="host" id="host" size="20" maxlength="90" value="[% account.host %]" />
105 <label for="username">Username: </label>
106 <input type="text" name="username" id="username" size="20" maxlength="90" value="[% account.username %]" />
109 <label for="password">Password: </label>
110 <input type="text" name="password" id="password" size="20" maxlength="90" value="[% account.password %]" />
113 <label for="download_directory">Download directory: </label>
114 <input type="text" name="download_directory" id="download_directory" size="20" maxlength="90"
115 title="The download directory specifies the directory on the ftpsite from which we download quotes and invoices"
116 value="[% account.download_directory %]" />
119 <label for="upload_directory">Upload directory: </label>
120 <input type="text" name="upload_directory" id="upload_directory" size="20" maxlength="90"
121 title="The upload directory specifies the directory on the ftp site to which we upload orders"
122 value="[% account.upload_directory %]" />
125 <label for="id_code_qualifier">Qualifier:</label>
126 <select name="id_code_qualifier" id="id_code_qualifier">
127 [% FOREACH qualifier IN code_qualifiers %]
128 [% IF qualifier.code == account.id_code_qualifier %]
129 <option value="[% qualifier.code %]" selected="selected">
130 [% qualifier.description %]
133 <option value="[% qualifier.code %]">
134 [% qualifier.description %]
141 <label for="san">SAN: </label>
142 <input type="text" name="san" id="san" size="20" maxlength="90" value="[% account.san %]" />
145 <label for="quotes_enabled">Quotes enabled: </label>
146 [% IF account.quotes_enabled %]
147 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked />
149 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" />
153 <label for="orders_enabled">Orders enabled: </label>
154 [% IF account.orders_enabled %]
155 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked />
157 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" />
161 <label for="invoices_enabled">Invoices enabled: </label>
162 [% IF account.invoices_enabled %]
163 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked />
165 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" />
169 <label for="responses_enabled">Responses enabled: </label>
170 [% IF account.responses_enabled %]
171 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked />
173 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" />
177 <label for="auto_orders">Automatic ordring (Quotes generate orders without staff intervention): </label>
178 [% IF account.auto_orders %]
179 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked />
181 <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" />
187 <fieldset class="action">
188 <input type="submit" value="Submit" />
189 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
194 [% IF delete_confirm %]
195 <div class="dialog alert">
196 <h3>Delete this account?</h3>
200 <td>[% account.vendor %]</td>
204 <td>[% account.description %]</td>
208 <td>[% account.san %]</td>
211 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
214 <input type="hidden" name="op" value="delete_confirmed" />
215 <input type="hidden" name="id" value="[% account.id %]" />
216 <input type="submit" class="approve" value="Yes, Delete" />
218 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
219 <input type="submit" class="deny" value="No, do not Delete" />
223 <h2>Vendor EDI accounts</h2>
234 <th>Download Directory</th>
235 <th>Upload Directory</th>
236 <th>id_code_type</th>
242 <th>Auto ordering</th>
245 [% FOREACH account IN ediaccounts %]
246 [% IF loop.even %]<tr>
247 [% ELSE %]<tr class="highlight">
249 <td>[% account.id %]</td>
250 <td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% account.vendor_id %]">[% account.vendor.name %]</a></td>
251 <td>[% account.description %]</td>
252 <td>[% account.transport %]</td>
253 <td>[% account.host %]</td>
254 <td>[% account.username %]</td>
255 <td>[% IF account.password %]xxxxx[% END %]</td>
256 <td>[% account.download_directory %]</td>
257 <td>[% account.upload_directory %]</td>
258 <td>[% account.id_code_qualifier %]</td>
259 <td>[% account.san %]</td>
260 [% IF account.quotes_enabled %]
265 [% IF account.orders_enabled %]
270 [% IF account.invoices_enabled %]
275 [% IF account.responses_enabled %]
280 [% IF account.auto_orders %]
286 <a href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id %]">Edit</a> | <a href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id %]">Delete</a>
296 [% INCLUDE 'admin-menu.inc' %]
299 [% INCLUDE 'intranet-bottom.inc' %]