Bug 7889 - Use standard style for errors and messages
authorOwen Leonard <oleonard@myacpl.org>
Thu, 17 May 2012 15:24:06 +0000 (11:24 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 24 May 2012 16:11:54 +0000 (18:11 +0200)
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 <chris@bigballofwax.co.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt

index ebf2afc..93e28d4 100644 (file)
@@ -34,6 +34,10 @@ function popup(subscriptionid) {
 }
 $(document).ready(function() {
     $("#subscription_description > ul").tabs();
+    $("#renewsub").click(function(){
+        popup([% subscriptionid %]);
+        return false;
+    })
 });
 //]]>
 </script>
@@ -52,7 +56,7 @@ $(document).ready(function() {
        [% INCLUDE 'serials-toolbar.inc' %]
 
     <h1>Subscription for [% bibliotitle %] </h1>
-    [% IF ( abouttoexpire ) %]<div class="problem">Subscription is near its end. It should be renewed now.</div>[% END %]
+    [% IF ( abouttoexpire ) %]<div class="dialog message">Subscription will expire [% enddate %]. <a href="#" id="renewsub">Renew this subscription</a>.</div>[% END %]
     [% IF ( NEEDSCONFIRMATION ) %]
     <div id="circ_needsconfirmation" class="dialog alert">
                        <h3>Please Confirm Subscription deletion</h3>