Lines 45-51
var relatives_borrowernumbers = new Array();
Link Here
|
45 |
relatives_borrowernumbers.push("[% b %]"); |
45 |
relatives_borrowernumbers.push("[% b %]"); |
46 |
[% END %] |
46 |
[% END %] |
47 |
|
47 |
|
48 |
var MSG_ADD_MESSAGE = _("Add a new message"); |
|
|
49 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
48 |
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); |
50 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
49 |
var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); |
51 |
|
50 |
|
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 856-861
No patron matched <span class="ex">[% message %]</span>
Link Here
|
856 |
[% END %]</li> |
818 |
[% END %]</li> |
857 |
[% END %] |
819 |
[% END %] |
858 |
</ul> |
820 |
</ul> |
|
|
821 |
<a id="addnewmessageLabel" href="#add_message_form" data-toggle="modal">Add a new message</a> |
859 |
</div> |
822 |
</div> |
860 |
|
823 |
|
861 |
</div> |
824 |
</div> |