{% load i18n static cosinnus_tags widget_tweaks sekizai_tags thumbnail %} {# this template expects an {{ event }} object to be passed to it. Also accepts hide_control_buttons to hide edit/delete buttons #} {% addtoblock "js" %} {% if event.state == 1 and user.is_authenticated and user|has_read_access:event %} {% endif %} {% endaddtoblock %}
{% if event.attached_image %}
{% endif %}
{% if user|has_write_access:event and not hide_control_buttons %} {% captureas modal_id %}deleteModal_{{object.slug}}{% endcaptureas %} {% if event.state != 4 %} {% endif %} {% endif %} {% include 'cosinnus/feedback/report_button_btn.html' with object=event %}
{% if user|has_write_access:event and not hide_control_buttons %} {% captureas label %}{% blocktrans with title=object.title %}Do you really want to delete event „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Delete Event" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:event:event-delete' group=group slug=object.slug%}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=modal_id label=label title=title form_action=action %} {% endif %} {% if event.state != 2 %}
{% endif %} {% if event.media_tag_object.location %}
{% endif %}
{% if event.url %}
{% endif %} {# ######### Event attendance ########## #} {% if event.state == 1 and user.is_authenticated and user|has_read_access:event %}
{# ######### Event attendance button ########## #}
{# This hacky invisible button fixes all kinds of CSS incongruencies because the first button has different style rules #}
{% if event.attached_images %}
{% include 'cosinnus/common/attached_images_gallery.html' with object=event max_images=12 %}
{% endif %} {% include 'cosinnus/media_tags_readonly.html' with object=event hide_attached=True hide_location=True list_view="noindent" %} {% endif %} {# *********** Reflect event in projects *************** #} {% if may_reflect and reflectable_groups %} {% include 'cosinnus/common/reflect/reflected_object_select_button.html' with select_icon="fa-calendar-plus-o" %} {% endif %} {% if event.attached_objects.exists %} {% cosinnus_render_attached_objects event %} {% endif %}