Bug 13208: Improving breadcrumbs for when cancelling an order
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / cancelorder.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisition &rsaquo; Cancel order</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5
6 <body id="acq_cancelorder" class="acq">
7 [% INCLUDE 'header.inc' %]
8
9 <div id="breadcrumbs">
10     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
11     <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
12     <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% basket.booksellerid.id %]">[% basket.booksellerid.name | html %]</a> &rsaquo;
13     <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">Basket [% basket.basketname | html %] ([% basket.basketno %]) for [% basket.booksellerid.name | html %]</a> &rsaquo;
14     Cancel order
15 </div>
16
17 <div id="doc" class="yui-t7">
18
19 <div id="bd">
20   <div id="yui-main">
21     <div class="yui-b">
22       [% UNLESS ( confirmcancel ) %]
23       <form method="post" action="">
24         <div class="dialog alert">
25           <h3>Are you sure you want to cancel this order ([% ordernumber %])</h3>
26           <p>
27             [% IF (del_biblio) %]
28               Bibliographic record will be deleted too.
29             [% ELSE %]
30               Bibliographic record will not be deleted.
31             [% END %]
32           </p>
33           <p>
34             [% PROCESS 'av-build-dropbox.inc' name="reason", category="ORDER_CANCELLATION_REASON" default="0" %]
35           </p>
36           <input type="hidden" name="action" value="confirmcancel" />
37           <input type="hidden" value="[% ordernumber %]" name="ordernumber" />
38           <input type="hidden" value="[% biblionumber %]" name="biblionumber" />
39           <input type="hidden" value="[% referrer %]" name="referrer" />
40           [% IF (del_biblio) %]
41             <input type="hidden" value="1" name="del_biblio" />
42           [% END %]
43           <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, cancel (Y)</button>
44           <button class="deny" accesskey="n" onclick="window.location='[% referrer %]';return false;"><i class="fa fa-fw fa-remove"></i> No, don't cancel (N)</button>
45         </div>
46       </form>
47       [% ELSE %]
48         [% IF ( success_cancelorder ) %]
49             <div class="dialog message">
50                 The order has been successfully cancelled
51         [% ELSE %]
52             <div class="dialog alert">
53                 An error has occurred.
54                 [% IF ( error_delitem ) %]
55                     <p>The order has been cancelled, although one or more items could not have been deleted.</p>
56                 [% END %]
57                 [% IF ( error_delbiblio ) %]
58                 <p>The order has been cancelled, although the record has not been deleted.</p>
59                 [% END %]
60         [% END %]
61                 <p><a href="[% referrer %]">OK</a></p>
62             </div>
63       [% END %]
64
65     </div>
66   </div>
67 </div>
68 [% INCLUDE 'intranet-bottom.inc' %]