]> 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 bd954aad8e4e4968f7260a1c2243a1e0ed3277bc..2c1b21305ddb727798aa7c56e0229798c7224fbc 100644 (file)
@@ -52,7 +52,7 @@
         else:
           klass = 'unselected'
       %>
-      <a id="${name}" class="${klass}" href="${h.url_for(controller=name, action='index', id=None)}">
+      <a id="${name}" class="${klass}" href="${h.url_for(controller=name, action='index')}">
         <img src="${request.script_name}/icons/${name}.png" alt="">
         <span>${name.capitalize()}</span>
       </a>
           <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>