|
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 |
|
49 |
|
| 51 |
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %] |
50 |
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %] |
|
Lines 154-196
$(document).ready(function() {
Link Here
|
| 154 |
[% END %] |
153 |
[% END %] |
| 155 |
|
154 |
|
| 156 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
155 |
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO --> |
| 157 |
<div style="display: none;" id="add_message_form"> |
|
|
| 158 |
<form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f"> |
| 159 |
<fieldset id="borrower_messages" class="brief"> |
| 160 |
<legend>Leave a message</legend> |
| 161 |
<ol> |
| 162 |
<li> |
| 163 |
<label for="message_type">Add a message for:</label> |
| 164 |
<select name="message_type" id="message_type"> |
| 165 |
<option value="L">Staff - Internal note</option> |
| 166 |
<option value="B">OPAC - [% firstname %] [% surname %]</option> |
| 167 |
</select> |
| 168 |
</li> |
| 169 |
[% IF ( canned_bor_notes_loop ) %] |
| 170 |
<li> |
| 171 |
<label for="type">Predefined notes: </label> |
| 172 |
<select name="type" id="type" onchange="this.form.borrower_message.value=this.options[this.selectedIndex].value;"> |
| 173 |
<option value="">Select note</option> |
| 174 |
[% FOREACH canned_bor_notes_loo IN canned_bor_notes_loop %] |
| 175 |
<option value="[% canned_bor_notes_loo.lib %]">[% canned_bor_notes_loo.lib %]</option> |
| 176 |
[% END %] |
| 177 |
</select> |
| 178 |
</li> |
| 179 |
[% END %] |
| 180 |
<li> |
| 181 |
<textarea rows="3" cols="60" name="borrower_message" id="borrower_message" ></textarea> |
| 182 |
</li> |
| 183 |
</ol> |
| 184 |
<fieldset class="action"> |
| 185 |
<input type="submit" value="Save" /> <a href="#" class="cancel">Cancel</a> |
| 186 |
</fieldset> |
| 187 |
|
| 188 |
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> |
| 189 |
<input type="hidden" name="branchcode" value="[% branch %]" /> |
| 190 |
</fieldset> |
| 191 |
</form> |
| 192 |
</div> |
| 193 |
|
| 194 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
156 |
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry | $KohaDates %]</div>[% END %] |
| 195 |
|
157 |
|
| 196 |
[% IF additional_materials %] |
158 |
[% IF additional_materials %] |
|
Lines 860-865
No patron matched <span class="ex">[% message %]</span>
Link Here
|
| 860 |
[% END %]</li> |
822 |
[% END %]</li> |
| 861 |
[% END %] |
823 |
[% END %] |
| 862 |
</ul> |
824 |
</ul> |
|
|
825 |
<a id="addnewmessageLabel" href="#add_message_form" data-toggle="modal">Add a new message</a> |
| 826 |
|
| 827 |
<!-- Modal --> |
| 828 |
<div id="add_message_form" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="addnewmessageLabel" aria-hidden="true"> |
| 829 |
<div class="modal-body"> |
| 830 |
[% INCLUDE 'member-add-message.inc' %] |
| 831 |
</div> |
| 832 |
<div class="modal-footer"> |
| 833 |
<fieldset class="action"> |
| 834 |
<input type="submit" value="Save" /> </form><a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
| 835 |
</fieldset> |
| 836 |
</div> |
| 837 |
</div> |
| 863 |
</div> |
838 |
</div> |
| 864 |
|
839 |
|
| 865 |
<!-- /If flagged -->[% END %] |
840 |
<!-- /If flagged -->[% END %] |
| 866 |
- |
|
|