Empty case for payment history
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 25 Jul 2011 21:06:47 +0000 (17:06 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 25 Jul 2011 21:06:47 +0000 (17:06 -0400)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/web/templates/default/opac/myopac/main_payments.tt2

index 83e25f3..7e1e44b 100644 (file)
@@ -20,6 +20,7 @@
     </div>
     <div class="clear-both"></div>
 
+    [% IF ctx.payments.size %]
     <table id='myopac_payments_table' width='100%' class='data_grid'>
         <thead><tr>
             <th>[% l('Payment Date') %]</th>
@@ -47,5 +48,8 @@
             [% END %]
         </tbody>
     </table>
+    [% ELSE %]
+    <div>[% l('You have no historical payments to display.') %]</div>
+    [% END %]
 </div>
 [% END %]