showpoll.html.twig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% extends 'stdgrid.html.twig' %}
  2. {% block meta %}
  3. {{ parent() }}
  4. {% endblock %}
  5. {% block title %}Poll{% endblock %}
  6. {% block stylesheets %}
  7. {{ parent() }}
  8. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/poll/poll.css') }}">
  9. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/feeds/public.css') }}"
  10. media="screen and (min-width: 1300px)">
  11. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/feeds/public_mid.css') }}"
  12. media="screen and (max-width: 1300px)">
  13. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/feeds/public_small.css') }}"
  14. media="screen and (max-width: 750px)">
  15. {% endblock %}
  16. {% block header %}
  17. {{ parent() }}
  18. {% endblock %}
  19. {% block left %}
  20. {{ parent() }}
  21. {% endblock %}
  22. {% block body %}
  23. <div class="page">
  24. <div class="poll">
  25. <p class="poll-question">Q. {{ poll.question }}</p>
  26. <ul>
  27. {% for question, votes in poll.countResponses() %}
  28. <li class="result">
  29. <p class="result-option">{{ question }}</p>
  30. <p class="result-vote">{{ votes }} </p>
  31. </li>
  32. {% endfor %}
  33. </ul>
  34. </div>
  35. </div>
  36. {% endblock body %}
  37. {% block javascripts %}{% endblock %}