]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/mobile/base.mako
We have pie charts.
[bluechips.git] / bluechips / templates / mobile / base.mako
index 384edaa5aeb8a118458daa03af17592148fe2518..2c1b21305ddb727798aa7c56e0229798c7224fbc 100644 (file)
           <th><label for="description">Description</label></th>
           <td>${h.text('description', h.grab(c.expenditure, 'description'))}</td>
         </tr>
+        <tr>
+          <th><label for="tags">Tags</label></th>
+          <td>${h.text('tags', h.grab(c, 'tags'))}</td>
+        </tr>
       </table>
 
       <p>Change how an expenditure is split up.</p>
         % for ii, user_row in enumerate(c.users):
           <%
             user_id, user = user_row
-            if user.resident:
-              percent = 1
-            else:
-              percent = 0
           %>
           <tr>
             <th><label for="shares-${ii}amount">${user.name}</label></th>
             <td>
-              ${h.text('shares-%d.amount' % ii, percent)}
+              ${h.text('shares-%d.amount' % ii, 1 if user.resident else None)}
               ${h.hidden('shares-%d.user_id' % ii, user.id)}
             </td>
           </tr>