{% extends "cosinnus_marketplace/base.html" %} {% load i18n static cosinnus_tags widget_tweaks %} {% block page_title %} {% if offer_view == "mine" %}{% trans "My Offers" %}{% else %}{% trans "Offers" %}{% endif %} {{ block.super }} {% endblock page_title %} {% block breadcrumb %} {{ block.super }}
  • {% if offer_view == "mine" %}{% trans "My Offers" %}{% else %}{% trans "Offers" %}{% endif %}
  • {% endblock %} {% block leftnav %} {% include "cosinnus_marketplace/leftnav.html" %} {% endblock leftnav %} {% block content %} {{ block.super }} {% comment %} Disabled for now to keep the view more compact. There is an add button in the left navbar. {% if user|can_create_objects_in:group %}
    • {% captureas placeholder %}{% trans "Enter the title for a new offer." %}{% endcaptureas %}
    {% endif %} {% endcomment %} {% if filter.get_categories_grouped %}
    {# set all existing filters as inputs for the GET request #} {% for filter_key in 'o,creator'|makelist %} {% for filter_value in filter.data|querydictlist:filter_key %} {% endfor %} {% endfor %}
    {% for group, categories in filter.get_categories_grouped %}
    {% if group == 'zzz_misc' %}{% trans "Misc" %}{% else %}{{ group }}{% endif %} {% for category in categories %}
    {% endfor %}
    {% endfor %}
    {% endif %}
    {% for field in filter.form %} {% if field.name == 'creator' or field.name == 'o' %} {{ field }} {% endif %} {% endfor %} {% for filter_param, chosen_value, label, type in active_filters %} {% if not filter_param == 'categories' %} {{ label }}: {{ chosen_value }} {% endif %} {% endfor %}
    {% for offer in offers %} {% include 'cosinnus_marketplace/list_object.html' %} {% empty %} {% captureas empty_message %}{% trans "No offers" %}{% endcaptureas %} {% include 'cosinnus/common/empty_button.html' with message=empty_message %} {% endfor %}
    {% for offer in offers_buying %} {% include 'cosinnus_marketplace/list_object.html' %} {% empty %} {% captureas empty_message %}{% trans "No offers" %}{% endcaptureas %} {% include 'cosinnus/common/empty_button.html' with message=empty_message %} {% endfor %}
    {% for offer in offers_selling %} {% include 'cosinnus_marketplace/list_object.html' %} {% empty %} {% captureas empty_message %}{% trans "No offers" %}{% endcaptureas %} {% include 'cosinnus/common/empty_button.html' with message=empty_message %} {% endfor %}
    {% endblock content %}