Bug 10904: Limit patron update request management by branch
[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"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisition</a> &rsaquo; Cancel order</div>
10
11 <div id="doc3" class="yui-t2">
12
13 <div id="bd">
14   <div id="yui-main">
15     <div class="yui-b">
16       [% UNLESS ( confirmcancel ) %]
17       <form method="post" action="">
18         <div class="dialog alert">
19           <h3>Are you sure you want to cancel this order ([% ordernumber %])</h3>
20           <p>
21             [% IF (del_biblio) %]
22               Bibliographic record will be deleted too.
23             [% ELSE %]
24               Bibliographic record will not be deleted.
25             [% END %]
26           </p>
27           <p>
28             [% PROCESS 'av-build-dropbox.inc' name="reason", category="ORDER_CANCELLATION_REASON" default="0" %]
29           </p>
30           <input type="hidden" name="action" value="confirmcancel" />
31           <input type="hidden" value="[% ordernumber %]" name="ordernumber" />
32           <input type="hidden" value="[% biblionumber %]" name="biblionumber" />
33           <input type="hidden" value="[% referrer %]" name="referrer" />
34           [% IF (del_biblio) %]
35             <input type="hidden" value="1" name="del_biblio" />
36           [% END %]
37           <input type="submit" class="approve" value="Yes, cancel" accesskey="y" />
38           <input type="submit" class="deny" value="No, don't cancel" accesskey="n" onclick="window.location='[% referrer %]';return false;" />
39         </div>
40       </form>
41       [% ELSE %]
42         [% IF ( success_cancelorder ) %]
43             <div class="dialog message">
44                 The order has been successfully cancelled
45         [% ELSE %]
46             <div class="dialog alert">
47                 An error has occurred.
48                 [% IF ( error_delitem ) %]
49                     <p>The order has been cancelled, although one or more items could not have been deleted.</p>
50                 [% END %]
51                 [% IF ( error_delbiblio ) %]
52                 <p>The order has been cancelled, although the record has not been deleted.</p>
53                 [% END %]
54         [% END %]
55                 <p><a href="[% referrer %]">OK</a></p>
56             </div>
57       [% END %]
58
59     </div>
60   </div>
61 </div>
62 [% INCLUDE 'intranet-bottom.inc' %]