]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Show tags on expenditure deletion page
authorAlejandro R. Sedeño <asedeno@mit.edu>
Sun, 18 Apr 2010 20:59:23 +0000 (16:59 -0400)
committerAlejandro R. Sedeño <asedeno@mit.edu>
Wed, 23 Feb 2011 02:39:20 +0000 (21:39 -0500)
bluechips/controllers/spend.py
bluechips/templates/spend/delete.mako

index e7952a893dcae0b0a8fa541b24d9d4e6110cd9fe..60afaa7531f6b668888a11939dc36539f65a9f1c 100644 (file)
@@ -175,6 +175,7 @@ class SpendController(BaseController):
         c.expenditure = meta.Session.query(model.Expenditure).get(id)
         if c.expenditure is None:
             abort(404)
+        c.tags = ', '.join(c.expenditure.tags)
 
         return render('/spend/delete.mako')
 
index 19ae42201af2505b5af62d8518e6b989044ec7ec..572626749f8da494fd3af271b3e2d4513ff9cea9 100644 (file)
       <th><label for="description">Description</label></th>
       <td>${c.expenditure.description}</td>
     </tr>
+    <tr>
+      <th><label for="tags">Tags</label></th>
+      <td>${c.tags}</td>
+    </tr>
     <tr>
       <td colspan="2">
         ${h.submit('delete', 'Delete', class_="submitbutton")}