Lines 111-121
Link Here
|
111 |
[% END %] |
111 |
[% END %] |
112 |
[% END %] |
112 |
[% END %] |
113 |
|
113 |
|
114 |
<div class="modal fade" id="cancelDischargeModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> |
114 |
<div class="modal fade" id="cancelDischargeModal" tabindex="-1" aria-labelledby="cancelDischargeModal" aria-hidden="true"> |
115 |
<div class="modal-dialog modal-lg"> |
115 |
<div class="modal-dialog modal-lg"> |
116 |
<div class="modal-content"> |
116 |
<div class="modal-content"> |
117 |
<div class="modal-header"> |
117 |
<div class="modal-header"> |
118 |
<h1 class="modal-title" id="exampleModalLabel">Confirm deletion</h1> |
118 |
<h1 class="modal-title" id="cancelModalLabel">Confirm deletion</h1> |
119 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
119 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
120 |
</div> |
120 |
</div> |
121 |
<form id="cancel_modal_form" method="post" action="discharge.pl"> |
121 |
<form id="cancel_modal_form" method="post" action="discharge.pl"> |
Lines 125-135
Link Here
|
125 |
<div id="cancel_dicharge_alert" class="alert alert-danger" style="display:none;"></div> |
125 |
<div id="cancel_dicharge_alert" class="alert alert-danger" style="display:none;"></div> |
126 |
<fieldset class="action"> |
126 |
<fieldset class="action"> |
127 |
<p>Are you sure you want to cancel this discharge ? Borrower will again have right to check out books after this.</p> |
127 |
<p>Are you sure you want to cancel this discharge ? Borrower will again have right to check out books after this.</p> |
128 |
[% SET discharge_cancellation = AuthorisedValues.GetAuthValueDropbox('DISCHARGE_CANCELLATION') %] |
128 |
[% SET discharge_cancellation_reasons = AuthorisedValues.GetAuthValueDropbox('DISCHARGE_CANCELLATION') %] |
129 |
[% IF discharge_cancellation.count %] |
129 |
[% IF discharge_cancellation_reasons.count %] |
130 |
<label for="cancellation-reason">Cancellation reason: </label> |
130 |
<label for="cancellation-reason">Cancellation reason: </label> |
131 |
<select class="cancellation-reason" name="cancellation-reason" id="modal-cancellation-reason"> |
131 |
<select class="cancellation-reason" name="cancellation-reason" id="modal-cancellation-reason"> |
132 |
[% FOREACH reason IN discharge_cancellation %] |
132 |
[% FOREACH reason IN discharge_cancellation_reasons %] |
133 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
133 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
134 |
[% END %] |
134 |
[% END %] |
135 |
</select> |
135 |
</select> |
Lines 141-148
Link Here
|
141 |
<div class="modal-footer"> |
141 |
<div class="modal-footer"> |
142 |
<input id="cancelModalConfirmBtn" type="submit" class="btn btn-danger" value="Confirm cancellation" /> |
142 |
<input id="cancelModalConfirmBtn" type="submit" class="btn btn-danger" value="Confirm cancellation" /> |
143 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
143 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
144 |
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> |
|
|
145 |
<button type="button" class="btn btn-primary">Save changes</button> --> |
146 |
</div> |
144 |
</div> |
147 |
</form> |
145 |
</form> |
148 |
</div> |
146 |
</div> |
149 |
- |
|
|