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