Display alias callout even when no balance
authorJeff Godin <jgodin@tadl.org>
Sat, 17 Nov 2012 02:03:48 +0000 (21:03 -0500)
committerJeff Godin <jgodin@tadl.org>
Sat, 17 Nov 2012 02:05:42 +0000 (21:05 -0500)
Display the alias callout even when the patron has no account
balance.

We are duplicating content here, and should re-factor in the future.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
templates_tadlskin/opac/parts/myopac/main_base.tt2

index 65d3932..84cd6c6 100644 (file)
     [% IF myopac_main_page == "payment_form" OR (
         !ctx.fines.circulation.size AND !ctx.fines.grocery.size
     ) %]
-    <div id="myopac_sum_fines_placehold"></div>
+    <div id="myopac_sum_fines_placehold">
+       <div style="padding: 1em; background-color: white;">
+        [% IF ctx.user.alias %]
+                <p style="font-size: 1.2em;">Your holdshelf alias is currently set to: "[% ctx.user.alias %]".</p>
+        [% ELSE %]
+                <p style="font-size: 1.2em;">You do not currently have a holdshelf alias set.</p>
+        [% END %]
+                <p style="font-size: 1em;"><a href="[% mkurl(ctx.opac_root _ '/myopac/update_alias') %]">change</a> - <a href="http://www.tadl.org/creating-alias-holds-shelf">what's an alias?</a></p>
+       </div>
+    </div>
     [% ELSE %]
     <div id="myopac_sum_fines">
         <div style="position:absolute;">
             type="submit" title="[% l('Pay Fines') %]" alt="[% l('Pay Fines') %]"
             value="[% l('Pay Fines') %]" class="pos-rel-top-5 opac-button" /></form>
         [% END %]
-       <div style="padding: 1em; background-color: white;">
-       [% IF ctx.user.alias %]
-               <p>Your holdshelf alias is currently set to: "[% ctx.user.alias %]".</p>
-       [% ELSE %]
-               <p>You do not currently have a holdshelf alias set.</p>
-       [% END %]
-               <p><a href="[% mkurl(ctx.opac_root _ '/myopac/update_alias') %]">change</a> - <a href="http://www.tadl.org/creating-alias-holds-shelf">what's an alias?</a></p>
-       </div>
+        <div style="padding: 1em; background-color: white;">
+        [% IF ctx.user.alias %]
+                <p style="font-size: 1.2em;">Your holdshelf alias is currently set to: "[% ctx.user.alias %]".</p>
+        [% ELSE %]
+                <p style="font-size: 1.2em;">You do not currently have a holdshelf alias set.</p>
+        [% END %]
+                <p style="font-size: 1em;"><a href="[% mkurl(ctx.opac_root _ '/myopac/update_alias') %]">change</a> - <a href="http://www.tadl.org/creating-alias-holds-shelf">what's an alias?</a></p>
+        </div>
     </div>
     [% END %]