X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bluechips%2Ftemplates%2Fspend%2Findex.mako;h=e8283308257a6175379a162a3e35a2ba84cd0012;hb=7032113d23283d31c3b9146c5b749fcbed32031a;hp=390199d80c5d37e997524cd6464557192002cc4f;hpb=9c702e4826bdb9e540f8768e8d96c3b874b84eae;p=bluechips.git diff --git a/bluechips/templates/spend/index.mako b/bluechips/templates/spend/index.mako index 390199d..e828330 100644 --- a/bluechips/templates/spend/index.mako +++ b/bluechips/templates/spend/index.mako @@ -1,7 +1,8 @@ <%inherit file="/base.mako"/> -<%def name="title()">${parent.title()} :: Add a New Expenditure +<%def name="title()">${parent.title()} :: ${c.title} +<%! +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'))}