Bug 23651: Add address of restricted page to syspref description
[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 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
13 &rsaquo; <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a> &rsaquo;[% IF ( status ) %] Approved comments[% ELSE %] Comments awaiting moderation[% END %]</div>
14
15 <div class="main container-fluid">
16     <div class="row">
17         <div class="col-sm-10 col-sm-push-2">
18             <main>
19
20 <h1>Comments</h1>
21
22 <!-- The manual invoice and credit buttons -->
23 <div class="statictabs">
24 <ul>
25     [% IF ( status ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?status=1">Approved comments</a></li>
26     [% IF ( status ) %]<li>[% ELSE %]<li class="active">[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl" >Comments awaiting moderation</a></li>
27 </ul>
28 <div class="tabs-container">
29
30 [% IF ( reviews ) %]
31 <table id="commentst">
32     <thead><tr>
33         <th>
34             Commenter
35         </th>
36         <th>
37             On title
38         </th>
39         <th>
40             Comment
41         </th>
42         <th>
43             &nbsp;
44         </th>
45     </tr></thead>
46     <tbody>[% FOREACH review IN reviews %]
47     <tr>
48         <td>
49             [% 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 %]
50         </td>
51         <td>
52             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% review.biblionumber | uri %]">[% review.bibliotitle | html %]</a>
53         </td>
54         <td>
55             [% review.review | html %]
56         </td>
57         <td class="actions">
58             [% 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 %]
59             <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>
60         </td>
61     </tr>
62     [% END %]</tbody>
63 </table>
64  <div class="pages">[% pagination_bar | $raw %]</div>
65 [% ELSE %]
66 [% IF ( status ) %]<p><b>No comments have been approved.</b></p>[% ELSE %]<p><b>No comments to moderate.</b></p>[% END %]
67 [% END %]
68 </div>
69 </div>
70
71             </main>
72         </div> <!-- /.col-sm-10.col-sm-push-2 -->
73
74         <div class="col-sm-2 col-sm-pull-10">
75             <aside>
76                 [% INCLUDE 'tools-menu.inc' %]
77             </aside>
78         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
79      </div> <!-- /.row -->
80
81 [% MACRO jsinclude BLOCK %]
82     [% Asset.js("js/tools-menu.js") | $raw %]
83 [% END %]
84
85 [% INCLUDE 'intranet-bottom.inc' %]