Bug 29234: Further clean Z3950 Tests
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / cancelorder.tt
1 [% USE raw %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Cancel order &rsaquo; Acquisition &rsaquo; Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="acq_cancelorder" class="acq">
8 [% INCLUDE 'header.inc' %]
9
10 [% WRAPPER 'sub-header.inc' %]
11     [% WRAPPER breadcrumbs %]
12         [% WRAPPER breadcrumb_item %]
13             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
14         [% END %]
15         [% WRAPPER breadcrumb_item %]
16             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% basket.bookseller.id | uri %]">[% basket.bookseller.name | html %]</a>
17         [% END %]
18         [% WRAPPER breadcrumb_item %]
19             <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno | uri %]">Basket [% basket.basketname | html %] ([% basket.basketno | html %]) for [% basket.bookseller.name | html %]</a>
20         [% END %]
21         [% WRAPPER breadcrumb_item bc_active= 1 %]
22             <span>Cancel order</span>
23         [% END %]
24     [% END #/ WRAPPER breadcrumbs %]
25 [% END #/ WRAPPER sub-header.inc %]
26
27 <div class="main container-fluid">
28     <div class="row">
29         <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
30
31       [% UNLESS ( confirmcancel ) %]
32       <form method="post" action="">
33         <div class="dialog alert">
34           <h1>Are you sure you want to cancel this order ([% ordernumber | html %])</h1>
35           <p>
36             [% IF (del_biblio) %]
37               <span>Bibliographic record will be deleted too.</span>
38             [% ELSE %]
39               <span>Bibliographic record will not be deleted.</span>
40             [% END %]
41           </p>
42           <p>
43             [% PROCESS 'av-build-dropbox.inc' name="reason", category="ORDER_CANCELLATION_REASON" default="0" %]
44           </p>
45           <input type="hidden" name="action" value="confirmcancel" />
46           <input type="hidden" value="[% ordernumber | html %]" name="ordernumber" />
47           <input type="hidden" value="[% biblionumber | html %]" name="biblionumber" />
48           <input type="hidden" value="[% basket.basketno | html %]" name="basketno" />
49           <input type="hidden" value="[% referrer | html %]" name="referrer" />
50           [% IF (del_biblio) %]
51             <input type="hidden" value="1" name="del_biblio" />
52           [% END %]
53           <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, cancel (Y)</button>
54           <button class="deny" accesskey="n" onclick="window.location='[% referrer | html %]';return false;"><i class="fa fa-fw fa-remove"></i> No, don't cancel (N)</button>
55         </div>
56       </form>
57       [% ELSE %]
58         [% IF ( success_cancelorder ) %]
59             <div class="dialog message">
60                 The order has been successfully cancelled
61         [% ELSE %]
62             <div class="dialog alert">
63                 An error has occurred.
64                 [% IF error_order_already_cancelled %]
65                     <p>The order has been cancelled already.</p>
66                 [% ELSIF error_order_not_found %]
67                     <p>The order could not be found.</p>
68                 [% END %]
69                 [% IF ( error_delitem ) %]
70                     <p>The order has been cancelled, although one or more items could not have been deleted.</p>
71                 [% END %]
72                 [% IF ( error_delbiblio ) %]
73                 <p>The order has been cancelled, although the record has not been deleted.</p>
74                 [% END %]
75         [% END %]
76                 <p><a href="[% referrer | url %]">OK</a></p>
77             </div>
78       [% END %]
79
80     </div>
81   </div>
82
83 [% INCLUDE 'intranet-bottom.inc' %]