view.html.twig 585 B

12345678910111213141516171819
  1. <div class="poll">
  2. <p class="poll-question">Q. {{ vars.question }}</p>
  3. {% if vars.form is not null %}
  4. {% block form %}
  5. <div class='form-single'>
  6. {{ form(vars.form) }}
  7. </div>
  8. {% endblock form %}
  9. {% else %}
  10. <ul>
  11. {% for question, votes in vars.responses %}
  12. <li class="result">
  13. <p class="result-option">{{ question }}</p>
  14. <p class="result-vote">{{ votes }} </p>
  15. </li>
  16. {% endfor %}
  17. </ul>
  18. {% endif %}
  19. </div>