]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/spend/index.mako
Tweak tag implementation
[bluechips.git] / bluechips / templates / spend / index.mako
index 5d2ee103e8922dc2d68c42fe0924d2d9c3c9bd11..d4064cb58e914a3808e6daf92aa5d33de85cf32c 100644 (file)
@@ -21,7 +21,7 @@
     </tr>
     <tr>
       <th><label for="tags">Tags</label></th>
-      <td>${h.text('tags', c.values['tags'], size=64)}</td>
+      <td>${h.text('tags', c.tags, size=64)}</td>
     </tr>
   </table>
 
       </tr>
     % endfor
     <tr>
+      <td></td>
       <td colspan="2">
         ${h.submit(None, 'Submit', class_="submitbutton")}
+        %if c.expenditure.id:
+       <input type="button" value="Delete" onClick="window.location.href='${h.url_for(controller='spend', action='delete', id=c.expenditure.id)}'">
+       %endif
       </td>
     </tr>
   </table>