Add card expired message to the myopac account summary
authorJustin Hopkins <hopkinsju@gmail.com>
Mon, 30 Jul 2012 22:25:20 +0000 (17:25 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 19 Nov 2012 20:15:03 +0000 (15:15 -0500)
The JSPAC included a message to users who had an expired card alerting them to this fact.
This message is useful and was not writted into the TPAC.

Signed-off-by: Justin Hopkins <hopkinsju@gmail.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/myopac/main_base.tt2

index 02c1509..c28ea71 100644 (file)
 
     <div style="width:662px;">
         <div style="float:left;">
-            <div style="padding:10px 0px;"></div>
+            <div style="padding:10px 0px;">
+               [% IF date.format(ctx.user.expire_date, '%s') < date.format(date.now , '%s') %]
+                <span class="alert">Your library card expired on [% date.format(ctx.user.expire_date, '%B %d, %Y') %]. Please contact a librarian to resolve this issue.</span>
+                [% END %]
+           </div>
             <div class="acct_sum_row">
                 <table width="100%" cellspacing="0" cellpadding="0">
                     <tr>