Lines 368-385
Link Here
|
368 |
<div id="supplier-interfaces" class="page-section"> |
368 |
<div id="supplier-interfaces" class="page-section"> |
369 |
<h2>Interfaces</h2> |
369 |
<h2>Interfaces</h2> |
370 |
|
370 |
|
371 |
[% FOR interface IN vendor.interfaces %] |
371 |
[% FOR i IN vendor.interfaces %] |
372 |
<fieldset class="rows"> |
372 |
<fieldset class="rows"> |
373 |
<legend>[% interface.name | html %]</legend> |
373 |
<legend>[% i.name | html %]</legend> |
374 |
<ul> |
374 |
<ul> |
375 |
<li> |
375 |
[% IF i.type %] |
376 |
<li>Type: [% interface.type | html %]</li> |
376 |
<li>Type: [% i.type | html %]</li> |
377 |
<li>URI: [% interface.uri | html %]</li> |
377 |
[% END %] |
378 |
<li>Login: [% interface.login | html %]</li> |
378 |
[% IF i.uri %] |
379 |
<li>Password: [% interface.password | html %]</li> |
379 |
<li>URI: [% i.uri | html %]</li> |
380 |
<li>Account email: [% interface.account_email | html %]</li> |
380 |
[% END %] |
381 |
<li>Notes : [% interface.notes | html %]</li> |
381 |
[% IF i.login %] |
382 |
</li> |
382 |
<li>Login: [% i.login | html %]</li> |
|
|
383 |
[% END %] |
384 |
[% IF i.password %] |
385 |
<li>Password: <span class="password"><a href="#" class="show_password" data-plain-text-password="[% i.plain_text_password | html %]">Show</a></span></li> |
386 |
[% END %] |
387 |
[% IF i.account_email %] |
388 |
<li>Account email: [% i.account_email | html %]</li> |
389 |
[% END %] |
390 |
[% IF i.notes %] |
391 |
<li>Notes : [% i.notes | html %]</li> |
392 |
[% END %] |
383 |
</ul> |
393 |
</ul> |
384 |
</fieldset> |
394 |
</fieldset> |
385 |
[% END %] |
395 |
[% END %] |
Lines 539-547
Link Here
|
539 |
} |
549 |
} |
540 |
|
550 |
|
541 |
[% IF vendor %] |
551 |
[% IF vendor %] |
542 |
let interfaces = [% To.json(vendor.interfaces.unblessed) | $raw %]; |
552 |
let interfaces = []; |
|
|
553 |
[% FOR i_object IN vendor.interfaces %] |
554 |
[% SET i = i_object.unblessed %] |
555 |
[% SET i.password = i_object.plain_text_password %] |
556 |
interfaces.push([% To.json(i) | $raw %]); |
557 |
[% END %] |
543 |
[% ELSE %] |
558 |
[% ELSE %] |
544 |
let interfaces = []; |
559 |
let interfaces = []; |
545 |
[% END %] |
560 |
[% END %] |
546 |
function serialize_interface_form(){ |
561 |
function serialize_interface_form(){ |
547 |
interfaces = []; |
562 |
interfaces = []; |
Lines 646-651
Link Here
|
646 |
$(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0'); |
661 |
$(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0'); |
647 |
}); |
662 |
}); |
648 |
|
663 |
|
|
|
664 |
$('body').on('click', '.show_password', null, function(e){ |
665 |
e.preventDefault(); |
666 |
$(this).parent().replaceWith($(this).data('plain-text-password')); |
667 |
}); |
649 |
refresh_aliases(); |
668 |
refresh_aliases(); |
650 |
refresh_interfaces(); |
669 |
refresh_interfaces(); |
651 |
|
670 |
|
652 |
- |
|
|