Lines 2-14
Link Here
|
2 |
<title>Koha › Administration › EDI accounts |
2 |
<title>Koha › Administration › EDI accounts |
3 |
[% IF acct_form %] |
3 |
[% IF acct_form %] |
4 |
[% IF account %] |
4 |
[% IF account %] |
5 |
’ Modify account |
5 |
› Modify account |
6 |
[% ELSE %] |
6 |
[% ELSE %] |
7 |
’ Add new account |
7 |
› Add new account |
8 |
[% END %] |
8 |
[% END %] |
9 |
[% END %] |
9 |
[% END %] |
10 |
[% IF delete_confirm %] |
10 |
[% IF delete_confirm %] |
11 |
’ Confirm deletion of account |
11 |
› Confirm deletion of account |
12 |
[% END %] |
12 |
[% END %] |
13 |
</title> |
13 |
</title> |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 19-36
Link Here
|
19 |
|
19 |
|
20 |
<div id="breadcrumbs"> |
20 |
<div id="breadcrumbs"> |
21 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
21 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
22 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</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> |
23 |
[% IF acct_form %] |
24 |
[% IF acct_form %] |
|
|
25 |
[% IF account %] |
24 |
[% IF account %] |
26 |
› Modify account |
25 |
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Modify account |
27 |
[% ELSE %] |
26 |
[% ELSE %] |
28 |
› Add new account |
27 |
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Add new account |
29 |
[% END %] |
28 |
[% END %] |
30 |
[% ELSIF delete_confirm %] |
29 |
[% ELSIF delete_confirm %] |
31 |
› Confirm deletion of account |
30 |
<a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a> › Confirm deletion of account |
32 |
[% ELSE %] |
31 |
[% ELSE %] |
33 |
› Accounts |
32 |
› EDI accounts |
34 |
[% END %] |
33 |
[% END %] |
35 |
</div> |
34 |
</div> |
36 |
|
35 |
|
Lines 42-48
Link Here
|
42 |
[% IF display %] |
41 |
[% IF display %] |
43 |
<div id="toolbar" class="btn-toolbar"> |
42 |
<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"> |
43 |
<a class="btn btn-small" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form"> |
45 |
<i class="icon-plus"></i> |
44 |
<i class="fa fa-plus"></i> |
46 |
New account |
45 |
New account |
47 |
</a> |
46 |
</a> |
48 |
</div> |
47 |
</div> |
Lines 95-101
Link Here
|
95 |
[% END %] |
94 |
[% END %] |
96 |
<li> |
95 |
<li> |
97 |
<label for="description">Description: </label> |
96 |
<label for="description">Description: </label> |
98 |
<input type="text" name="description" id="description" size="20" maxlength="90" value="[% account.description %]" /> |
97 |
<input type="text" name="description" id="description" size="20" value="[% account.description %]" /> |
99 |
</li> |
98 |
</li> |
100 |
<li> |
99 |
<li> |
101 |
[% transport_types = [ |
100 |
[% transport_types = [ |
Lines 116-142
Link Here
|
116 |
</li> |
115 |
</li> |
117 |
<li> |
116 |
<li> |
118 |
<label for="host">Remote host: </label> |
117 |
<label for="host">Remote host: </label> |
119 |
<input type="text" name="host" id="host" size="20" maxlength="90" value="[% account.host %]" /> |
118 |
<input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host %]" /> |
120 |
</li> |
119 |
</li> |
121 |
<li> |
120 |
<li> |
122 |
<label for="username">Username: </label> |
121 |
<label for="username">Username: </label> |
123 |
<input type="text" name="username" id="username" size="20" maxlength="90" value="[% account.username %]" /> |
122 |
<input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username %]" /> |
124 |
</li> |
123 |
</li> |
125 |
<li> |
124 |
<li> |
126 |
<label for="password">Password: </label> |
125 |
<label for="password">Password: </label> |
127 |
<input type="text" name="password" id="password" size="20" maxlength="90" value="[% account.password %]" /> |
126 |
<input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password %]" /> |
128 |
</li> |
127 |
</li> |
129 |
<li> |
128 |
<li> |
130 |
<label for="download_directory">Download directory: </label> |
129 |
<label for="download_directory">Download directory: </label> |
131 |
<input type="text" name="download_directory" id="download_directory" size="20" maxlength="90" |
130 |
<input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory %]" /> |
132 |
title="The download directory specifies the directory on the ftpsite from which we download quotes and invoices" |
131 |
<div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div> |
133 |
value="[% account.download_directory %]" /> |
|
|
134 |
</li> |
132 |
</li> |
135 |
<li> |
133 |
<li> |
136 |
<label for="upload_directory">Upload directory: </label> |
134 |
<label for="upload_directory">Upload directory: </label> |
137 |
<input type="text" name="upload_directory" id="upload_directory" size="20" maxlength="90" |
135 |
<input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory %]" /> |
138 |
title="The upload directory specifies the directory on the ftp site to which we upload orders" |
136 |
<div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div> |
139 |
value="[% account.upload_directory %]" /> |
|
|
140 |
</li> |
137 |
</li> |
141 |
<li> |
138 |
<li> |
142 |
<label for="id_code_qualifier">Qualifier:</label> |
139 |
<label for="id_code_qualifier">Qualifier:</label> |
Lines 156-167
Link Here
|
156 |
</li> |
153 |
</li> |
157 |
<li> |
154 |
<li> |
158 |
<label for="san">SAN: </label> |
155 |
<label for="san">SAN: </label> |
159 |
<input type="text" name="san" id="san" size="20" maxlength="90" value="[% account.san %]" /> |
156 |
<input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san %]" /> |
160 |
</li> |
157 |
</li> |
161 |
<li> |
158 |
<li> |
162 |
<label for="quotes_enabled">Quotes enabled: </label> |
159 |
<label for="quotes_enabled">Quotes enabled: </label> |
163 |
[% IF account.quotes_enabled %] |
160 |
[% IF account.quotes_enabled %] |
164 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked /> |
161 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" checked="checked" /> |
165 |
[% ELSE %] |
162 |
[% ELSE %] |
166 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" /> |
163 |
<input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="[% account.quotes_enabled %]" /> |
167 |
[% END %] |
164 |
[% END %] |
Lines 169-175
Link Here
|
169 |
<li> |
166 |
<li> |
170 |
<label for="orders_enabled">Orders enabled: </label> |
167 |
<label for="orders_enabled">Orders enabled: </label> |
171 |
[% IF account.orders_enabled %] |
168 |
[% IF account.orders_enabled %] |
172 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked /> |
169 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" checked="checked" /> |
173 |
[% ELSE %] |
170 |
[% ELSE %] |
174 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" /> |
171 |
<input type="checkbox" name="orders_enabled" id="orders_enabled" value="[% account.orders_enabled %]" /> |
175 |
[% END %] |
172 |
[% END %] |
Lines 177-183
Link Here
|
177 |
<li> |
174 |
<li> |
178 |
<label for="invoices_enabled">Invoices enabled: </label> |
175 |
<label for="invoices_enabled">Invoices enabled: </label> |
179 |
[% IF account.invoices_enabled %] |
176 |
[% IF account.invoices_enabled %] |
180 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked /> |
177 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" checked="checked" /> |
181 |
[% ELSE %] |
178 |
[% ELSE %] |
182 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" /> |
179 |
<input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="[% account.invoices_enabled %]" /> |
183 |
[% END %] |
180 |
[% END %] |
Lines 185-202
Link Here
|
185 |
<li> |
182 |
<li> |
186 |
<label for="responses_enabled">Responses enabled: </label> |
183 |
<label for="responses_enabled">Responses enabled: </label> |
187 |
[% IF account.responses_enabled %] |
184 |
[% IF account.responses_enabled %] |
188 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked /> |
185 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" checked="checked" /> |
189 |
[% ELSE %] |
186 |
[% ELSE %] |
190 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" /> |
187 |
<input type="checkbox" name="responses_enabled" id="responses_enabled" value="[% account.responses_enabled %]" /> |
191 |
[% END %] |
188 |
[% END %] |
192 |
</li> |
189 |
</li> |
193 |
<li> |
190 |
<li> |
194 |
<label for="auto_orders">Automatic ordering (Quotes generate orders without staff intervention): </label> |
191 |
<label for="auto_orders">Automatic ordering: </label> |
195 |
[% IF account.auto_orders %] |
192 |
[% IF account.auto_orders %] |
196 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked /> |
193 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked="checked" /> |
197 |
[% ELSE %] |
194 |
[% ELSE %] |
198 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" /> |
195 |
<input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" /> |
199 |
[% END %] |
196 |
[% END %] |
|
|
197 |
<div class="hint"> |
198 |
With automatic ordering quotes generate orders without staff intervention. |
199 |
</div> |
200 |
</li> |
200 |
</li> |
201 |
</ol> |
201 |
</ol> |
202 |
</fieldset> |
202 |
</fieldset> |
Lines 214-220
Link Here
|
214 |
<table> |
214 |
<table> |
215 |
<tr> |
215 |
<tr> |
216 |
<th>Vendor</th> |
216 |
<th>Vendor</th> |
217 |
<td>[% account.vendor %]</td> |
217 |
<td>[% account.vendor.name %]</td> |
218 |
</tr> |
218 |
</tr> |
219 |
<tr> |
219 |
<tr> |
220 |
<th>Description</th> |
220 |
<th>Description</th> |
Lines 230-242
Link Here
|
230 |
</table> |
230 |
</table> |
231 |
<input type="hidden" name="op" value="delete_confirmed" /> |
231 |
<input type="hidden" name="op" value="delete_confirmed" /> |
232 |
<input type="hidden" name="id" value="[% account.id %]" /> |
232 |
<input type="hidden" name="id" value="[% account.id %]" /> |
233 |
<input type="submit" class="approve" value="Yes, Delete" /> |
233 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
234 |
</form> |
234 |
</form> |
235 |
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get"> |
235 |
<form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get"> |
236 |
<input type="submit" class="deny" value="No, do not Delete" /> |
236 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
237 |
</form> |
237 |
</form> |
|
|
238 |
</div> |
238 |
[% END %] |
239 |
[% END %] |
239 |
[% IF display %] |
240 |
[% IF display %] |
|
|
241 |
[% IF ( ediaccounts ) %] |
240 |
<h2>Vendor EDI accounts</h2> |
242 |
<h2>Vendor EDI accounts</h2> |
241 |
|
243 |
|
242 |
<table> |
244 |
<table> |
Lines 248-255
Link Here
|
248 |
<th>Remote host</th> |
250 |
<th>Remote host</th> |
249 |
<th>Username</th> |
251 |
<th>Username</th> |
250 |
<th>Password</th> |
252 |
<th>Password</th> |
251 |
<th>Download Directory</th> |
253 |
<th>Download directory</th> |
252 |
<th>Upload Directory</th> |
254 |
<th>Upload directory</th> |
253 |
<th>Qualifier</th> |
255 |
<th>Qualifier</th> |
254 |
<th>SAN</th> |
256 |
<th>SAN</th> |
255 |
<th>Quotes</th> |
257 |
<th>Quotes</th> |
Lines 260-270
Link Here
|
260 |
<th>Actions</th> |
262 |
<th>Actions</th> |
261 |
</tr> |
263 |
</tr> |
262 |
[% FOREACH account IN ediaccounts %] |
264 |
[% FOREACH account IN ediaccounts %] |
263 |
[% IF loop.even %]<tr> |
265 |
<tr> |
264 |
[% ELSE %]<tr class="highlight"> |
|
|
265 |
[% END %] |
266 |
<td>[% account.id %]</td> |
266 |
<td>[% account.id %]</td> |
267 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% account.vendor_id %]">[% account.vendor.name %]</a></td> |
267 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id %]">[% account.vendor.name %]</a></td> |
268 |
<td>[% account.description %]</td> |
268 |
<td>[% account.description %]</td> |
269 |
<td>[% account.transport %]</td> |
269 |
<td>[% account.transport %]</td> |
270 |
<td>[% account.host %]</td> |
270 |
<td>[% account.host %]</td> |
Lines 306-317
Link Here
|
306 |
[% ELSE %] |
306 |
[% ELSE %] |
307 |
<td>N</td> |
307 |
<td>N</td> |
308 |
[% END %] |
308 |
[% END %] |
309 |
<td align="center"> |
309 |
<td class="actions"> |
310 |
<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> |
310 |
<a class="btn btn-mini" 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-mini" href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id %]"><i class="fa fa-trash"></i> Delete</a> |
311 |
</td> |
311 |
</td> |
312 |
</tr> |
312 |
</tr> |
313 |
[% END %] |
313 |
[% END %] |
314 |
</table> |
314 |
</table> |
|
|
315 |
[% ELSE %] |
316 |
<div class="dialog message"> |
317 |
There are no EDI accounts. |
318 |
</div> |
319 |
[% END %] |
315 |
[% END %] |
320 |
[% END %] |
316 |
|
321 |
|
317 |
</div> |
322 |
</div> |