]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Add a results page for after an expenditure is submitted
authorEvan Broder <broder@mit.edu>
Mon, 14 Jul 2008 15:23:14 +0000 (15:23 +0000)
committerEvan Broder <broder@mit.edu>
Mon, 14 Jul 2008 15:23:14 +0000 (15:23 +0000)
bluechips/controllers/spend.py
bluechips/templates/spend/new.mako [new file with mode: 0644]

index 44388b1bb709f070767577c0875ee3164c96781a..d39f78e900f6e388c77c31643f5087b9a1b139c7 100644 (file)
@@ -22,3 +22,7 @@ class SpendController(BaseController):
         
         even_split(e)
         meta.Session.commit()
+        
+        c.expenditure = e
+        
+        return render('/spend/new.mako')
diff --git a/bluechips/templates/spend/new.mako b/bluechips/templates/spend/new.mako
new file mode 100644 (file)
index 0000000..aec749d
--- /dev/null
@@ -0,0 +1,12 @@
+<%inherit file="/base.mako"/>
+
+<%def name="title()">${parent.title()} :: Expenditure Details</%def>
+
+<p>Expenditure logged.</p>
+
+<h2>Want to do something unusual?</h2>
+
+<ul id="expenditure_options">
+  <li>${h.link_to('Change the split', h.url_for(action='split', id=c.expenditure.id))}</li>
+  <li>${h.link_to('Spin off a subitem', h.url_for(action='subitem', id=c.expenditure.id))}</li>
+</ul>