Merge remote-tracking branch 'origin/new/bug_7729'
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-sendshelfform.tt
1 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›  Sending your list
2 [% INCLUDE 'doc-head-close.inc' %]
3 <script type="text/javascript">//<![CDATA[
4         $(document).ready(function(){
5                 $(".close").html(_("Close this window"));
6         });
7 //]]>
8 </script>
9 </head>
10 <body style="padding: 1em;" id="sendshelf">
11 <div id="usersendshelfform" class="container">[% IF ( email ) %]
12
13     [% IF ( SENT ) %]
14         <h3>Message sent</h3>
15         <p>The list was sent to: [% email %]</p>
16         <p><a class="focus close" href="/cgi-bin/koha/opac-shelves.pl">Back to lists</a></p>
17     [% END %]
18     [% IF ( error ) %]
19     <p>Problem sending the list...</p>
20     [% END %]
21     
22 [% ELSE %]
23     [% IF ( invalidlist ) %]
24         <div class="dialog alert">
25         <p>You do not have permission to send this list.</p>
26         </div>
27         <p><a class="button close" href="/cgi-bin/koha/opac-shelves.pl">Back to lists</a></p>
28     [% ELSE %]
29         <form action="[% url %]" method="post" id="sendshelfform">
30
31         <fieldset class="rows">
32         <legend>Sending your list</legend>
33         <ol>   <li>
34                 <label for="email">Email address:</label>
35                 <input type="text" id="email" name="email" size="43" class="focus" />
36             </li>
37             <li>
38                     <label for="comment">Comment:</label>
39                     <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
40             </li>
41             <li>
42                 <input type="hidden" name="shelfid" value="[% shelfid %]" />
43             </li></ol></fieldset>
44                <fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
45         </form>
46     [% END %]
47 [% END %]</div>
48 </body>
49 </html>