Bug 15839: Koha::Reviews - Remove getallreviews
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-review.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Comments on [% title |html %]</title>
3 <style type="text/css">
4   #custom-doc { width:37.08em;*width:36.16em;min-width:485px; margin:1em auto; text-align:left; }
5 </style>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
8 </head>
9 [% INCLUDE 'bodytag.inc' bodyid='comment' bodyclass='popup' %]
10     <div class="main">
11         <div class="container-fluid">
12             <div class="row-fluid">
13                 <div class="span12">
14                     <div id="userreview">
15                         [% IF ( cgi_debug ) %]
16                             <div class="debug">CGI debug is on.</div>
17                         [% END %]
18                         [% IF ( ERRORS ) %]
19                             <div class="alert">
20                                 [% FOREACH ERROR IN ERRORS %]
21                                     [% IF ( ERROR.scrubbed ) %]
22                                         <p>Note: your comment contained illegal markup code. It has been saved with the markup removed, as below. You can edit the comment further, or cancel to retain the comment as is.</p>
23                                     [% END %]
24
25                                     [% IF ( ERROR.scrubbed_all ) %]
26                                         <p>Error!  Your comment was entirely illegal markup code.  It has NOT been added.</p>
27                                     [% END %]
28
29                                     [% IF ( ERROR.empty ) %]
30                                         <p>Error!  You cannot add an empty comment.  Please add content or cancel.</p>
31                                     [% END %]
32                                 [% END # / FOREACH ERROR %]
33                                 [% IF ( WINDOW_CLOSE ) %]
34                                     Note: this window will close automatically in 5 seconds.
35                                 [% END %]
36                             </div>
37                         [% END # / ERRORs %]
38
39                         <h1>Comments on <i>[% title |html %] [% subtitle %]</i></h1>
40                         [% IF ( author ) %]<h3>[% author |html %]</h3>[% END %]
41                         <form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post">
42                             <input type="hidden" name="biblionumber" value="[% biblionumber | html%]" />
43                             [% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html%]" />[% END %]
44                             <fieldset>
45                                 <textarea id="review" name="review" cols="60" rows="8">[% review %]</textarea>
46                             </fieldset>
47                             <p>Note: Your comment must be approved by a librarian. </p>
48                             <fieldset class="action">
49                                 <input type="submit" class="btn" value="Submit and close this window" />
50                                 <a class="cancel close" href="#">Cancel</a>
51                             </fieldset>
52                         </form>
53                     </div> <!-- / #usersendshelfform -->
54                 </div> <!-- / .span12 -->
55             </div> <!-- / .row-fluid -->
56         </div> <!-- / .container-fluid -->
57     </div> <!-- / .main -->
58
59 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
60 [% BLOCK jsinclude %]
61 <script type="text/javascript">
62     //<![CDATA[
63          $(document).ready(function() {
64             [% IF WINDOW_CLOSE %]
65                 opener.location.reload();
66                 window.close();
67             [% END %]
68         });
69     //]]>
70 </script>
71 [% END %]