Bug 9479: The member notices page doesn't display dates in the syspref format
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / notices.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script type="text/javascript">
7 //<![CDATA[
8     $(document).ready(function() {
9         $("#noticestable").tablesorter({
10             [% IF ( dateformat == 'metric' ) %]
11                 dateFormat: 'uk'
12             [% END %]
13         });
14
15     $(".message").hide();
16     $(".message-title").click(function(e){
17         $(this).next(".message").toggle();
18         e.preventDefault();
19     });
20     
21     });
22 //]]>
23 </script>
24 <style type="text/css">
25     p.message { display: none; }
26     a.message-title { font-weight: bold; display: block; }
27 </style>
28 </head>
29 <body id="pat_notices" class="pat">
30 [% INCLUDE 'header.inc' %]
31 [% INCLUDE 'patron-search.inc' %]
32
33 <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>
34
35 <div id="doc3" class="yui-t2">
36     <div id="bd">
37     <div id="yui-main">
38     <div class="yui-b">
39 [% INCLUDE 'members-toolbar.inc' %]
40 <h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
41
42
43     <table id="noticestable">
44         <thead>
45             <tr>
46                 <th>Notice</th>
47                 <th>Type</th>
48                 <th>Status</th>
49                 <th>Time</th>
50             </tr>
51         </thead>
52 [% IF ( QUEUED_MESSAGES ) %]
53         <tbody>
54             [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
55             <tr>
56                 <td>
57             <a class="message-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
58             <p class="message">
59                 [% QUEUED_MESSAGE.content FILTER html_line_break %]
60             </p>
61         </td>
62                 <td>
63             [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email
64             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %]print
65             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %]feed
66             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %]sms
67             [% ELSE %][% QUEUED_MESSAGE.message_transport_type %][% END %]
68         </td>
69                 <td>
70             [% IF ( QUEUED_MESSAGE.status == 'sent' ) %]sent
71             [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %]pending
72             [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %]failed
73             [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
74             [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
75         </td>
76         <td>[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</td>
77             </tr>
78             [% END %]
79         </tbody>
80     [% ELSE %]
81     <tr><td colspan="4">There is no record of any messages that have been sent to this patron.</td></tr>
82     [% END %]
83     </table>
84
85 </div>
86 </div>
87
88 <div class="yui-b">
89 [% INCLUDE 'circ-menu.inc' %]
90 </div>
91 </div>
92 [% INCLUDE 'intranet-bottom.inc' %]