{% extends 'oscar/dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block body_class %}{{ block.super }} create-page{% endblock %} {% block title %} {% if offer.pk %} {{ offer.name }}: {% else %} {% trans "Create new offer" %}: {% endif %} {{ title }} | {% trans "Offers" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block headertext %} {% if not offer.pk %} {% trans "Create new offer" %} {% else %} {{ offer.name }} {% endif %} {% endblock %} {% block dashboard_content %}
{% block progress %} {% include 'oscar/dashboard/offers/progress.html' %} {% endblock %}

{{ title }}

{% csrf_token %} {% block form_fields %} {% include "oscar/dashboard/partials/form_fields.html" with form=form %} {% endblock %} {% block form_extradata %}{% endblock %}
{% block form_actions %}
{% block form_actions_buttons %} {% if offer %}{# When editing offer, show saving button #} {% endif %} {% endblock %}
{% trans "cancel" %}
{% endblock form_actions %}
{% if session_offer %}
{% block summary %} {% include 'oscar/dashboard/offers/summary.html' %} {% endblock %}
{% endif %}
{% endblock dashboard_content %}