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}}</div>
19 {%- if motion.running %}
21 <form action="/motion/{{motion.identifier}}/vote" method="POST">
22 {%- for vote in ['yes','no','abstain'] %}
23 <button type="submit" class="btn btn-{{ 'success' if vote == motion.result else 'primary' }}" name="vote" value="{{vote}}" id="vote-{{vote}}">{{vote}}</button>
28 <form action="/motion/{{motion.identifier}}/cancel" method="POST" class="form-inline">
29 <input type="text" placeholder="cancelation reason" name="reason" class="form-control" required="yes">
30 <button type="submit" class="btn btn-danger">Cancel</button>
34 <a href="/?start={{motion.id}}#motion-{{motion.id}}" class="btn btn-primary">Back</a>