Lines 214-255
function searchToHold(){
Link Here
|
214 |
|
214 |
|
215 |
<!-- Modal --> |
215 |
<!-- Modal --> |
216 |
<div id="add_message_form" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addnewmessageLabel" aria-hidden="true"> |
216 |
<div id="add_message_form" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addnewmessageLabel" aria-hidden="true"> |
217 |
<div class="modal-body"> |
217 |
<form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f"> |
218 |
<form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f"> |
218 |
<div class="modal-header"> |
219 |
<fieldset id="borrower_messages" class="brief"> |
219 |
<h3>Leave a message</h3> |
220 |
<legend>Leave a message</legend> |
220 |
</div> |
221 |
<ol> |
221 |
<div class="modal-body"> |
222 |
<li> |
222 |
<div class="form-group"> |
223 |
<label for="message_type">Add a message for:</label> |
223 |
<label for="message_type">Add a message for:</label> |
224 |
<select name="message_type" id="message_type"> |
224 |
<select name="message_type" id="message_type"> |
225 |
<option value="L">Staff - Internal note</option> |
225 |
<option value="L">Staff - Internal note</option> |
226 |
<option value="B">OPAC - [% firstname | html %] [% surname | html %]</option> |
226 |
<option value="B">OPAC - [% firstname | html %] [% surname | html %]</option> |
227 |
</select> |
227 |
</select> |
228 |
</li> |
228 |
</div> |
229 |
[% bor_notes = AuthorisedValues.Get( 'BOR_NOTES' ) %] |
229 |
[% bor_notes = AuthorisedValues.Get( 'BOR_NOTES' ) %] |
230 |
[% IF bor_notes %] |
230 |
[% IF bor_notes %] |
231 |
<li> |
231 |
<div class="form-group"> |
232 |
<label for="select_patron_messages">Predefined notes: </label> |
232 |
<label for="select_patron_messages">Predefined notes: </label> |
233 |
<select name="type" id="select_patron_messages"> |
233 |
<select name="type" id="select_patron_messages"> |
234 |
<option value="">Select note</option> |
234 |
<option value="">Select note</option> |
235 |
[% FOREACH bor_note IN bor_notes %] |
235 |
[% FOREACH bor_note IN bor_notes %] |
236 |
<option value="[% bor_note.lib %]">[% bor_note.lib %]</option> |
236 |
<option value="[% bor_note.lib %]">[% bor_note.lib %]</option> |
237 |
[% END %] |
237 |
[% END %] |
238 |
</select> |
238 |
</select> |
239 |
</li> |
239 |
</div> |
240 |
[% END %] |
240 |
[% END %] |
241 |
<li> |
241 |
<div class="form-group"> |
242 |
<textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea> |
242 |
<textarea rows="3" class="modal-textarea" name="borrower_message" id="borrower_message" ></textarea> |
243 |
</li> |
243 |
</div> |
244 |
</ol> |
|
|
245 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
244 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
246 |
<input type="hidden" name="batch" value="[% batch %]" /> |
245 |
<input type="hidden" name="batch" value="[% batch %]" /> |
247 |
<input type="hidden" name="branchcode" value="[% LoginBranchcode %]" /> |
246 |
<input type="hidden" name="branchcode" value="[% LoginBranchcode %]" /> |
248 |
</fieldset> |
247 |
</div> |
249 |
</div> |
248 |
<div class="modal-footer"> |
250 |
<div class="modal-footer"> |
249 |
<button class="btn approve" type="submit"><i class="fa fa-check"></i> Save</button> |
251 |
<fieldset class="action"> |
250 |
<button class="btn deny" href="#" class="cancel" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i> Cancel</button> |
252 |
<input type="submit" value="Save" /> </form><a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
251 |
</div> |
253 |
</fieldset> |
252 |
</form> |
254 |
</div> |
|
|
255 |
</div> |
253 |
</div> |