]> WPIA git - motion.git/blob - templates/proxy.html
add: adjust user handling per host
[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 <form action="/proxy/revoke" method="POST">
33 <div class="motion card" id="votes">
34   <div class="card-heading text-white bg-info">
35     {{_('Granted Proxies')}}
36   </div>
37   <div class="card-body">
38     <table>
39       <thead>
40         <th>{{_('Voter')}}</th>
41         <th>{{_('Proxy')}}</th>
42         <th></th>
43       </thead>
44       {%- if proxies %}
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       {%- endif %}
53     </table>
54   </div>
55 </div>
56 </form>
57 <form action="/proxy/revokeall" method="POST">
58   <button type="submit" class="btn btn-danger">{{_('Revoke all')}}</button>
59 </form>
60 </div>
61 {%- endblock %}