Lines 100-106
Link Here
|
100 |
<div class="alert">You typed in the wrong characters in the box before submitting. Please try again.</div> |
100 |
<div class="alert">You typed in the wrong characters in the box before submitting. Please try again.</div> |
101 |
[% END %] |
101 |
[% END %] |
102 |
|
102 |
|
103 |
[% IF patron.guarantor_relationships && !Koha.Preference('OPACPrivacy') && Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %] |
103 |
[% IF patron.guarantor_relationships && !Koha.Preference('OPACPrivacy') && ( Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %] |
104 |
<fieldset class="rows" id="memberentry_privacy"> |
104 |
<fieldset class="rows" id="memberentry_privacy"> |
105 |
<legend id="privacy_legend">Privacy</legend> |
105 |
<legend id="privacy_legend">Privacy</legend> |
106 |
<ol> |
106 |
<ol> |
Lines 118-123
Link Here
|
118 |
<a id="update_privacy_guarantor_checkouts" href="#" class="btn">Update</a> |
118 |
<a id="update_privacy_guarantor_checkouts" href="#" class="btn">Update</a> |
119 |
<span id="update_privacy_guarantor_checkouts_message" class="alert" style="display:none"></span> |
119 |
<span id="update_privacy_guarantor_checkouts_message" class="alert" style="display:none"></span> |
120 |
</span> |
120 |
</span> |
|
|
121 |
</li> |
122 |
|
123 |
<li> |
124 |
<label>Allow your guarantor to view your current fines?</label> |
125 |
<select id="privacy_guarantor_fines"> |
126 |
<option value="0">No</option> |
127 |
[% IF borrower.privacy_guarantor_fines %] |
128 |
<option value="1" selected="selected">Yes</option> |
129 |
[% ELSE %] |
130 |
<option value="1">Yes</option> |
131 |
[% END %] |
132 |
</select> |
133 |
<span class="hint"> |
134 |
<a id="update_privacy_guarantor_fines" href="#" class="btn">Update</a> |
135 |
<span id="update_privacy_guarantor_fines_message" class="alert" style="display:none"></span> |
136 |
</span> |
137 |
</li> |
138 |
|
139 |
<li> |
121 |
<span class="hint"> |
140 |
<span class="hint"> |
122 |
Guaranteed by |
141 |
Guaranteed by |
123 |
[% FOREACH gr IN patron.guarantor_relationships %] |
142 |
[% FOREACH gr IN patron.guarantor_relationships %] |
Lines 1019-1038
Link Here
|
1019 |
} |
1038 |
} |
1020 |
}); |
1039 |
}); |
1021 |
|
1040 |
|
1022 |
[% IF patron.guarantor_relationships && !Koha.Preference('OPACPrivacy') && Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %] |
1041 |
[% IF patron.guarantor_relationships && !Koha.Preference('OPACPrivacy') %] |
1023 |
$('#update_privacy_guarantor_checkouts').click( function() { |
1042 |
|
1024 |
$.post( "/cgi-bin/koha/svc/patron/show_checkouts_to_relatives", { privacy_guarantor_checkouts: $('#privacy_guarantor_checkouts').val() }, null, 'json') |
1043 |
[% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %] |
1025 |
.done(function( data ) { |
1044 |
$('#update_privacy_guarantor_checkouts').click( function() { |
1026 |
var message; |
1045 |
$.post( "/cgi-bin/koha/svc/patron/show_checkouts_to_relatives", { privacy_guarantor_checkouts: $('#privacy_guarantor_checkouts').val() }, null, 'json') |
1027 |
if ( data.success ) { |
1046 |
.done(function( data ) { |
1028 |
message = _("Your setting has been updated!"); |
1047 |
var message; |
1029 |
} else { |
1048 |
if ( data.success ) { |
1030 |
message = _("Unable to update your setting!"); |
1049 |
message = _("Your setting has been updated!"); |
1031 |
} |
1050 |
} else { |
1032 |
|
1051 |
message = _("Unable to update your setting!"); |
1033 |
$('#update_privacy_guarantor_checkouts_message').fadeIn("slow").text( message ).delay( 5000 ).fadeOut("slow"); |
1052 |
} |
1034 |
}); |
1053 |
|
1035 |
}); |
1054 |
$('#update_privacy_guarantor_checkouts_message').fadeIn("slow").text( message ).delay( 5000 ).fadeOut("slow"); |
|
|
1055 |
}); |
1056 |
}); |
1057 |
[% END %] |
1058 |
|
1059 |
[% IF Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') %] |
1060 |
$('#update_privacy_guarantor_fines').click( function() { |
1061 |
$.post( "/cgi-bin/koha/svc/patron/show_fines_to_relatives", { privacy_guarantor_fines: $('#privacy_guarantor_fines').val() }, null, 'json') |
1062 |
.done(function( data ) { |
1063 |
var message; |
1064 |
if ( data.success ) { |
1065 |
message = _("Your setting has been updated!"); |
1066 |
} else { |
1067 |
message = _("Unable to update your setting!"); |
1068 |
} |
1069 |
|
1070 |
$('#update_privacy_guarantor_fines_message').fadeIn("slow").text( message ).delay( 5000 ).fadeOut("slow"); |
1071 |
}); |
1072 |
}); |
1073 |
[% END %] |
1036 |
[% END %] |
1074 |
[% END %] |
1037 |
|
1075 |
|
1038 |
$(".patron-attributes").on( 'click', '.clear-attribute', function() { |
1076 |
$(".patron-attributes").on( 'click', '.clear-attribute', function() { |