{% load i18n cosinnus_tags %}
{% if poll.description and poll.description|length > 0 %}
{% endif %} {% include 'cosinnus/media_tags_readonly.html' with object=poll %} {% if user|has_write_access:poll %} {% captureas delete_modal_id %}deleteModal_{{poll.slug}}{% endcaptureas %} {% if poll.state != 3 %} {% endif %} {% if poll.state == 2 %} {% captureas reopen_modal_id %}reopenModal_{{poll.slug}}{% endcaptureas %} {% captureas archive_modal_id %}archiveModal_{{poll.slug}}{% endcaptureas %} {% endif %} {% endif %} {% include 'cosinnus/feedback/report_button_btn.html' with object=poll %}
{% if user|has_write_access:poll %} {% captureas label %}{% blocktrans with title=poll.title %}Do you really want to delete poll „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Delete poll" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:poll:delete' group=group slug=poll.slug %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=delete_modal_id label=label title=title form_action=action %} {% if poll.state == 2 %} {% captureas label %}{% blocktrans with title=poll.title %}Do you really want to re-open poll „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Re-open poll" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:poll:reopen' group=group slug=poll.slug %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=reopen_modal_id label=label title=title form_action=action %} {% captureas label %}{% blocktrans with title=poll.title %}Do you really want to archive poll „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Archive poll" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:poll:archive' group=group slug=poll.slug %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=archive_modal_id label=label title=title form_action=action %} {% endif %} {% endif %}