Lines 515-531
legend.collapsed i.fa.fa-caret-down::before {
Link Here
|
515 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
515 |
<li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]"> |
516 |
<span class="label">Guarantor:</span> |
516 |
<span class="label">Guarantor:</span> |
517 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
517 |
[% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %] |
518 |
<input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value="[% r.guarantor_id | $raw %]"/> |
518 |
<input type="hidden" class="new_guarantor_id relation-[% r.id %]" name="new_guarantor_id" value="[% r.guarantor_id | $raw %]"/> |
519 |
</li> |
519 |
</li> |
520 |
<li> |
520 |
<li> |
521 |
<span class="label">Relationship:</span> |
521 |
<span class="label">Relationship:</span> |
522 |
<span>[% r.relationship | html %]</span> |
522 |
<span>[% r.relationship | html %]</span> |
523 |
<input type=hidden class="new_guarantor_relationship" name="new_guarantor_relationship" value="[% r.relationship | html %]" /> |
523 |
<input type=hidden class="new_guarantor_relationship relation-[% r.id %]" name="new_guarantor_relationship" value="[% r.relationship | html %]" /> |
524 |
</li> |
524 |
</li> |
525 |
|
525 |
|
526 |
<li> |
526 |
<li> |
527 |
<label for="delete_guarantor-[% r.id | uri %]">Remove: </label> |
527 |
<label for="delete_guarantor-[% r.id | uri %]">Remove: </label> |
528 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" /> |
528 |
<input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" onclick="toggle_guarantor_field([% r.id | html %])" /> |
529 |
</li> |
529 |
</li> |
530 |
[% END %] |
530 |
[% END %] |
531 |
</ol> |
531 |
</ol> |
Lines 1773-1778
legend.collapsed i.fa.fa-caret-down::before {
Link Here
|
1773 |
} |
1773 |
} |
1774 |
var Sticky; |
1774 |
var Sticky; |
1775 |
|
1775 |
|
|
|
1776 |
function toggle_guarantor_field(rel_number){ |
1777 |
$(".relation-"+rel_number).prop('disabled', (i, v) => !v); |
1778 |
} |
1779 |
|
1776 |
function showHideFields(){ |
1780 |
function showHideFields(){ |
1777 |
$("#messaging_prefs_loading, #guarantor_template").hide(); |
1781 |
$("#messaging_prefs_loading, #guarantor_template").hide(); |
1778 |
[% UNLESS step == 1 %] |
1782 |
[% UNLESS step == 1 %] |
1779 |
- |
|
|