Lines 879-885
Link Here
|
879 |
<input type="submit" name="submit" value="Update hold(s)" /> |
879 |
<input type="submit" name="submit" value="Update hold(s)" /> |
880 |
<fieldset id="cancellation-reason-fieldset" class="action"> |
880 |
<fieldset id="cancellation-reason-fieldset" class="action"> |
881 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
881 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
882 |
[% IF hold_cancellation %] |
882 |
[% IF hold_cancellation && cancel_notice_branches.size %] |
883 |
<label for="cancellation-reason">Cancellation reason: </label> |
883 |
<label for="cancellation-reason">Cancellation reason: </label> |
884 |
<select class="cancellation-reason" name="cancellation-reason" id="cancellation-reason"> |
884 |
<select class="cancellation-reason" name="cancellation-reason" id="cancellation-reason"> |
885 |
<option value="">No reason given</option> |
885 |
<option value="">No reason given</option> |
Lines 921-927
Link Here
|
921 |
[% END %] |
921 |
[% END %] |
922 |
<fieldset> |
922 |
<fieldset> |
923 |
<legend>[% Branches.GetName( b ) | html %]</legend> |
923 |
<legend>[% Branches.GetName( b ) | html %]</legend> |
924 |
[% INCLUDE holds_table.inc holds=holds_by_branch %] |
924 |
[% INCLUDE holds_table.inc holds=holds_by_branch cancel_notice_branches=cancel_notice_branches %] |
925 |
</fieldset> |
925 |
</fieldset> |
926 |
[% END # /FOREACh b %] |
926 |
[% END # /FOREACh b %] |
927 |
[% ELSIF Koha.Preference('HoldsSplitQueue') == 'itemtype' %] |
927 |
[% ELSIF Koha.Preference('HoldsSplitQueue') == 'itemtype' %] |
Lines 1032-1038
Link Here
|
1032 |
|
1032 |
|
1033 |
<fieldset class="action"> |
1033 |
<fieldset class="action"> |
1034 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1034 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1035 |
[% IF hold_cancellation %] |
1035 |
[% IF hold_cancellation && cancel_notice_branches.size %] |
1036 |
<label for="cancellation-reason">Cancellation reason: </label> |
1036 |
<label for="cancellation-reason">Cancellation reason: </label> |
1037 |
<select class="cancellation-reason" name="modal-cancellation-reason" id="modal-cancellation-reason"> |
1037 |
<select class="cancellation-reason" name="modal-cancellation-reason" id="modal-cancellation-reason"> |
1038 |
<option value="">No reason given</option> |
1038 |
<option value="">No reason given</option> |
Lines 1092-1103
Link Here
|
1092 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
1092 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
1093 |
|
1093 |
|
1094 |
$(document).ready(function() { |
1094 |
$(document).ready(function() { |
1095 |
$('#cancellation-reason-fieldset').hide(); |
1095 |
$('#cancellation-reason-fieldset, .no-notice-warning').hide(); |
1096 |
$('.rank-request').on('change', function() { |
1096 |
$('.rank-request').on('change', function() { |
1097 |
if ( $(".rank-request option:selected[value='del']").length ) { |
1097 |
if ( $(".rank-request option:selected[value='del']").length ) { |
1098 |
$('#cancellation-reason-fieldset').show(); |
1098 |
$('#cancellation-reason-fieldset').show(); |
|
|
1099 |
$('.no-notice-warning').show(); |
1099 |
} else { |
1100 |
} else { |
1100 |
$('#cancellation-reason-fieldset').hide(); |
1101 |
$('#cancellation-reason-fieldset').hide(); |
|
|
1102 |
$('.no-notice-warning').hide(); |
1101 |
} |
1103 |
} |
1102 |
}); |
1104 |
}); |
1103 |
|
1105 |
|