+ Add Expense
+
No expenses for this class.
+
+
Index: openacs-4/packages/expense-tracking/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/expense-tracking/www/admin/index.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/expense-tracking/www/admin/index.tcl 31 May 2005 22:06:18 -0000 1.1
@@ -0,0 +1,64 @@
+ad_page_contract {
+
+ List line expenses for a given class
+
+ @author Hamilton Chua (hamilton.chua@gmail.com)
+ @creation-date 2005-05-14
+ @cvs-id $Id: index.tcl,v 1.1 2005/05/31 22:06:18 hamiltonc Exp $
+
+} {
+ orderby:optional
+}
+
+set title "Expenses"
+set context $title
+set package_id [ad_conn package_id]
+
+# use list template to create list of expenses
+
+template::list::create \
+ -name expenses \
+ -multirow expenses \
+ -key exp_id \
+ -actions {
+ "Add Expense" "addedit-expense" "Add An Expense"
+ } -bulk_actions {
+ "Delete" "delete-expense" "Delete Expenses"
+ } -elements {
+ exp_date {
+ label "Date"
+ }
+ exp_expense {
+ label "Expense"
+ }
+ exp_amount {
+ label "Amount"
+ aggregate "sum"
+ aggregate_label "Total : $"
+ display_template { $ @expenses.exp_amount;noquote@ }
+ }
+ exp_exported {
+ label "Exported"
+ display_template {
+