{% include 'cosinnus/media_tags_readonly.html' with object=poll hide_attached=True list_view="noindent" %}
{% if poll.description and poll.description|length > 0 %}
{{ poll.description|textfield }}
{% else %}
{% trans "(No description set)" %}
{% endif %}
{% if poll.attached_objects.exists %}
{% cosinnus_render_attached_objects poll %}
{% endif %}
{# announce winning option #}
{% if poll.state != 1 %}
{% if poll.winning_option %}
{% trans "The Winner is" %}:
{% include 'cosinnus_poll/single_poll_option.html' with option=poll.winning_option %}
{% trans "Available options were" %}:
{% else %}
{% trans "There was no winning option." %}
{% endif %}
{% endif %}
{% if options %}
{% for option in options %}
{% include 'cosinnus_poll/single_poll_option.html' with option=option option_counter=forloop.counter %}
{% endfor %}
{% else %}
{% comment %} No options were added {% endcomment %}
{% include 'cosinnus/common/empty_button.html' with message="There are no options for this poll yet!" %}
{% endif %}