]> WPIA git - motion.git/blobdiff - templates/single_motion.html
Merge branch 'not_empty' into 'master'
[motion.git] / templates / single_motion.html
index a15e397d182744086b762f90fac08ab8d6d64efc..8935636a76ded2a4a9af21b484b09509a0515b0d 100644 (file)
@@ -5,11 +5,11 @@ Motion: {{motion.name}}
 {% block body %}
 {%- include 'motion.html' %}
 {%- if votes %}
-<div class="panel panel-info" id="votes">
-  <div class="panel-heading">
+<div class="motion card" id="votes">
+  <div class="card-heading text-white bg-info">
     Motion Votes
   </div>
-  <div class="panel-body">
+  <div class="card-body">
     {%- for row in votes %}
     <div>{{row.email}}: {{row.result}}</div>
     {%- endfor %}
@@ -18,16 +18,21 @@ Motion: {{motion.name}}
 {%- endif %}
 {%- if motion.running %}
 {%- if may_vote %}
-<form action="/motion/{{motion.id}}/vote" method="POST">
+<form action="/motion/{{motion.identifier}}/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">
+<form action="/motion/{{motion.identifier}}/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>
+<button type="submit" class="btn btn-danger" name="cancel" value="cancel" id="cancel">Cancel</button></br>
+</form>
+{%- endif %}
+{%- if may_finish %}
+<form action="/motion/{{motion.identifier}}/finish" method="POST" class="form-inline">
+<button type="submit" class="btn btn-danger" name="finish" value="finish" id="finish">Finish</button></br>
 </form>
 {%- endif %}
 {%- endif %}