From d6cbbcd07c603266939f5b2e627364c8c25c1c67 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Aug 2013 15:37:46 -0400 Subject: [PATCH] Bug 10493: (follow-up) fix minor template issues This template followup fixes some minor template errors and adds some style to dialog buttons matching those seen on the circulation page. To test, submit barcodes to trigger the various error conditions: Non-existant barcode, over the renew limit, restricted patron, item on hold. Override and Ignore buttons should be properly styled and functional. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- .../prog/en/modules/circ/renew.tt | 49 ++++++------------- 1 file changed, 16 insertions(+), 33 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt index eba8892b27..fe090b592b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt @@ -8,16 +8,6 @@ [% INCLUDE 'doc-head-close.inc' %] - - @@ -25,56 +15,49 @@ $(document).ready(function () { [% INCLUDE 'header.inc' %] [% INCLUDE 'circ-search.inc' %] - +
-
-
[% IF error %]

Cannot renew:

-

+ [% IF error == "no_item" %] - No item matches this barcode +

No item matches this barcode

[% ELSIF error == "no_checkout" %] - [% item.biblio.title %] [% item.biblioitem.subtitle %] - ( [% item.barcode %] ) - is not checked out to a patron. +

[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) is not checked out to a patron.

[% ELSIF error == "too_many" %] - [% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) - has been renewed the maximum number of times by - [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) +

[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) has been renewed the maximum number of times by [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] )

[% IF Koha.Preference('AllowRenewalLimitOverride') %] -
+ - +
[% END %] [% ELSIF error == "on_reserve" %] - This item is on hold for other patrons. +

This item is on hold for another patron.

-
+ - +
[% ELSIF error == "patron_restricted" %] - [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) - is currently restricted. +

[% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) is currently restricted.

[% ELSE %] @@ -82,18 +65,18 @@ $(document).ready(function () { [% END %] - Ignore & continue -

+
+ +
[% END %] [% IF date_due %]
+

Item renewed:

-

Item renewed:

- [% item.biblio.title %] [% item.biblioitem.subtitle %] - ( [% item.barcode %] ) + ( [% item.barcode %] ) renewed for [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) now due on [% date_due | $KohaDates %] -- 2.39.5