1 {% extends "base.html" %}
3 Motion: {{motion.name}}
6 {%- include 'motion.html' %}
8 <div class="motion card" id="votes">
9 <div class="card-heading text-white bg-info">
12 <div class="card-body">
13 {%- for row in votes %}
14 <div>{{row.email}}: {{row.result}}{%- if row.proxyemail %} : given by {{row.proxyemail}}{%- endif %}</div>
20 {%- if motion.running %}
23 <div class="panel panel-info" id="votes">
24 <div class="panel-body">
27 Given by {{proxyname[0][0]}}
29 <form action="/motion/{{motion.identifier}}/vote/{{g.voter}}" method="POST">
30 {%- for vote in ['yes','no','abstain'] %}
31 <button type="submit" class="btn btn-{{ 'success' if vote == motion.result else 'primary' }}" name="vote" value="{{vote}}" id="vote-{{vote}}">{{vote}}</button>
35 {%- for p in proxyvote %}
36 <h3>Vote for {{p.email}}</h3>
37 {%- if p.owneremail and p.result%}
38 Voted by {{p.owneremail}}
40 <form action="/motion/{{motion.identifier}}/vote/{{p.voter_id}}" method="POST">
41 {%- for vote in ['yes','no','abstain'] %}
42 <button type="submit" class="btn btn-{{ 'success' if vote == p.result else 'primary' }}" name="vote" value="{{vote}}" id="vote-{{vote}}">{{vote}}</button>
49 <form action="/motion/{{motion.identifier}}/cancel" method="POST" class="form-inline">
50 <input type="text" placeholder="cancelation reason" name="reason" class="form-control" required="yes">
51 <button type="submit" class="btn btn-danger" name="cancel" value="cancel" id="cancel">Cancel</button></br>
55 <form action="/motion/{{motion.identifier}}/finish" method="POST" class="form-inline">
56 <button type="submit" class="btn btn-danger" name="finish" value="finish" id="finish">Finish</button></br>
61 <a href="/?start={{motion.id}}#motion-{{motion.id}}" class="btn btn-primary">Back</a>