Bug 17109: [QA Follow-up] Die when wrong token
[srvgit] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-sendbasketform.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Sending your cart</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 [% INCLUDE 'bodytag.inc' bodyid='addtolist' bodyclass='popup' %]
7     <div class="main">
8         <div class="container-fluid">
9             <div class="row-fluid">
10                 <div class="span12">
11                     <div id="usersendbasket">
12                         [% IF ( email_add ) %]
13
14                             [% IF ( SENT ) %]
15                                 <h1>Message sent</h1>
16                                 <div class="dialog dialog-success">
17                                     <p>The cart was sent to: [% email_add | html %]</p>
18                                 </div>
19                                 <p><a class="focus close" href="#">Close window</a></p>
20                             [% END %]
21
22                             [% IF ( error ) %]
23                                 <div class="alert">
24                                     <p>There was an error sending the cart.</p>
25                                 </div>
26                             [% END %]
27
28                         [% ELSE %]
29                             <h1>Sending your cart</h1>
30                             <form action="/cgi-bin/koha/opac-sendbasket.pl" method="post" id="sendbasketform">
31                                 <fieldset>
32                                     <label for="email_add">Email address:</label>
33                                     <input type="text" id="email_add" name="email_add" size="43" class="focus" />
34                                     <label for="comment">Comment:</label>
35                                     <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
36                                     <input type="hidden" name="bib_list" value="[% bib_list %]" />
37                                     <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
38                                 </fieldset>
39                                 <fieldset class="action">
40                                     <input type="submit" class="btn" value="Send" />
41                                     <a class="cancel close" href="#">Cancel</a>
42                                 </fieldset>
43                             </form>
44
45                         [% END # / IF email_add %]
46                     </div> <!-- / #usersendbasket -->
47                 </div> <!-- / .span12 -->
48             </div> <!-- / .row-fluid -->
49         </div> <!-- / .container-fluid -->
50     </div> <!-- / .main -->
51
52 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
53 [% BLOCK jsinclude %][% END %]