Lines 122-132
Link Here
|
122 |
[% END %] |
122 |
[% END %] |
123 |
[% END %] |
123 |
[% END %] |
124 |
|
124 |
|
125 |
<div class="modal fade" id="cancelDischargeModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> |
125 |
<div class="modal fade" id="cancelDischargeModal" tabindex="-1" aria-labelledby="cancelDischargeModal" aria-hidden="true"> |
126 |
<div class="modal-dialog modal-lg"> |
126 |
<div class="modal-dialog modal-lg"> |
127 |
<div class="modal-content"> |
127 |
<div class="modal-content"> |
128 |
<div class="modal-header"> |
128 |
<div class="modal-header"> |
129 |
<h1 class="modal-title" id="exampleModalLabel">Confirm deletion</h1> |
129 |
<h1 class="modal-title" id="cancelModalLabel">Confirm deletion</h1> |
130 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
130 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
131 |
</div> |
131 |
</div> |
132 |
<form id="cancel_modal_form" method="post" action="discharge.pl"> |
132 |
<form id="cancel_modal_form" method="post" action="discharge.pl"> |
Lines 136-146
Link Here
|
136 |
<div id="cancel_dicharge_alert" class="alert alert-danger" style="display:none;"></div> |
136 |
<div id="cancel_dicharge_alert" class="alert alert-danger" style="display:none;"></div> |
137 |
<fieldset class="action"> |
137 |
<fieldset class="action"> |
138 |
<p>Are you sure you want to cancel this discharge ? Borrower will again have right to check out books after this.</p> |
138 |
<p>Are you sure you want to cancel this discharge ? Borrower will again have right to check out books after this.</p> |
139 |
[% SET discharge_cancellation = AuthorisedValues.GetAuthValueDropbox('DISCHARGE_CANCELLATION') %] |
139 |
[% SET discharge_cancellation_reasons = AuthorisedValues.GetAuthValueDropbox('DISCHARGE_CANCELLATION') %] |
140 |
[% IF discharge_cancellation.count %] |
140 |
[% IF discharge_cancellation_reasons.count %] |
141 |
<label for="cancellation-reason">Cancellation reason: </label> |
141 |
<label for="cancellation-reason">Cancellation reason: </label> |
142 |
<select class="cancellation-reason" name="cancellation-reason" id="modal-cancellation-reason"> |
142 |
<select class="cancellation-reason" name="cancellation-reason" id="modal-cancellation-reason"> |
143 |
[% FOREACH reason IN discharge_cancellation %] |
143 |
[% FOREACH reason IN discharge_cancellation_reasons %] |
144 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
144 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
145 |
[% END %] |
145 |
[% END %] |
146 |
</select> |
146 |
</select> |
Lines 152-159
Link Here
|
152 |
<div class="modal-footer"> |
152 |
<div class="modal-footer"> |
153 |
<input id="cancelModalConfirmBtn" type="submit" class="btn btn-danger" value="Confirm cancellation" /> |
153 |
<input id="cancelModalConfirmBtn" type="submit" class="btn btn-danger" value="Confirm cancellation" /> |
154 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
154 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
155 |
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> |
|
|
156 |
<button type="button" class="btn btn-primary">Save changes</button> --> |
157 |
</div> |
155 |
</div> |
158 |
</form> |
156 |
</form> |
159 |
</div> |
157 |
</div> |
160 |
- |
|
|