]> WPIA git - motion.git/blobdiff - templates/single_motion.html
chg: Prev/Next/Back-links as bootstrap-buttons
[motion.git] / templates / single_motion.html
index 1078343cb72198a4cb8bfb783cbce51b797d5068..ac4ff79148bc4ef86292b5040f1611cbda0c8a75 100644 (file)
@@ -5,10 +5,19 @@ Motion: {{motion.name}}
 {% block body %}
 {%- include 'motion.html' %}
 {%- if motion.running %}
+{%- if may_vote %}
 <form action="/motion/{{motion.id}}/vote" method="POST">
 {%- for vote in ['yes','no','abstain'] %}
 <button type="submit" class="btn btn-{{ 'success' if vote == motion.result else 'primary' }}" name="vote" value="{{vote}}" id="vote-{{vote}}">{{vote}}</button>
 {%- endfor %}
 </form>
 {%- endif %}
+{%- if may_cancel %}
+<form action="/motion/{{motion.id}}/cancel" method="POST" class="form-inline">
+<input type="text" placeholder="cancelation reason" name="reason" class="form-control" required="yes">
+<button type="submit" class="btn btn-danger">Cancel</button>
+</form>
+{%- endif %}
+{%- endif %}
+<a href="/?start={{motion.id}}#motion-{{motion.id}}" class="btn btn-primary">Back</a>
 {%- endblock %}