]> WPIA git - motion.git/blob - templates/proxy.html
Merge branch 'translation' into 'master'
[motion.git] / templates / proxy.html
1 {% extends "base.html" %}
2 {% block body %}
3 <div class="container">
4 <form action="/proxy/add" method="POST">
5   <table>
6   <tr>
7     <td>{{_('Voter')}}</td>
8     <td>{{_('Proxy')}}</td>
9     <td></td>
10   </tr>
11   <tr>
12     <td>
13       <select class="float form-control" name="voter">
14     {%- for voter in voters %}
15         <option>{{voter.email}}</option>
16     {%- endfor %}
17       </select>
18     </td>
19     <td>
20       <select class="float form-control" name="proxy">
21         {%- for voter in voters %}
22           <option>{{voter.email}}</option>
23         {%- endfor %}
24       </select>
25     </td>
26     <td>
27       <button type="submit" class="btn btn-primary">{{_('Add')}}</button>
28     </td>
29   </tr>
30   </table>
31 </form>
32 {%- if proxies %}
33 <form action="/proxy/revoke" method="POST">
34 <div class="motion card" id="votes">
35   <div class="card-heading text-white bg-info">
36     {{_('Granted Proxies')}}
37   </div>
38   <div class="card-body">
39     <table>
40       <thead>
41         <th>{{_('Voter')}}</th>
42         <th>{{_('Proxy')}}</th>
43         <th></th>
44       </thead>
45       {%- for row in proxies %}
46       <tr>
47         <td>{{row.voter_email}}</td>
48         <td>{{row.proxy_email}}</td>
49         <td><button type="submit" class="btn btn-danger" name="id" value="{{row.id}}">{{_('Revoke')}}</button></td>
50       </tr>
51       {%- endfor %}
52     </table>
53   </div>
54 </div>
55 </form>
56 {%- endif %}
57 <form action="/proxy/revokeall" method="POST">
58   <button type="submit" class="btn btn-danger">{{_('Revoke all')}}</button>
59 </form>
60 </div>
61 {%- endblock %}