X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=bluechips%2Ftemplates%2Fspend%2Findex.mako;h=1fd1307cd47ee08801356dea21dbfee4d196aec6;hb=10bb07c483a63de06af9fe99811d6c3ba82415f6;hp=09f5e2b0c59ab6d914cb286aae05b1d7b3a40cc9;hpb=9b0db4bbe905453c242a39632399a8205db1f538;p=bluechips.git diff --git a/bluechips/templates/spend/index.mako b/bluechips/templates/spend/index.mako index 09f5e2b..1fd1307 100644 --- a/bluechips/templates/spend/index.mako +++ b/bluechips/templates/spend/index.mako @@ -1,8 +1,11 @@ <%inherit file="/base.mako"/> -<%def name="title()">${parent.title()} :: ${c.title} <%! import bluechips.widgets.spend as forms %> -${forms.new_spend_form(c.expenditure, action=h.url_for(action='new'))} +% if c.id != '': +

Want to ${h.link_to('change how this expenditure is divided up', h.url_for(controller='spend', action='split', id=c.id))}?

+% endif + +${forms.new_spend_form(c.expenditure, action=h.url_for(action='update')) | n}