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