Bug 27796: (QA follow-up) Missing filters
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reviews / reviewswaiting.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Tools &rsaquo; Comments &rsaquo; [% IF ( status ) %] Approved comments[% ELSE %] Comments awaiting moderation[% END %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8 <body id="tools_reviewswaiting" class="tools">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
11
12 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
13     <ol>
14         <li>
15             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
16         </li>
17         <li>
18             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
19         </li>
20         <li>
21             <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a>
22         </li>
23         <li>
24             <a href="#" aria-current="page">
25                 [% IF ( status ) %]
26                     Approved comments
27                 [% ELSE %]
28                     Comments awaiting moderation
29                 [% END %]
30             </a>
31         </li>
32     </ol>
33 </nav>
34
35 <div class="main container-fluid">
36     <div class="row">
37         <div class="col-sm-10 col-sm-push-2">
38             <main>
39
40 <h1>Comments</h1>
41
42 <!-- The manual invoice and credit buttons -->
43 <div class="statictabs">
44 <ul>
45     [% IF ( status ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?status=1">Approved comments</a></li>
46     [% IF ( status ) %]<li>[% ELSE %]<li class="active">[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl" >Comments awaiting moderation</a></li>
47 </ul>
48 <div class="tabs-container">
49
50 [% IF ( reviews ) %]
51 <table id="commentst">
52     <thead><tr>
53         <th>
54             Commenter
55         </th>
56         <th>
57             On title
58         </th>
59         <th>
60             Comment
61         </th>
62         <th>
63             &nbsp;
64         </th>
65     </tr></thead>
66     <tbody>[% FOREACH review IN reviews %]
67     <tr>
68         <td>
69             [% IF ( review.borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% review.borrowernumber | uri %]">[% review.patron.surname | html %], [% review.patron.firstname | html %]</a>[% ELSE %](deleted patron)[% END %]
70         </td>
71         <td>
72             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% review.biblionumber | uri %]">[% review.bibliotitle | html %]</a>
73         </td>
74         <td>
75             [% review.review | html %]
76         </td>
77         <td class="actions">
78             [% IF ( status ) %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=unapprove&amp;reviewid=[% review.reviewid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-remove"></i> Unapprove</a>[% ELSE %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=approve&amp;reviewid=[% review.reviewid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-check"></i> Approve</a>[% END %]
79             <a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=delete&amp;reviewid=[% review.reviewid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash" aria-hidden="true"></i> Delete</a>
80         </td>
81     </tr>
82     [% END %]</tbody>
83 </table>
84  <div class="pages">[% pagination_bar | $raw %]</div>
85 [% ELSE %]
86 [% IF ( status ) %]<p><strong>No comments have been approved.</strong></p>[% ELSE %]<p><strong>No comments to moderate.</strong></p>[% END %]
87 [% END %]
88 </div>
89 </div>
90
91             </main>
92         </div> <!-- /.col-sm-10.col-sm-push-2 -->
93
94         <div class="col-sm-2 col-sm-pull-10">
95             <aside>
96                 [% INCLUDE 'tools-menu.inc' %]
97             </aside>
98         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
99      </div> <!-- /.row -->
100
101 [% MACRO jsinclude BLOCK %]
102     [% Asset.js("js/tools-menu.js") | $raw %]
103 [% END %]
104
105 [% INCLUDE 'intranet-bottom.inc' %]