|
Lines 45-51
Link Here
|
| 45 |
[% WRAPPER 'main-container.inc' aside='circ-menu' %] |
45 |
[% WRAPPER 'main-container.inc' aside='circ-menu' %] |
| 46 |
|
46 |
|
| 47 |
[% INCLUDE 'members-toolbar.inc' %] |
47 |
[% INCLUDE 'members-toolbar.inc' %] |
| 48 |
<h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1> |
48 |
<h1>Notices for [% INCLUDE 'patron-title.inc' %]</h1> |
|
|
49 |
|
| 50 |
<div class="alert alert-warning">Printing a notice will mark it as sent.</div> |
| 49 |
|
51 |
|
| 50 |
[% IF ( QUEUED_MESSAGES ) %] |
52 |
[% IF ( QUEUED_MESSAGES ) %] |
| 51 |
<div class="page-section"> |
53 |
<div class="page-section"> |
|
Lines 71-77
Link Here
|
| 71 |
<tbody> |
73 |
<tbody> |
| 72 |
[% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %] |
74 |
[% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %] |
| 73 |
<tr> |
75 |
<tr> |
| 74 |
<td><input type="checkbox" name="message_ids" value="[% QUEUED_MESSAGE.message_id | html %]" [% IF QUEDUE_MESSAGE.status == 'pending' %]disabled="disabled"[% END %] /></td> |
76 |
<td><input type="checkbox" name="message_ids" value="[% QUEUED_MESSAGE.message_id | html %]" [% IF QUEUED_MESSAGE.status == 'pending' %]disabled="disabled"[% END %] /></td> |
| 75 |
<td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</td> |
77 |
<td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</td> |
| 76 |
<td> |
78 |
<td> |
| 77 |
<a |
79 |
<a |
|
Lines 150-156
Link Here
|
| 150 |
[% END %] |
152 |
[% END %] |
| 151 |
</td> |
153 |
</td> |
| 152 |
<td class="actions" |
154 |
<td class="actions" |
| 153 |
><a target="_blank" class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% QUEUED_MESSAGE.message_id | uri %]"><i class="fa fa-print"></i> Print</a></td |
155 |
>[% IF QUEUED_MESSAGE.status != 'pending' %] |
|
|
156 |
<a target="_blank" class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% QUEUED_MESSAGE.message_id | uri %]"><i class="fa fa-print"></i> Print</a> |
| 157 |
[% END %]</td |
| 154 |
> |
158 |
> |
| 155 |
</tr> |
159 |
</tr> |
| 156 |
[% END %] |
160 |
[% END %] |
|
Lines 163-169
Link Here
|
| 163 |
</div> |
167 |
</div> |
| 164 |
<!-- /.page-section --> |
168 |
<!-- /.page-section --> |
| 165 |
[% ELSE %] |
169 |
[% ELSE %] |
| 166 |
<div class="alert alert-info">There is no record of any messages that have been sent to this patron.</div> |
170 |
<div class="alert alert-info">There is no record of any messages that have been queued for this patron.</div> |
| 167 |
[% END %] |
171 |
[% END %] |
| 168 |
[% END %] |
172 |
[% END %] |
| 169 |
<!-- Modal --> |
173 |
<!-- Modal --> |
|
Lines 236-242
Link Here
|
| 236 |
|
240 |
|
| 237 |
$(".select_all").click(function (e) { |
241 |
$(".select_all").click(function (e) { |
| 238 |
e.preventDefault(); |
242 |
e.preventDefault(); |
| 239 |
$("input[name='message_ids']").each(function () { |
243 |
$("input[name='message_ids']:not(:disabled)").each(function () { |
| 240 |
$(this).prop("checked", true); |
244 |
$(this).prop("checked", true); |
| 241 |
}); |
245 |
}); |
| 242 |
}); |
246 |
}); |
| 243 |
- |
|
|