|
Lines 47-53
var relatives_borrowernumbers = new Array();
Link Here
|
| 47 |
relatives_borrowernumbers.push("[% b %]"); |
47 |
relatives_borrowernumbers.push("[% b %]"); |
| 48 |
[% END %] |
48 |
[% END %] |
| 49 |
|
49 |
|
| 50 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
|
|
| 51 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
50 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
| 52 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
51 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
| 53 |
|
52 |
|
|
Lines 140-182
$(document).ready(function() {
Link Here
|
| 140 |
[% END %] |
139 |
[% END %] |
| 141 |
|
140 |
|
| 142 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
141 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
| 143 |
<div style="display: none;" id="add_message_form"> |
|
|
| 144 |
<form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f"> |
| 145 |
<fieldset id="borrower_messages" class="brief"> |
| 146 |
<legend>Leave a message</legend> |
| 147 |
<ol> |
| 148 |
<li> |
| 149 |
<label for="message_type">Add a message for:</label> |
| 150 |
<select name="message_type" id="message_type"> |
| 151 |
<option value="L">Staff - Internal note</option> |
| 152 |
<option value="B">OPAC - [% firstname %] [% surname %]</option> |
| 153 |
</select> |
| 154 |
</li> |
| 155 |
[% IF ( canned_bor_notes_loop ) %] |
| 156 |
<li> |
| 157 |
<label for="type">Predefined notes: </label> |
| 158 |
<select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;"> |
| 159 |
<option value="">Select note</option> |
| 160 |
[% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %] |
| 161 |
<option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option> |
| 162 |
[% END %] |
| 163 |
</select> |
| 164 |
</li> |
| 165 |
[% END %] |
| 166 |
<li> |
| 167 |
<textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea> |
| 168 |
</li> |
| 169 |
</ol> |
| 170 |
<fieldset class="action"> |
| 171 |
<input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a> |
| 172 |
</fieldset> |
| 173 |
|
| 174 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
| 175 |
<input type="hidden" name="branchcode" value="[% branch %]" /> |
| 176 |
</fieldset> |
| 177 |
</form> |
| 178 |
</div> |
| 179 |
|
| 180 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
142 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
| 181 |
|
143 |
|
| 182 |
[% IF additional_materials %] |
144 |
[% IF additional_materials %] |
|
Lines 876-881
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 876 |
[% END %]</li> |
838 |
[% END %]</li> |
| 877 |
[% END %] |
839 |
[% END %] |
| 878 |
</ul> |
840 |
</ul> |
|
|
841 |
<a id="addnewmessageLabel" href="#add_message_form" data-toggle="modal">Add a new message</a> |
| 879 |
</div> |
842 |
</div> |
| 880 |
|
843 |
|
| 881 |
</div> |
844 |
</div> |