X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=templates%2Fsingle_motion.html;h=61611adf1468151d0485800717371d9eb1aaa031;hb=f3cf764d5e9ab3f2fa1327dc5db02de90fd91434;hp=7fd1e25a98d63d06da17ad438647f619150762b7;hpb=ac0f15d9acff6b20fb432946e5bcad54b8d7e2a7;p=motion.git diff --git a/templates/single_motion.html b/templates/single_motion.html index 7fd1e25..61611ad 100644 --- a/templates/single_motion.html +++ b/templates/single_motion.html @@ -1,23 +1,64 @@ {% extends "base.html" %} {% block title -%} -Motion: {{motion.name}} +{{_('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 %} -
-{%- for vote in ['yes','no','abstain'] %} - +
+
+

{{_('My vote')}}

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

{{_('Vote for %(email)s', email=p.email)}}

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