Lines 364-381
Link Here
|
364 |
<div id="supplier-interfaces" class="page-section"> |
364 |
<div id="supplier-interfaces" class="page-section"> |
365 |
<h2>Interfaces</h2> |
365 |
<h2>Interfaces</h2> |
366 |
|
366 |
|
367 |
[% FOR interface IN vendor.interfaces %] |
367 |
[% FOR i IN vendor.interfaces %] |
368 |
<fieldset class="rows"> |
368 |
<fieldset class="rows"> |
369 |
<legend>[% interface.name | html %]</legend> |
369 |
<legend>[% i.name | html %]</legend> |
370 |
<ul> |
370 |
<ul> |
371 |
<li> |
371 |
[% IF i.type %] |
372 |
<li>Type: [% interface.type | html %]</li> |
372 |
<li>Type: [% i.type | html %]</li> |
373 |
<li>URI: [% interface.uri | html %]</li> |
373 |
[% END %] |
374 |
<li>Login: [% interface.login | html %]</li> |
374 |
[% IF i.uri %] |
375 |
<li>Password: [% interface.password | html %]</li> |
375 |
<li>URI: [% i.uri | html %]</li> |
376 |
<li>Account email: [% interface.account_email | html %]</li> |
376 |
[% END %] |
377 |
<li>Notes : [% interface.notes | html %]</li> |
377 |
[% IF i.login %] |
378 |
</li> |
378 |
<li>Login: [% i.login | html %]</li> |
|
|
379 |
[% END %] |
380 |
[% IF i.password %] |
381 |
<li>Password: <span class="password"><a href="#" class="show_password" data-plain-text-password="[% i.plain_text_password | html %]">Show</a></span></li> |
382 |
[% END %] |
383 |
[% IF i.account_email %] |
384 |
<li>Account email: [% i.account_email | html %]</li> |
385 |
[% END %] |
386 |
[% IF i.notes %] |
387 |
<li>Notes : [% i.notes | html %]</li> |
388 |
[% END %] |
379 |
</ul> |
389 |
</ul> |
380 |
</fieldset> |
390 |
</fieldset> |
381 |
[% END %] |
391 |
[% END %] |
Lines 520-528
Link Here
|
520 |
} |
530 |
} |
521 |
|
531 |
|
522 |
[% IF vendor %] |
532 |
[% IF vendor %] |
523 |
let interfaces = [% To.json(vendor.interfaces.unblessed) | $raw %]; |
533 |
let interfaces = []; |
|
|
534 |
[% FOR i_object IN vendor.interfaces %] |
535 |
[% SET i = i_object.unblessed %] |
536 |
[% SET i.password = i_object.plain_text_password %] |
537 |
interfaces.push([% To.json(i) | $raw %]); |
538 |
[% END %] |
524 |
[% ELSE %] |
539 |
[% ELSE %] |
525 |
let interfaces = []; |
540 |
let interfaces = []; |
526 |
[% END %] |
541 |
[% END %] |
527 |
function serialize_interface_form(){ |
542 |
function serialize_interface_form(){ |
528 |
interfaces = []; |
543 |
interfaces = []; |
Lines 627-632
Link Here
|
627 |
$(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0'); |
642 |
$(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0'); |
628 |
}); |
643 |
}); |
629 |
|
644 |
|
|
|
645 |
$('body').on('click', '.show_password', null, function(e){ |
646 |
e.preventDefault(); |
647 |
$(this).parent().replaceWith($(this).data('plain-text-password')); |
648 |
}); |
630 |
refresh_aliases(); |
649 |
refresh_aliases(); |
631 |
refresh_interfaces(); |
650 |
refresh_interfaces(); |
632 |
|
651 |
|
633 |
- |
|
|