X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=templates%2Fsingle_motion.html;h=c53e4b51307bb67b66d5b7079662fa89bc8c8c29;hb=4af338e33108c609381f4c60b6cc12b50da7f107;hp=ac4ff79148bc4ef86292b5040f1611cbda0c8a75;hpb=8c6bfd970009dae1fc76acae9cfe4d8579b4d1a3;p=motion.git diff --git a/templates/single_motion.html b/templates/single_motion.html index ac4ff79..c53e4b5 100644 --- a/templates/single_motion.html +++ b/templates/single_motion.html @@ -4,20 +4,61 @@ Motion: {{motion.name}} {%- endblock %} {% block body %} {%- include 'motion.html' %} +{%- if votes %} +
+
+ Motion Votes +
+
+ {%- for row in votes %} +
{{row.email}}: {{row.result}}{%- if row.proxyemail %} : given by {{row.proxyemail}}{%- endif %}
+ {%- endfor %} +
+
+{%- endif %} + {%- if motion.running %} + {%- if may_vote %} -
+
+
+

My vote

+{%- if proxyname %} +Given by {{proxyname[0][0]}} +{%- endif %} + {%- for vote in ['yes','no','abstain'] %} {%- endfor %} + +{%- for p in proxyvote %} +

Vote for {{p.email}}

+{%- if p.owneremail and p.result%} +Voted by {{p.owneremail}} {%- endif %} +
+{%- for vote in ['yes','no','abstain'] %} + +{%- endfor %} +
+{%- endfor %} +{%- endif %} + {%- if may_cancel %} -
+ - +
+
+{%- endif %} +{%- if may_finish %} +
+
{%- endif %} + {%- endif %} Back {%- endblock %} +
+