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

{% trans "Details" %}

{% csrf_token %} {% if form.is_bound and not form.is_valid %}
{% trans "Oops! We found some errors" %} - {% trans "please check the error messages below and try again" %}
{% endif %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}
{{ error }}
{% endfor %} {% endif %}

{% trans "Fields marked with * are mandatory." %}

{% block form_fields %} {% include 'oscar/dashboard/partials/form_field.html' with field=form.name %} {% include 'oscar/dashboard/partials/form_field.html' with field=form.priority %} {% include 'oscar/dashboard/partials/form_field.html' with field=form.offers %} {% endblock %}
{% trans "Cancel" %}
{% if offergroup.pk and not offergroup.is_system_group and not offergroup.offers.exists %} {% trans "Delete" %} {% endif %}
{% endblock dashboard_content %}