showpoll.html.twig 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/network/public.css') }}"
  10. media="screen and (min-width: 1300px)">
  11. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public_mid.css') }}"
  12. media="screen and (max-width: 1300px)">
  13. <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/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="content">
  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 %}