Bug 14544: Make the OPAC side independent of Page.pm
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-sendshelfform.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Sending your list</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 [% INCLUDE 'bodytag.inc' bodyid='sendshelf' bodyclass='popup' %]
7     <div class="main">
8         <div class="container-fluid">
9             <div class="row-fluid">
10                 <div class="span12">
11                     <div id="usersendshelfform">
12                         [% IF ( email ) %]
13                             [% IF ( SENT ) %]
14                                 <h1>Message sent</h1>
15                                 <div class="alert alert-success">
16                                     <p>The list was sent to: [% email %]</p>
17                                 </div>
18                                 <p><a class="focus close" href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelfid %]">Back to lists</a></p>
19                             [% END %]
20                             [% IF ( error ) %]
21                                 <div class="alert">
22                                     <p>There was an error sending the list.</p>
23                                 </div>
24                             [% END %]
25                         [% ELSE %]
26                             [% IF ( invalidlist ) %]
27                                 <div class="alert">
28                                     <p>You do not have permission to send this list.</p>
29                                 </div>
30                                 <p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelfid %]">Back to lists</a></p>
31                             [% ELSE %]
32                                 <h1>Sending your list</h1>
33                                 <form action="/cgi-bin/koha/opac-sendshelf.pl" method="post" id="sendshelfform">
34                                     <fieldset>
35                                         <label for="email">Email address:</label>
36                                         <input type="text" id="email" name="email" size="43" class="focus" />
37
38                                         <label for="comment">Comment:</label>
39                                         <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
40
41                                         <input type="hidden" name="shelfid" value="[% shelfid %]" />
42                                     </fieldset>
43                                     <fieldset class="action">
44                                         <input type="submit" value="Send" class="btn" />
45                                         <a class="cancel close" href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelfid %]">Cancel</a>
46                                     </fieldset>
47                                 </form>
48
49                             [% END # / IF invalidlist %]
50                         [% END # / IF email %]
51                     </div> <!-- / #usersendshelfform -->
52                 </div> <!-- / .span12 -->
53             </div> <!-- / .row-fluid -->
54         </div> <!-- / .container-fluid -->
55     </div> <!-- / .main -->
56
57 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
58 [% BLOCK jsinclude %][% END %]