Bug 21993: Display a user-friendly message when the CSRF token is wrong
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / basket / sendbasketform.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% 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 ( error ) %]
14         <p>Problem sending the cart...</p>
15         [% END %]
16         
17 [% ELSE %]
18
19 [% INCLUDE 'blocking_errors.inc' %]
20 <form action="/cgi-bin/koha/basket/sendbasket.pl" method="post">
21
22 <fieldset class="rows"> 
23 <legend>Sending your cart</legend>
24 <ol>   <li>
25         <label for="email_add">Email address:</label>
26         <input type="text" id="email_add" name="email_add" size="43" class="focus" />
27     </li>
28     <li>
29             <label for="comment">Comment:</label>
30             <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
31     </li>
32     </ol>
33     </fieldset>
34     <fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
35     <input type="hidden" name="bib_list" value="[% bib_list | html %]" />
36     <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
37 </form>
38
39 [% END %]</div>
40 </body>
41 </html>