Bug 35969: (follow-up) Improve wording
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-sendbasketform.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Sending your cart &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 [% INCLUDE 'bodytag.inc' bodyid='addtolist' bodyclass='popup' %]
8     <div class="main">
9         <div class="container-fluid">
10             <div class="row">
11                 <div class="col order-first order-md-first order-lg-2">
12                     <div id="usersendbasket" class="maincontent">
13                         [% IF ( email_add ) %]
14
15                             [% IF ( SENT ) %]
16                                 <h1>Message sent</h1>
17                                 <div class="dialog dialog-success">
18                                     <p>The cart was sent to: [% email_add | html %]</p>
19                                 </div>
20                                 <p><a class="focus close" href="#">Close window</a></p>
21                             [% END %]
22
23                             [% IF ( error ) %]
24                                 <div class="alert alert-warning">
25                                     [% IF error == 'NO_BODY' %]
26                                         <p>There was an error sending the cart: No valid records were found.</p>
27                                     [% ELSIF error == 'NO_REPLY_ADDRESS' %]
28                                         <p>There was an error sending the cart: We cannot send an email as there is no email address recorded for your account (your email address is used for the reply to address).</p>
29                                     [% ELSE %]
30                                         <p>There was an error sending the cart.</p>
31                                     [% END %]
32                                 </div>
33                             [% END %]
34
35                         [% ELSE %]
36                             <form action="/cgi-bin/koha/opac-sendbasket.pl" method="post" id="sendbasketform">
37                                 <fieldset class="brief">
38                                     <legend><h1>Sending your cart</h1></legend>
39                                     <label for="email_add">Email address:</label>
40                                     <input type="text" id="email_add" name="email_add" size="43" class="focus form-control" />
41                                     <label for="comment">Comment:</label>
42                                     <textarea id="comment" name="comment" rows="4" cols="40" class="form-control"></textarea>
43                                     <input type="hidden" name="bib_list" value="[% bib_list | html %]" />
44                                     <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
45                                 </fieldset>
46                                 [% IF Koha.Preference('OPACHoldRequests') || Koha.Preference('OpacRenewalAllowed') %]<p id="donotrequestbymail">Please do not use this mail to request or renew books.</p>[% END %]
47                                 <fieldset class="action">
48                                     <input type="submit" class="btn btn-primary" value="Send" />
49                                     <a class="cancel close" href="#">Cancel</a>
50                                 </fieldset>
51                             </form>
52
53                         [% END # / IF email_add %]
54                     </div> <!-- / #usersendbasket -->
55                 </div> <!-- / .span12 -->
56             </div> <!-- / .row -->
57         </div> <!-- / .container-fluid -->
58     </div> <!-- / .main -->
59
60 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
61 [% BLOCK jsinclude %][% END %]