From 102de837465078befaf0fd010e05df03c1c5986b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 17 May 2012 11:24:06 -0400 Subject: [PATCH] Bug 7889 - Use standard style for errors and messages Styling subscription renew message according to standard style. Also: - Adding direct link to renew from message suggesting renew. - Adding output of expiration date to message. To test open a subscription with an impending expiration. You should see a dialog-styled message, "Subscription will expire XX/XX/XXXX. Renew this subscription." Signed-off-by: Chris Cormack --- .../prog/en/modules/serials/subscription-detail.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt index ebf2afc03d..93e28d4831 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt @@ -34,6 +34,10 @@ function popup(subscriptionid) { } $(document).ready(function() { $("#subscription_description > ul").tabs(); + $("#renewsub").click(function(){ + popup([% subscriptionid %]); + return false; + }) }); //]]> @@ -52,7 +56,7 @@ $(document).ready(function() { [% INCLUDE 'serials-toolbar.inc' %]

Subscription for [% bibliotitle %]

- [% IF ( abouttoexpire ) %]
Subscription is near its end. It should be renewed now.
[% END %] + [% IF ( abouttoexpire ) %]
Subscription will expire [% enddate %]. Renew this subscription.
[% END %] [% IF ( NEEDSCONFIRMATION ) %]

Please Confirm Subscription deletion

-- 2.39.5