Lines 1-6
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
3 |
[% USE Asset %] |
3 |
[% USE Asset %] |
|
|
4 |
[% USE TablesSettings %] |
4 |
[% PROCESS 'i18n.inc' %] |
5 |
[% PROCESS 'i18n.inc' %] |
5 |
[% SET footerjs = 1 %] |
6 |
[% SET footerjs = 1 %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
Lines 289-371
Link Here
|
289 |
[% IF ( ediaccounts ) %] |
290 |
[% IF ( ediaccounts ) %] |
290 |
<h1>EDI accounts</h1> |
291 |
<h1>EDI accounts</h1> |
291 |
<div class="page-section"> |
292 |
<div class="page-section"> |
292 |
<table> |
293 |
<table id="edi_accounts_table"> |
293 |
<tr> |
294 |
<thead> |
294 |
<th>ID</th> |
|
|
295 |
<th>Vendor</th> |
296 |
<th>Description</th> |
297 |
<th>Transport</th> |
298 |
<th>Remote host</th> |
299 |
<th>Username</th> |
300 |
<th>Password</th> |
301 |
<th>Upload port</th> |
302 |
<th>Download port</th> |
303 |
<th>Download directory</th> |
304 |
<th>Upload directory</th> |
305 |
<th>Qualifier</th> |
306 |
<th>SAN</th> |
307 |
<th>Standard</th> |
308 |
<th>[% tp('EDIFACT message QUOTE', 'Quotes') | html %]</th> |
309 |
<th>Orders</th> |
310 |
<th>Invoices</th> |
311 |
<th>Responses</th> |
312 |
<th>Auto ordering</th> |
313 |
<th class="no-export">Actions</th> |
314 |
</tr> |
315 |
[% FOREACH account IN ediaccounts %] |
316 |
<tr> |
295 |
<tr> |
317 |
<td>[% account.id | html %]</td> |
296 |
<th>ID</th> |
318 |
<td><a href="/cgi-bin/koha/acquisition/vendors/[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td> |
297 |
<th>Vendor</th> |
319 |
<td>[% account.description | html %]</td> |
298 |
<th>Description</th> |
320 |
<td>[% account.transport | html %]</td> |
299 |
<th>Transport</th> |
321 |
<td>[% account.host | html %]</td> |
300 |
<th>Remote host</th> |
322 |
<td>[% account.username | html %]</td> |
301 |
<th>Username</th> |
323 |
<td>[% IF account.password %]*****[% END %]</td> |
302 |
<th>Password</th> |
324 |
<td>[% account.upload_port | html %]</td> |
303 |
<th>Upload port</th> |
325 |
<td>[% account.download_port | html %]</td> |
304 |
<th>Download port</th> |
326 |
<td>[% account.download_directory | html %]</td> |
305 |
<th>Download directory</th> |
327 |
<td>[% account.upload_directory | html %]</td> |
306 |
<th>Upload directory</th> |
328 |
<td> |
307 |
<th>Qualifier</th> |
329 |
[% FOREACH qualifier IN code_qualifiers %] |
308 |
<th>SAN</th> |
330 |
[% IF qualifier.code == account.id_code_qualifier %] |
309 |
<th>Standard</th> |
331 |
[% qualifier.description | html %] |
310 |
<th>[% tp('EDIFACT message QUOTE', 'Quotes') | html %]</th> |
332 |
[% END %] |
311 |
<th>Orders</th> |
333 |
[% END %] |
312 |
<th>Invoices</th> |
334 |
([% account.id_code_qualifier | html %]) |
313 |
<th>Responses</th> |
335 |
</td> |
314 |
<th>Auto ordering</th> |
336 |
<td>[% account.san | html %]</td> |
315 |
<th class="no-sort no-export">Actions</th> |
337 |
<td>[% IF account.standard == 'BIC' %]BiC[% ELSE %]EDItEUR[% END %]</td> |
|
|
338 |
[% IF account.quotes_enabled %] |
339 |
<td>Yes</td> |
340 |
[% ELSE %] |
341 |
<td>No</td> |
342 |
[% END %] |
343 |
[% IF account.orders_enabled %] |
344 |
<td>Yes</td> |
345 |
[% ELSE %] |
346 |
<td>No</td> |
347 |
[% END %] |
348 |
[% IF account.invoices_enabled %] |
349 |
<td>Yes</td> |
350 |
[% ELSE %] |
351 |
<td>No</td> |
352 |
[% END %] |
353 |
[% IF account.responses_enabled %] |
354 |
<td>Yes</td> |
355 |
[% ELSE %] |
356 |
<td>No</td> |
357 |
[% END %] |
358 |
[% IF account.auto_orders %] |
359 |
<td>Yes</td> |
360 |
[% ELSE %] |
361 |
<td>No</td> |
362 |
[% END %] |
363 |
<td class="actions"> |
364 |
<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-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
365 |
<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-can"></i> Delete</a> |
366 |
</td> |
367 |
</tr> |
316 |
</tr> |
368 |
[% END %] |
317 |
</thead> |
|
|
318 |
<tbody> |
319 |
[% FOREACH account IN ediaccounts %] |
320 |
<tr> |
321 |
<td>[% account.id | html %]</td> |
322 |
<td><a href="/cgi-bin/koha/acquisition/vendors/[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td> |
323 |
<td>[% account.description | html %]</td> |
324 |
<td>[% account.transport | html %]</td> |
325 |
<td>[% account.host | html %]</td> |
326 |
<td>[% account.username | html %]</td> |
327 |
<td>[% IF account.password %]*****[% END %]</td> |
328 |
<td>[% account.upload_port | html %]</td> |
329 |
<td>[% account.download_port | html %]</td> |
330 |
<td>[% account.download_directory | html %]</td> |
331 |
<td>[% account.upload_directory | html %]</td> |
332 |
<td> |
333 |
[% FOREACH qualifier IN code_qualifiers %] |
334 |
[% IF qualifier.code == account.id_code_qualifier %] |
335 |
[% qualifier.description | html %] |
336 |
[% END %] |
337 |
[% END %] |
338 |
([% account.id_code_qualifier | html %]) |
339 |
</td> |
340 |
<td>[% account.san | html %]</td> |
341 |
<td> |
342 |
[% IF account.standard == 'BIC' %] |
343 |
BiC |
344 |
[% ELSE %] |
345 |
EDItEUR |
346 |
[% END %] |
347 |
</td> |
348 |
<td> |
349 |
[% IF account.quotes_enabled %] |
350 |
Yes |
351 |
[% ELSE %] |
352 |
No |
353 |
[% END %] |
354 |
</td> |
355 |
<td> |
356 |
[% IF account.orders_enabled %] |
357 |
Yes |
358 |
[% ELSE %] |
359 |
No |
360 |
[% END %] |
361 |
</td> |
362 |
<td> |
363 |
[% IF account.invoices_enabled %] |
364 |
Yes |
365 |
[% ELSE %] |
366 |
No |
367 |
[% END %] |
368 |
</td> |
369 |
<td> |
370 |
[% IF account.responses_enabled %] |
371 |
Yes |
372 |
[% ELSE %] |
373 |
No |
374 |
[% END %] |
375 |
</td> |
376 |
<td> |
377 |
[% IF account.auto_orders %] |
378 |
Yes |
379 |
[% ELSE %] |
380 |
No |
381 |
[% END %] |
382 |
</td> |
383 |
<td class="actions"> |
384 |
<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-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
385 |
<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-can"></i> Delete</a> |
386 |
</td> |
387 |
</tr> |
388 |
[% END %] |
389 |
</tbody> |
369 |
</table> |
390 |
</table> |
370 |
</div> |
391 |
</div> |
371 |
<!-- /.page-section --> |
392 |
<!-- /.page-section --> |
Lines 377-381
Link Here
|
377 |
|
398 |
|
378 |
[% MACRO jsinclude BLOCK %] |
399 |
[% MACRO jsinclude BLOCK %] |
379 |
[% Asset.js("js/admin-menu.js") | $raw %] |
400 |
[% Asset.js("js/admin-menu.js") | $raw %] |
|
|
401 |
[% INCLUDE 'datatables.inc' %] |
402 |
<script> |
403 |
$(document).ready(function(){ |
404 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'edi_accounts', 'edi_accounts_table', 'json' ) | $raw %]; |
405 |
$("#edi_accounts_table").kohaTable( |
406 |
{ |
407 |
pagingType: "full", |
408 |
}, |
409 |
table_settings |
410 |
); |
411 |
}); |
412 |
</script> |
380 |
[% END %] |
413 |
[% END %] |
381 |
[% INCLUDE 'intranet-bottom.inc' %] |
414 |
[% INCLUDE 'intranet-bottom.inc' %] |
382 |
- |
|
|