]> asedeno.scripts.mit.edu Git - bluechips.git/blob - bluechips/templates/mobile/status/index.mako
4fc9af9aa02ead1e95d9c8bf5b827a2371432602
[bluechips.git] / bluechips / templates / mobile / status / index.mako
1 <%inherit file="/mobile/base.mako"/>
2
3 ${self.tabs('status')}
4
5 <div id="tab-status" class="tab">
6   % if len(c.settle) == 0:
7     <p>No need! The books are balanced!</p>
8   % else:
9     <p>To balance the books, the following transfers need to be made:</p>
10
11     <table id="balance">
12       <tr>
13         <th>From</th>
14         <th>To</th>
15         <th>Amount</th>
16       </tr>
17       % for transfer in c.settle:
18         <tr>
19           <td>${transfer[0].name}</td>
20           <td>${transfer[1].name}</td>
21           <td>${transfer[2]}</td>
22         </tr>
23       % endfor
24     </table>
25   % endif
26 </div>
27 ${self.spendForm()}
28 ${self.transferForm()}