Bug 17109: Add CSRF token to [opac-]sendbasket
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / basket / 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 </head>
5 <body style="padding: 1em;" id="cart_sendbasketform" class="cart">
6 <div class="container">[% IF ( email_add ) %]
7
8         [% IF ( SENT ) %]
9         <h3>Message sent</h3>
10         <p>The cart was sent to: [% email_add |html %]</p>
11                 <p><a class="focus close" href="#">Close window</a></p>
12         [% END %]
13     [% IF csrf_error %]
14         <p>No valid CSRF token!</p>
15         <p><a class="focus close" href="#">Close window</a></p>
16     [% END %]
17         [% IF ( error ) %]
18         <p>Problem sending the cart...</p>
19         [% END %]
20         
21 [% ELSE %]
22
23 <form action="/cgi-bin/koha/basket/sendbasket.pl" method="post">
24
25 <fieldset class="rows"> 
26 <legend>Sending your cart</legend>
27 <ol>   <li>
28         <label for="email_add">Email address:</label>
29         <input type="text" id="email_add" name="email_add" size="43" class="focus" />
30     </li>
31     <li>
32             <label for="comment">Comment:</label>
33             <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
34     </li>
35     </ol>
36     </fieldset>
37     <fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
38     <input type="hidden" name="bib_list" value="[% bib_list %]" />
39     <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
40 </form>
41
42 [% END %]</div>
43 </body>
44 </html>