{% load i18n cosinnus_tags thumbnail %}
{% if offer.description and offer.description|length > 0 %}
{% endif %} {% if user|has_write_access:offer %} {% captureas delete_modal_id %}deleteModal_{{offer.slug}}{% endcaptureas %} {% if offer.is_active %} {% captureas deactivate_modal_id %}deactivateModal_{{offer.slug}}{% endcaptureas %} {% else %} {% captureas activate_modal_id %}activateModal_{{offer.slug}}{% endcaptureas %} {% endif %} {% endif %} {% include 'cosinnus/feedback/report_button_btn.html' with object=offer %}
{% if user|has_write_access:offer %} {% captureas label %}{% blocktrans with title=offer.title %}Do you really want to delete offer „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Delete offer" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:marketplace:delete' group=group slug=offer.slug %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=delete_modal_id label=label title=title form_action=action %} {% if offer.is_active %} {% captureas label %}{% blocktrans with title=offer.title %}Do you really want to deactivate offer „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Deactivate offer" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:marketplace:deactivate' group=group slug=offer.slug %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=deactivate_modal_id label=label title=title form_action=action %} {% else %} {% captureas label %}{% if offer.has_expired %}{% blocktrans with title=offer.title %}Do you really want to reactivate offer „{{ title }}“?{% endblocktrans %}{% else %}{% blocktrans with title=offer.title %}Do you really want to activate offer „{{ title }}“?{% endblocktrans %}{% endif %}{% endcaptureas %} {% captureas title %}{% if offer.has_expired %}{% trans "Reactivate offer" %}{% else %}{% trans "Activate offer" %}{% endif %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:marketplace:activate' group=group slug=offer.slug %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=activate_modal_id label=label title=title form_action=action %} {% endif %} {% endif %}