]> git.koha-community.org Git - koha.git/blob - koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-review.tt
Bug 27814: Improve responsive behavior of the user page in the OPAC
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-review.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Comments on [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 [% INCLUDE 'bodytag.inc' bodyid='comment' bodyclass='popup' %]
7     <div class="main">
8         <div class="container-fluid">
9             <div class="row">
10                 <div class="col order-first order-md-first order-lg-2">
11                     <div id="userreview" class="maincontent">
12                         <h1>Reviews</h1>
13                         [% IF ( cgi_debug ) %]
14                             <div class="debug">CGI debug is on.</div>
15                         [% END %]
16                         [% IF ( ERRORS ) %]
17                             <div class="alert alert-warning">
18                                 [% FOREACH ERROR IN ERRORS %]
19                                     [% IF ( ERROR.nobiblio ) %]
20                                         <p>Error: we cannot find this bibliographic record.</p>
21                                     [% END %]
22                                     [% IF ( ERROR.unauthorized ) %]
23                                         <p>Sorry, only the creator of this comment is allowed to change it.</p>
24                                     [% END %]
25                                     [% IF ( ERROR.scrubbed ) %]
26                                         <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>
27                                     [% END %]
28
29                                     [% IF ( ERROR.scrubbed_all ) %]
30                                         <p>Error!  Your comment was entirely illegal markup code.  It has NOT been added.</p>
31                                     [% END %]
32
33                                     [% IF ( ERROR.empty ) %]
34                                         <p>Error!  You cannot add an empty comment.  Please add content or cancel.</p>
35                                     [% END %]
36                                 [% END # / FOREACH ERROR %]
37                                 [% IF ( WINDOW_CLOSE ) %]
38                                     Note: this window will close automatically in 5 seconds.
39                                 [% END %]
40                             </div>
41                         [% END # / ERRORs %]
42
43                         <h2>Comments on <em>[% INCLUDE 'biblio-title.inc' %]</em></h2>
44                         [% IF ( biblio.author ) %]<h3>[% biblio.author | html %]</h3>[% END %]
45                         <form id="reviewf" action="/cgi-bin/koha/opac-review.pl[% IF ( cgi_debug ) %]?debug=1[% END %]" method="post">
46                             <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />
47                             [% IF ( reviewid ) %]<input type="hidden" name="reviewid" value="[% reviewid | html %]" />[% END %]
48                             <fieldset>
49                                 <textarea id="review" name="review" cols="60" rows="8">[% review | html %]</textarea>
50                             </fieldset>
51                             <p>Note: Your comment must be approved by a librarian. </p>
52                             <fieldset class="action">
53                                 <input type="submit" class="btn btn-primary" value="Submit and close this window" />
54                                 <a class="cancel close" href="#">Cancel</a>
55                             </fieldset>
56                         </form>
57                     </div> <!-- / #usersendshelfform -->
58                 </div> <!-- / .span12 -->
59             </div> <!-- / .row -->
60         </div> <!-- / .container-fluid -->
61     </div> <!-- / .main -->
62
63 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
64 [% BLOCK jsinclude %]
65 <script>
66
67          $(document).ready(function() {
68             [% IF WINDOW_CLOSE %]
69                 opener.location.reload();
70                 window.close();
71             [% END %]
72         });
73
74 </script>
75 [% END %]