|
Lines 50-108
Link Here
|
| 50 |
<div class="row"> |
50 |
<div class="row"> |
| 51 |
<div class="col-sm-10 col-sm-push-2"> |
51 |
<div class="col-sm-10 col-sm-push-2"> |
| 52 |
<main> |
52 |
<main> |
| 53 |
<h1>Notices management</h1> |
53 |
[% INCLUDE 'messages.inc' %] |
| 54 |
|
|
|
| 55 |
[% IF notices && notices.count > 0 %] |
| 56 |
<div class="dialog message">Printing a notice will mark it as sent.</div> |
| 57 |
|
54 |
|
| 58 |
<span id="checkbox_actions" |
55 |
<h1>Notices management</h1> |
| 59 |
><a href="#" class="select_all"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="clear_all"><i class="fa fa-remove"></i> Clear all</a></span |
|
|
| 60 |
> |
| 61 |
|
56 |
|
| 62 |
<form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank"> |
57 |
<div class="dialog message">Printing a notice will mark it as sent.</div> |
| 63 |
[% INCLUDE 'csrf-token.inc' %] |
|
|
| 64 |
|
58 |
|
| 65 |
<table id="notices"> |
59 |
[% IF notices && notices.count > 0 %] |
| 66 |
<thead> |
60 |
<div class="page-section"> |
| 67 |
<tr> |
61 |
<span id="checkbox_actions" |
| 68 |
<th class="nosort"> </th> |
62 |
><a href="#" class="select_all"><i class="fa fa-check"></i> Select all</a> | <a href="#" class="clear_all"><i class="fa fa-remove"></i> Clear all</a></span |
| 69 |
<th>Time created</th> |
63 |
> |
| 70 |
<th>Patron</th> |
64 |
<form id="print_multiple" action="/cgi-bin/koha/tools/print_notice.pl" method="post" target="_blank"> |
| 71 |
<th>Notice</th> |
65 |
[% INCLUDE 'csrf-token.inc' %] |
| 72 |
<th>Type</th> |
66 |
<table id="notices"> |
| 73 |
<th>Status</th> |
67 |
<thead> |
| 74 |
<th>Updated on</th> |
|
|
| 75 |
<th class="nosort">Actions</th> |
| 76 |
</tr> |
| 77 |
</thead> |
| 78 |
<tbody> |
| 79 |
[% FOREACH notice IN notices %] |
| 80 |
<tr> |
68 |
<tr> |
| 81 |
<td><input type="checkbox" name="message_ids" value="[% notice.message_id | html %]" /></td> |
69 |
<th class="nosort"> </th> |
| 82 |
<td>[% notice.time_queued | $KohaDates with_hours = 1 %]</td> |
70 |
<th>Time created</th> |
| 83 |
<td>[% INCLUDE 'patron-title.inc' patron=notice.patron hide_patron_infos_if_needed=1 %]</td> |
71 |
<th>Patron</th> |
| 84 |
<td> |
72 |
<th>Notice</th> |
| 85 |
<a |
73 |
<th>Type</th> |
| 86 |
class="notice-title" |
74 |
<th>Status</th> |
| 87 |
data-noticeid="[% notice.message_id | html %]" |
75 |
<th>Updated on</th> |
| 88 |
href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% notice.borrowernumber | uri %]&noticeid=[% notice.message_id | uri %]" |
76 |
<th class="nosort">Actions</th> |
| 89 |
>[% notice.subject | html %]</a |
|
|
| 90 |
> |
| 91 |
<iframe class="notice" id="notice[% notice.message_id | html %]" srcdoc="[% notice.html_content | html %]"></iframe> |
| 92 |
</td> |
| 93 |
<td>[% notice.message_transport_type | html %]</td> |
| 94 |
<td>[% notice.status | html %]</td> |
| 95 |
<td>[% notice.updated_on | $KohaDates with_hours = 1 %]</td> |
| 96 |
<td class="actions" |
| 97 |
><a target="_blank" class="btn btn-default btn-xs print" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% notice.message_id | uri %]"><i class="fa fa-print"></i> Print</a></td |
| 98 |
> |
| 99 |
</tr> |
77 |
</tr> |
| 100 |
[% END %] |
78 |
</thead> |
| 101 |
</tbody> |
79 |
<tbody> |
| 102 |
</table> |
80 |
[% FOREACH notice IN notices %] |
| 103 |
|
81 |
<tr> |
| 104 |
<input type="submit" class="btn btn-primary" value="Print selected notices" id="print_multiple_button" /> |
82 |
<td><input type="checkbox" name="message_ids" value="[% notice.message_id | html %]" /></td> |
| 105 |
</form> |
83 |
<td>[% notice.time_queued | $KohaDates with_hours = 1 %]</td> |
|
|
84 |
<td>[% INCLUDE 'patron-title.inc' patron=notice.patron hide_patron_infos_if_needed=1 %]</td> |
| 85 |
<td> |
| 86 |
<a |
| 87 |
class="notice-title" |
| 88 |
data-noticeid="[% notice.message_id | html %]" |
| 89 |
href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% notice.borrowernumber | uri %]&noticeid=[% notice.message_id | uri %]" |
| 90 |
>[% notice.subject | html %]</a |
| 91 |
> |
| 92 |
<iframe class="notice" id="notice[% notice.message_id | html %]" srcdoc="[% notice.html_content | html %]"></iframe> |
| 93 |
</td> |
| 94 |
<td>[% notice.message_transport_type | html %]</td> |
| 95 |
<td>[% notice.status | html %]</td> |
| 96 |
<td>[% notice.updated_on | $KohaDates with_hours = 1 %]</td> |
| 97 |
<td class="actions" |
| 98 |
><a target="_blank" class="btn btn-default btn-xs print" href="/cgi-bin/koha/tools/print_notice.pl?message_ids=[% notice.message_id | uri %]"><i class="fa fa-print"></i> Print</a></td |
| 99 |
> |
| 100 |
</tr> |
| 101 |
[% END %] |
| 102 |
</tbody> |
| 103 |
</table> |
| 104 |
<input type="submit" class="btn btn-primary" value="Print selected notices" id="print_multiple_button" /> |
| 105 |
</form> |
| 106 |
</div> |
| 106 |
[% ELSE %] |
107 |
[% ELSE %] |
| 107 |
Use the search form on the left to find sent notices, or go directly to a patron's notices. |
108 |
Use the search form on the left to find sent notices, or go directly to a patron's notices. |
| 108 |
[% WRAPPER tabs id= "notices_patronsearch" %] |
109 |
[% WRAPPER tabs id= "notices_patronsearch" %] |
| 109 |
- |
|
|