2020-11-22 11:36:01 +09:00
|
|
|
<div class="poll">
|
2020-11-24 00:06:23 +09:00
|
|
|
<p class="poll-question">Q. {{ vars.question }}</p>
|
2020-11-22 11:36:01 +09:00
|
|
|
{% if vars.form is not null %}
|
|
|
|
{% block form %}
|
|
|
|
<div class='form-single'>
|
|
|
|
{{ form(vars.form) }}
|
|
|
|
</div>
|
|
|
|
{% endblock form %}
|
2021-04-30 10:51:03 +09:00
|
|
|
{% else %}
|
2020-11-22 11:36:01 +09:00
|
|
|
<ul>
|
2021-04-30 10:51:03 +09: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 11:36:01 +09:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|