1 {% extends "base.html" %}
3 <div class="container">
4 <form action="/proxy/add" method="POST">
7 <td>{{_('Voter')}}</td>
8 <td>{{_('Proxy')}}</td>
13 <select class="float form-control" name="voter">
14 {%- for voter in voters %}
15 <option>{{voter.email}}</option>
20 <select class="float form-control" name="proxy">
21 {%- for voter in voters %}
22 <option>{{voter.email}}</option>
27 <button type="submit" class="btn btn-primary">{{_('Add')}}</button>
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')}}
38 <div class="card-body">
41 <th>{{_('Voter')}}</th>
42 <th>{{_('Proxy')}}</th>
45 {%- for row in proxies %}
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>
57 <form action="/proxy/revokeall" method="POST">
58 <button type="submit" class="btn btn-danger">{{_('Revoke all')}}</button>