Bug 17109: [QA Follow-up] Die when wrong token
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / basket / sendbasketform.tt
index 69f01d6..b78a650 100644 (file)
@@ -1,13 +1,13 @@
 [% INCLUDE 'doc-head-open.inc' %]
-<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog &rsaquo;  Sending Your Cart</title>
+<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Sending your cart</title>
 [% INCLUDE 'doc-head-close.inc' %]
 </head>
 <body style="padding: 1em;" id="cart_sendbasketform" class="cart">
 <div class="container">[% IF ( email_add ) %]
 
        [% IF ( SENT ) %]
-               <h3>Message Sent</h3>
-           <p>The cart was sent to: [% email_add %]</p>
+        <h3>Message sent</h3>
+        <p>The cart was sent to: [% email_add |html %]</p>
                <p><a class="focus close" href="#">Close window</a></p>
        [% END %]
        [% IF ( error ) %]
        
 [% ELSE %]
 
-<form action="[% url %]" method="post">
+<form action="/cgi-bin/koha/basket/sendbasket.pl" method="post">
 
 <fieldset class="rows"> 
 <legend>Sending your cart</legend>
 <ol>   <li>
-        <label for="email_add">Email Address:</label>
+        <label for="email_add">Email address:</label>
         <input type="text" id="email_add" name="email_add" size="43" class="focus" />
     </li>
     <li>
             <label for="comment">Comment:</label>
             <textarea id="comment" name="comment" rows="4" cols="40"></textarea>
     </li>
-    <li>
-        <input type="hidden" name="bib_list" value="[% bib_list %]" />
-    </li></ol></fieldset>
-       <fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
+    </ol>
+    </fieldset>
+    <fieldset class="action"> <input type="submit" value="Send" /> <a class="cancel close" href="#">Cancel</a> </fieldset>
+    <input type="hidden" name="bib_list" value="[% bib_list %]" />
+    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
 </form>
 
 [% END %]</div>