{% extends "cosinnus_poll/base.html" %} {% load i18n static cosinnus_tags widget_tweaks %} {% block page_title %} {% trans "Polls" %} {{ block.super }} {% endblock page_title %} {% block breadcrumb %} {{ block.super }}
  • {% if poll_view == "past" %}{% trans "Archived Polls" %}{% else %}{% trans "Polls" %}{% endif %}
  • {% endblock %} {% block leftnav %} {% include "cosinnus_poll/leftnav.html" %} {% endblock leftnav %} {% block content %}
    {% include 'cosinnus/common/filter_controls.html' %} {% if user|can_create_objects_in:group %}
    • {% captureas placeholder %}{% trans "Enter the title to create a new poll." %}{% endcaptureas %}
    {% endif %} {% for poll in polls %} {% include 'cosinnus_poll/list_object.html' %} {% empty %} {% if poll_view == 'past' %} {% captureas empty_message %}{% trans "There are no archived polls." %}{% endcaptureas %} {% else %} {% captureas empty_message %}{% trans "There are no running polls." %}{% endcaptureas %} {% endif %} {% include 'cosinnus/common/empty_button.html' with message=empty_message %} {% endfor %}
    {% endblock content %}