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