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 %}
|
|
|
|
{% else %}
|
|
|
|
<ul>
|
|
|
|
{% for question, votes in vars.responses %}
|
2020-11-23 15:06:23 +00:00
|
|
|
<li class="result">
|
|
|
|
<p class="result-option">{{ question }}</p>
|
|
|
|
<p class="result-vote">{{ votes }} </p>
|
|
|
|
</li>
|
2020-11-22 02:36:01 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|