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