]> WPIA git - motion.git/blob - templates/single_motion.html
Merge branch 'motion_close' into 'master'
[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 votes %}
8 <div class="motion card" id="votes">
9   <div class="card-heading text-white bg-info">
10     Motion Votes
11   </div>
12   <div class="card-body">
13     {%- for row in votes %}
14     <div>{{row.email}}: {{row.result}}</div>
15     {%- endfor %}
16   </div>
17 </div>
18 {%- endif %}
19 {%- if motion.running %}
20 {%- if may_vote %}
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>
24 {%- endfor %}
25 </form>
26 {%- endif %}
27 {%- if may_cancel %}
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" name="cancel" value="cancel" id="cancel">Cancel</button></br>
31 </form>
32 {%- endif %}
33 {%- if may_finish %}
34 <form action="/motion/{{motion.identifier}}/finish" method="POST" class="form-inline">
35 <button type="submit" class="btn btn-danger" name="finish" value="finish" id="finish">Finish</button></br>
36 </form>
37 {%- endif %}
38 {%- endif %}
39 <a href="/?start={{motion.id}}#motion-{{motion.id}}" class="btn btn-primary">Back</a>
40 {%- endblock %}