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