Bug 10904: Limit patron update request management by branch
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / notices.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
9 //<![CDATA[
10     $(document).ready(function() {
11     $("#noticestable").dataTable($.extend(true, {}, dataTablesDefaults, {
12         "aaSorting": [[ 3, "desc" ]],
13         "aoColumns": [ null,null,null,{ "sType": "title-string" } ],
14         "sPaginationType": "four_button"
15     }));
16
17     $(".notice").hide();
18     $(".notice-title").click(function(e){
19         $(this).next(".notice").toggle();
20         e.preventDefault();
21     });
22     
23     });
24 //]]>
25 </script>
26 <style type="text/css">
27     p.notice { display: none; }
28     a.notice-title { font-weight: bold; display: block; }
29 </style>
30 </head>
31 <body id="pat_notices" class="pat">
32 [% INCLUDE 'header.inc' %]
33 [% INCLUDE 'patron-search.inc' %]
34
35 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Sent notices for [% INCLUDE 'patron-title.inc' %]</div>
36
37 <div id="doc3" class="yui-t2">
38     <div id="bd">
39     <div id="yui-main">
40     <div class="yui-b">
41 [% INCLUDE 'members-toolbar.inc' %]
42 <h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
43
44 [% IF ( QUEUED_MESSAGES ) %]
45     <table id="noticestable">
46         <thead>
47             <tr>
48                 <th>Notice</th>
49                 <th>Type</th>
50                 <th>Status</th>
51                 <th>Time</th>
52             </tr>
53         </thead>
54         <tbody>
55             [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
56             <tr>
57                 <td>
58             <a class="notice-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
59             <div class="notice">
60                 [% QUEUED_MESSAGE.content FILTER html_line_break %]
61             </div>
62         </td>
63                 <td>
64             [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email
65             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %]print
66             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %]feed
67             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %]sms
68             [% ELSE %][% QUEUED_MESSAGE.message_transport_type %][% END %]
69         </td>
70                 <td>
71             [% IF ( QUEUED_MESSAGE.status == 'sent' ) %]sent
72             [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %]pending
73             [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %]failed
74             [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
75             [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
76         </td>
77         <td><span title="[% QUEUED_MESSAGE.time_queued %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</span></td>
78             </tr>
79             [% END %]
80         </tbody>
81     </table>
82 [% ELSE %]
83     <div class="dialog message">There is no record of any messages that have been sent to this patron.</div>
84 [% END %]
85
86 </div>
87 </div>
88
89 <div class="yui-b">
90 [% INCLUDE 'circ-menu.inc' %]
91 </div>
92 </div>
93 [% INCLUDE 'intranet-bottom.inc' %]