{% extends "cosinnus_marketplace/base.html" %} {% load i18n static cosinnus_tags widget_tweaks sekizai_tags %} {% block page_title %} {% if offer.type == 1 %} {% trans "Looking for" %}: {% elif offer.type == 2 %} {% trans "Offering" %}: {% endif %} {{ offer.title }} {{ block.super }} {% endblock page_title %} {% block breadcrumb %} {{ block.super }}
  • {% if offer.type == 1 %} {% trans "Looking for" %}: {% elif offer.type == 2 %} {% trans "Offering" %}: {% endif %} {{ offer.title }}
  • {% endblock %} {% block leftnav %} {% include "cosinnus_marketplace/leftnav.html" with return_to="offers" %} {% endblock leftnav %} {% block extrahead %} {{ block.super }} {% addtoblock "js" %} {% endaddtoblock %} {% endblock extrahead %} {% block content %} {{ block.super }}
    {# Infobox for inactive offers. #} {% if not offer.is_active %} {% include 'cosinnus/common/empty_button.html' with message="This offer is inactive. It is only visible to you and not listed in the marketplace. You can reactivate it below." %} {% endif %}
    {% include "cosinnus_marketplace/single_offer_detailed.html" with offer=offer %} {% if user|has_write_access:offer %}
    {% captureas delete_modal_id %}deleteModal_{{offer.slug}}{% endcaptureas %} {% 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 deactivate_modal_id %}deactivateModal_{{offer.slug}}{% endcaptureas %} {% 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 activate_modal_id %}activateModal_{{offer.slug}}{% endcaptureas %} {% 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 %}
    {% include 'cosinnus_marketplace/offer_comments.html' with offer=offer full_view="True" no_indent="True" comments_expanded="True" %} {% endblock content %}