2020-11-22 02:36:01 +00:00
|
|
|
<div class="poll">
|
2020-11-23 15:06:23 +00:00
|
|
|
<p class="poll-question">Q. {{ vars.question }}</p>
|
2020-11-22 02:36:01 +00:00
|
|
|
{% if vars.form is not null %}
|
|
|
|
{% block form %}
|
|
|
|
<div class='form-single'>
|
|
|
|
{{ form(vars.form) }}
|
|
|
|
</div>
|
|
|
|
{% endblock form %}
|
2021-04-30 02:51:03 +01:00
|
|
|
{% else %}
|
2020-11-22 02:36:01 +00:00
|
|
|
<ul>
|
2021-04-30 02:51:03 +01:00
|
|
|
{% for question, votes in vars.responses %}
|
|
|
|
<li class="result">
|
|
|
|
<p class="result-option">{{ question }}</p>
|
|
|
|
<p class="result-vote">{{ votes }} </p>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2020-11-22 02:36:01 +00:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|