]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/spend/index.mako
Move common title generating code into base template
[bluechips.git] / bluechips / templates / spend / index.mako
index 390199d80c5d37e997524cd6464557192002cc4f..7cff4a8975962b6efaa18c74c45993bdf0724edc 100644 (file)
@@ -1,7 +1,7 @@
 <%inherit file="/base.mako"/>
 
-<%def name="title()">${parent.title()} :: Add a New Expenditure</%def>
+<%!
+import bluechips.widgets.spend as forms
+%>
 
-<%namespace name="forms" module="bluechips.widgets.spend" />
-
-${forms.new_spend_form(action=h.url_for(action='new'))}
+${forms.new_spend_form(c.expenditure, action=h.url_for(action='update'))}