empty cases for fines
authorsenator <lebbeous@esilibrary.com>
Tue, 17 May 2011 15:51:04 +0000 (11:51 -0400)
committersenator <lebbeous@esilibrary.com>
Tue, 17 May 2011 15:51:04 +0000 (11:51 -0400)
Open-ILS/web/templates/default/opac/myopac/main.tt2
Open-ILS/web/templates/default/opac/parts/myopac/main_base.tt2

index 1a4b1b4..71382e7 100644 (file)
         </table>
     </div>
     [% END %]
+    [% UNLESS ctx.fines.grocery.size OR ctx.fines.circulation.size %]
+    <div>[% l('You have no current fines.') %]</div>
+    [% ELSE %]
     <div class="text-right pad-top-ten">
         <input type="image"
             alt="[% l('Pay selected fines') %]"
             onmouseout="this.src='[% ctx.media_prefix %]/images/pay-fines-btn.png';"
             src="[% ctx.media_prefix %]/images/pay-fines-btn.png" />
     </div>
+    [% END %]
 </form>
 [% END %]
index a79141e..18f39f4 100644 (file)
@@ -10,7 +10,9 @@
     </div>
 
     <!-- fines summary along the right of the page -->
-    [% IF myopac_main_page == "payment_form" %]
+    [% IF myopac_main_page == "payment_form" OR (
+        !ctx.fines.circulation.size AND !ctx.fines.grocery.size
+    ) %]
     <div id="myopac_sum_fines_placehold"></div>
     [% ELSE %]
     <div id="myopac_sum_fines">