Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt
Aleisha Amohia 639d7f308f Bug 13208: Improving breadcrumbs for when cancelling an order
To test:
1) Go to Acquisitions -> Find a vendor -> View a basket with orders in
it (or make a new basket and add an order)
2) Click Cancel order
3) Notice incomplete breadcrumbs, and 'Acquisition' typo
4) Apply patch and refresh page
5) Breadcrumbs should be fixed. Confirm links to vendor and basket work
as expected

Sponsored-by: Catalyst IT

Signed-off-by: severine.queune <severine.queune@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-10-09 14:00:50 -03:00

68 lines
2.8 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisition &rsaquo; Cancel order</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="acq_cancelorder" class="acq">
[% INCLUDE 'header.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% basket.booksellerid.id %]">[% basket.booksellerid.name | html %]</a> &rsaquo;
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">Basket [% basket.basketname | html %] ([% basket.basketno %]) for [% basket.booksellerid.name | html %]</a> &rsaquo;
Cancel order
</div>
<div id="doc" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
[% UNLESS ( confirmcancel ) %]
<form method="post" action="">
<div class="dialog alert">
<h3>Are you sure you want to cancel this order ([% ordernumber %])</h3>
<p>
[% IF (del_biblio) %]
Bibliographic record will be deleted too.
[% ELSE %]
Bibliographic record will not be deleted.
[% END %]
</p>
<p>
[% PROCESS 'av-build-dropbox.inc' name="reason", category="ORDER_CANCELLATION_REASON" default="0" %]
</p>
<input type="hidden" name="action" value="confirmcancel" />
<input type="hidden" value="[% ordernumber %]" name="ordernumber" />
<input type="hidden" value="[% biblionumber %]" name="biblionumber" />
<input type="hidden" value="[% referrer %]" name="referrer" />
[% IF (del_biblio) %]
<input type="hidden" value="1" name="del_biblio" />
[% END %]
<button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, cancel (Y)</button>
<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>
</div>
</form>
[% ELSE %]
[% IF ( success_cancelorder ) %]
<div class="dialog message">
The order has been successfully cancelled
[% ELSE %]
<div class="dialog alert">
An error has occurred.
[% IF ( error_delitem ) %]
<p>The order has been cancelled, although one or more items could not have been deleted.</p>
[% END %]
[% IF ( error_delbiblio ) %]
<p>The order has been cancelled, although the record has not been deleted.</p>
[% END %]
[% END %]
<p><a href="[% referrer %]">OK</a></p>
</div>
[% END %]
</div>
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]