- adding table row color toggle
authoroleonard <oleonard>
Wed, 16 Feb 2005 19:26:09 +0000 (19:26 +0000)
committeroleonard <oleonard>
Wed, 16 Feb 2005 19:26:09 +0000 (19:26 +0000)
- formatting credit and debit values accordingly
- styling table footer

koha-tmpl/intranet-tmpl/npl/en/boraccount.tmpl

index f1b87bc..3afca61 100644 (file)
@@ -8,26 +8,28 @@
 <div class="table"><table>
 <caption>Account for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></caption>
   <tr>
-    <th colspan="2">Fines &amp; Charges</th>
+       <th>Date</th>
+    <th>Description of Charges</th>
     <th>Amount</th>
     <th>Still Owed</th>
   </tr>
 
   <!-- TMPL_LOOP NAME="accounts" -->
 
-    <tr>
+   <!-- TMPL_IF NAME="toggle" --> <tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
       <td><!-- TMPL_VAR NAME="date" --></td>
       <td><!-- TMPL_VAR NAME="description" --><!-- TMPL_IF NAME="printtitle" --> <!-- TMPL_VAR NAME="title" --><!-- /TMPL_IF --></td>
-      <td><!-- TMPL_VAR NAME="amount" --></td>
-      <td><!-- TMPL_VAR NAME="amountoutstanding" --></td>
+      <!-- TMPL_IF NAME="amountcredit" --><td class="credit"><!-- TMPL_ELSE --><td class="debit"><!-- /TMPL_IF -->$<!-- TMPL_VAR NAME="amount" --></td>
+      <!-- TMPL_IF NAME="amountoutstandingcredit" --><td class="credit"><!-- TMPL_ELSE --><td class="debit"><!-- /TMPL_IF -->$<!-- TMPL_VAR NAME="amountoutstanding" --></td>
     </tr>
 
   <!-- /TMPL_LOOP -->
-
+<tfoot>
   <tr>
-    <td colspan="3"><b>Total Due</b></td>
-    <td><b><!-- TMPL_VAR NAME="total" --></b></td>
+    <td colspan="3">Total Due</td>
+    <!-- TMPL_IF NAME="totalcredit" --><td class="credit"><!-- TMPL_ELSE --><td class="debit"><!-- /TMPL_IF -->$<!-- TMPL_VAR NAME="total" --></td>
   </tr>
+  </tfoot>
 </table></div>
 <!-- The manual invoice and credit buttons -->
 <div class="tabitem">