]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Add a link to the expenditure/transfer delete pages from all
authorEvan Broder <broder@mit.edu>
Mon, 9 Nov 2009 01:56:25 +0000 (20:56 -0500)
committerEvan Broder <broder@mit.edu>
Mon, 9 Nov 2009 02:09:21 +0000 (21:09 -0500)
expenditure and transfer lists.

bluechips/templates/base.mako

index e44a9ee148441d25e668f784c9d19de33091e955..b45b8ef6d943bdb930b4c22a875908f654727611 100644 (file)
@@ -88,6 +88,7 @@
       <th class="amount">Amount</th>
       <th class="share">My Share</th>
       <th class="editlink"></th>
+      <th class="deletelink"></th>
     </tr>
     % for e in es:
       <%
         <td class="amount">${e.amount}</td>
         <td class="share">${e.share(request.environ['user'])}</td>
         <td class="editlink">${h.link_to('Edit', h.url_for(controller='spend', action='edit', id=e.id))}</td>
+        <td class="deletelink">${h.link_to('Delete', h.url_for(controller='spend', action='delete', id=e.id))}</td>
       </tr>
     % endfor
   </table>
       <th class="description">Description</th>
       <th class="amount">Amount</th>
       <th class="editlink"></th>
+      <th class="deletelink"></th>
     </tr>
     % for t in ts:
       <%
         <td class="description">${t.description}</td>
         <td class="amount">${t.amount}</td>
         <td class="editlink">${h.link_to('Edit', h.url_for(controller='transfer', action='edit', id=t.id))}</td>
+        <td class="deletelink">${h.link_to('Delete', h.url_for(controller='transfer', action='delete', id=t.id))}</td>
       </tr>
     % endfor
   </table>