Kyle M Hall
a8942c2884
Revert "DBRev to make notes of the XSS patches and the new important dependency." This reverts commite140603a59
. Revert "Bug 13618: Specific for branches.opac_info" This reverts commit06e4a50f00
. Revert "Bug 13618: (follow-up) Specific for other prefs" This reverts commitd6475a111f
. Revert "Bug 13618: Fix for debarredcomment and patron messages" This reverts commitdd98c9df92
. Revert "Bug 13618: Do not display html tags in patron's notices" This reverts commita065b243fe
. Revert "Bug 13618: Do not display and html tags in item fields content" This reverts commitbaeeaffbf8
. Revert "Bug 13618: Fix for system preference description" This reverts commita967a09261
. Revert "Bug 13618: Remove html filters for newly pushed code" This reverts commit0e98662b10
. Revert "Bug 13618: (follow-up) add missing lines for opac-shelves" This reverts commitfc2fb605e5
. Revert "Bug 13618: (follow-up) Specific for ColumnsSettings" This reverts commitbc308fdd9c
. Revert "Bug 13618: Fix for edit biblios and items" This reverts commit811c4e8402
. Revert "Bug 13618: followup to remove tabs" This reverts commitca8e8c397c
. Revert "Bug 13618: Fix last occurrences recently introduced to master" This reverts commitbb417b256b
. Revert "Bug 13618: Fix for news" This reverts commitae5b98020a
. Revert "Bug 13618: Fix escape on sending baskets or shelves by email" This reverts commita7731ffe25
. Revert "Bug 13618: Specific for XSLTBloc" This reverts commit11fa38dc29
. Revert "Bug 13618: Specific for Salutation on editing a patron" This reverts commit36c07ad6d3
. Revert "Bug 13618: Specific for other prefs" This reverts commite6ea281a3b
. Revert "Bug 13618 - memberentrygen.tt errors Not a GLOB reference" This reverts commit7824874557
. Revert "Bug 13618: Specific for ColumnsSettings" This reverts commit1834da3da3
. Revert "Bug 13618: Specific for IntranetUser* and OPACUser* prefs" This reverts commit21ae62b253
. Revert "Bug 13618: Fix error 'Not a GLOB reference'" This reverts commit602bdbab4c
. Revert "Bug 13618: Specific for the ISBD view" This reverts commitd254362435
. Revert "Bug 13618: Specific for pagination_bar" This reverts commit8837a8ae68
. Revert "Bug 13618: Specific places where we don't need to escape variables - intra" This reverts commit00eff140b3
. Revert "Bug 13618: Remove html filters at the intranet" This reverts commit7db851ff03
. Revert "Bug 13618: Specific places where we don't need to escape variables" This reverts commit49a3738b8d
. Revert "Bug 13618: Remove html filters at the OPAC" This reverts commitcedaa0e23e
. Revert "Bug 13618: Use Template::Stash::AutoEscaping to use the html filter" This reverts commit01b38d3b13
. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
84 lines
3.8 KiB
HTML
84 lines
3.8 KiB
HTML
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function(e){
|
|
$("div#reldebarments .remove_restriction").on("click",function(){
|
|
return confirm(_("Remove restriction?"));
|
|
});
|
|
var mrform = $("#manual_restriction_form");
|
|
var mrlink = $("#add_manual_restriction");
|
|
mrform.hide();
|
|
mrlink.on("click",function(e){
|
|
$(this).hide();
|
|
mrform.show();
|
|
e.preventDefault();
|
|
});
|
|
$("#cancel_manual_restriction").on("click",function(e){
|
|
mrlink.show();
|
|
mrform.hide();
|
|
e.preventDefault();
|
|
});
|
|
})
|
|
//]]>
|
|
</script>
|
|
|
|
<div id="reldebarments">
|
|
[% IF ( not debarments.defined || debarments.size < 1 ) %]
|
|
<p>Patron is currently unrestricted.</p>
|
|
[% ELSE %]
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Type</th>
|
|
<th>Comment</th>
|
|
<th>Expiration</th>
|
|
[% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
|
|
<th> </th>
|
|
[% END %]
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH d IN debarments %]
|
|
<tr>
|
|
<td>
|
|
[% SWITCH d.type %]
|
|
[% CASE 'MANUAL' %]
|
|
Manual
|
|
[% CASE 'OVERDUES' %]
|
|
Overdues
|
|
[% CASE 'SUSPENSION' %]
|
|
Suspension
|
|
[% CASE 'DISCHARGE' %]
|
|
Discharge
|
|
[% END %]
|
|
</td>
|
|
<td>[% d.comment %]</td>
|
|
<td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
|
|
[% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
|
|
<td>
|
|
<a class="remove_restriction" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&borrower_debarment_id=[% d.borrower_debarment_id %]&action=del">
|
|
Remove
|
|
</a>
|
|
</td>
|
|
[% END %]
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% END %]
|
|
[% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
|
|
<p><a href="#" id="add_manual_restriction">Add manual restriction</a></p>
|
|
<form method="post" action="/cgi-bin/koha/members/mod_debarment.pl" class="clearfix">
|
|
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
|
|
<input type="hidden" name="action" value="add" />
|
|
<fieldset class="rows" id="manual_restriction_form">
|
|
<legend>Add manual restriction</legend>
|
|
<ol>
|
|
<li><label for="rcomment">Comment:</label> <input type="text" id="rcomment" name="comment" /></li>
|
|
<li><label for="rexpiration">Expiration:</label> <input name="expiration" id="rexpiration" size="10" readonly="readonly" value="" class="datepicker" />
|
|
<a href='#' onclick="document.getElementById('expiration').value='';">Clear date</a></li>
|
|
</ol>
|
|
<fieldset class="action"><input type="submit" value="Add restriction" /> <a href="#" class="cancel" id="cancel_manual_restriction">Cancel</a></fieldset>
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
</div>
|