Bug 16241 - Move staff client CSS out of language directory
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / notices.tt
1 [% USE Koha %]
2 [% USE AuthorisedValues %]
3 [% USE KohaDates %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
8 [% INCLUDE 'datatables.inc' %]
9 <script type="text/javascript">
10 //<![CDATA[
11     $(document).ready(function() {
12     $("#noticestable").dataTable($.extend(true, {}, dataTablesDefaults, {
13         "aaSorting": [[ 3, "desc" ]],
14         "aoColumns": [ null,null,null,{ "sType": "title-string" } ],
15         "sPaginationType": "four_button"
16     }));
17
18     $(".notice").hide();
19     $(".notice-title").click(function(e){
20         $(this).closest("tr").children().children(".notice").toggle();
21         e.preventDefault();
22     });
23     
24     });
25 //]]>
26 </script>
27 <style type="text/css">
28     p.notice { display: none; }
29     a.notice-title { font-weight: bold; display: block; }
30 </style>
31 </head>
32 <body id="pat_notices" class="pat">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'patron-search.inc' %]
35
36 <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>
37
38 <div id="doc3" class="yui-t2">
39     <div id="bd">
40     <div id="yui-main">
41     <div class="yui-b">
42 [% INCLUDE 'members-toolbar.inc' %]
43 <h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
44
45 [% IF ( QUEUED_MESSAGES ) %]
46     <table id="noticestable">
47         <thead>
48             <tr>
49                 <th>Notice</th>
50                 <th>Type</th>
51                 <th>Status</th>
52                 <th>Time</th>
53             </tr>
54         </thead>
55         <tbody>
56             [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
57             <tr>
58                 <td>
59             <a class="notice-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
60             <div class="notice">
61                 [% QUEUED_MESSAGE.content FILTER html_line_break %]
62             </div>
63         </td>
64                 <td>
65             [% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]email
66             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'print' ) %]print
67             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'feed' ) %]feed
68             [% ELSIF ( QUEUED_MESSAGE.message_transport_type == 'sms' ) %]sms
69             [% ELSE %][% QUEUED_MESSAGE.message_transport_type %][% END %]
70         </td>
71                 <td>
72             [% IF ( QUEUED_MESSAGE.status == 'sent' ) %]sent
73             [% ELSIF ( QUEUED_MESSAGE.status == 'pending' ) %]pending
74             [% ELSIF ( QUEUED_MESSAGE.status == 'failed' ) %]failed
75             [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
76             [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
77             [% IF ( QUEUED_MESSAGE.status != 'pending' ) %]
78             <div class="notice">
79                 <form action="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]" method="POST">
80                     <input type="hidden" name="op" value="resend_notice" />
81                     <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
82                     <input type="hidden" name="message_id" value="[% QUEUED_MESSAGE.message_id %]" />
83                     <a href="#" onclick="$(this).closest('form').submit();return false;" title="Attempt to resend the notice">Resend</a>
84                 </form>
85             </div>
86             [% END %]
87         </td>
88         <td><span title="[% QUEUED_MESSAGE.time_queued %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</span></td>
89             </tr>
90             [% END %]
91         </tbody>
92     </table>
93 [% ELSE %]
94     <div class="dialog message">There is no record of any messages that have been sent to this patron.</div>
95 [% END %]
96
97 </div>
98 </div>
99
100 <div class="yui-b">
101 [% INCLUDE 'circ-menu.inc' %]
102 </div>
103 </div>
104 [% INCLUDE 'intranet-bottom.inc' %]