Lines 46-52
var relatives_borrowernumbers = new Array();
Link Here
|
46 |
relatives_borrowernumbers.push("[% b %]"); |
46 |
relatives_borrowernumbers.push("[% b %]"); |
47 |
[% END %] |
47 |
[% END %] |
48 |
|
48 |
|
49 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
|
|
50 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
49 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
51 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
50 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
52 |
|
51 |
|
Lines 159-201
$(document).ready(function() {
Link Here
|
159 |
[% END %] |
158 |
[% END %] |
160 |
|
159 |
|
161 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
160 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
162 |
<div style="display: none;" id="add_message_form"> |
|
|
163 |
<form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f"> |
164 |
<fieldset id="borrower_messages" class="brief"> |
165 |
<legend>Leave a message</legend> |
166 |
<ol> |
167 |
<li> |
168 |
<label for="message_type">Add a message for:</label> |
169 |
<select name="message_type" id="message_type"> |
170 |
<option value="L">Staff - Internal note</option> |
171 |
<option value="B">OPAC - [% firstname %] [% surname %]</option> |
172 |
</select> |
173 |
</li> |
174 |
[% IF ( canned_bor_notes_loop ) %] |
175 |
<li> |
176 |
<label for="type">Predefined notes: </label> |
177 |
<select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;"> |
178 |
<option value="">Select note</option> |
179 |
[% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %] |
180 |
<option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option> |
181 |
[% END %] |
182 |
</select> |
183 |
</li> |
184 |
[% END %] |
185 |
<li> |
186 |
<textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea> |
187 |
</li> |
188 |
</ol> |
189 |
<fieldset class="action"> |
190 |
<input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a> |
191 |
</fieldset> |
192 |
|
193 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
194 |
<input type="hidden" name="branchcode" value="[% branch %]" /> |
195 |
</fieldset> |
196 |
</form> |
197 |
</div> |
198 |
|
199 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
161 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
200 |
|
162 |
|
201 |
[% IF additional_materials %] |
163 |
[% IF additional_materials %] |
Lines 926-931
No patron matched <span class="ex">[% message %]</span>
Link Here
|
926 |
[% END %]</li> |
888 |
[% END %]</li> |
927 |
[% END %] |
889 |
[% END %] |
928 |
</ul> |
890 |
</ul> |
|
|
891 |
<a id="addnewmessageLabel" href="#add_message_form" data-toggle="modal">Add a new message</a> |
929 |
</div> |
892 |
</div> |
930 |
|
893 |
|
931 |
</div> |
894 |
</div> |