]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/spend/index.mako
don't escape widget forms when they are rendered
[bluechips.git] / bluechips / templates / spend / index.mako
index e8283308257a6175379a162a3e35a2ba84cd0012..1fd1307cd47ee08801356dea21dbfee4d196aec6 100644 (file)
@@ -1,8 +1,11 @@
 <%inherit file="/base.mako"/>
 
-<%def name="title()">${parent.title()} :: ${c.title}</%def>
 <%!
 import bluechips.widgets.spend as forms
 %>
 
-${forms.new_spend_form(c.expenditure, action=h.url_for(action='update'))}
+% if c.id != '':
+<p>Want to ${h.link_to('change how this expenditure is divided up', h.url_for(controller='spend', action='split', id=c.id))}?</p>
+% endif
+
+${forms.new_spend_form(c.expenditure, action=h.url_for(action='update')) | n}