]> WPIA git - motion.git/blob - templates/single_motion.html
1cc121b2ce6b26f6f87ec6103c1be49524e40139
[motion.git] / templates / single_motion.html
1 {% extends "base.html" %}
2 {% block title -%}
3 Motion: {{motion.name}}
4 {%- endblock %}
5 {% block body %}
6 {%- include 'motion.html' %}
7 {%- if motion.running %}
8 {%- if may_vote %}
9 <form action="/motion/{{motion.id}}/vote" method="POST">
10 {%- for vote in ['yes','no','abstain'] %}
11 <button type="submit" class="btn btn-{{ 'success' if vote == motion.result else 'primary' }}" name="vote" value="{{vote}}" id="vote-{{vote}}">{{vote}}</button>
12 {%- endfor %}
13 </form>
14 {%- endif %}
15 {%- if may_cancel %}
16 <form action="/motion/{{motion.id}}/cancel" method="POST" class="form-inline">
17 <input type="text" placeholder="cancelation reason" name="reason" class="form-control" required="yes">
18 <button type="submit" class="btn btn-danger">Cancel</button>
19 </form>
20 {%- endif %}
21 {%- endif %}
22 <a href="/?start={{motion.id}}#motion-{{motion.id}}">Back</a>
23 {%- endblock %}