{% extends 'oscar/dashboard/layout.html' %} {% load i18n %} {% block title %} {{ title }} | {{ block.super }} {% endblock %} {% block body_class %}{{ block.super }} create-page{% endblock %} {% block navbar %} {% if not is_popup %} {{ block.super }} {% endif %} {% endblock %} {% block dashboard_nav %} {% if not is_popup %} {{ block.super }} {% endif %} {% endblock %} {% block breadcrumbs %} {% if not is_popup %} {% endif %} {% endblock %} {% block headertext %}{{ title }}{% endblock %} {% block dashboard_content %}
{% csrf_token %}
{% if is_popup %}{% endif %} {% if to_field %}{% endif %}
{% block option_details %}

{% trans "Option details" %}

{% comment %} If the Option form has field_errors, partials/form_fields.html will render an error message. This means that there'll be 2 error messages, one from the partial and one from the view. Perhaps there should be an option allowing hiding of the error message in the template. For now we copy paste what we need from the template. {% endcomment %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}
{{ error }}
{% endfor %} {% endif %} {% for field in form %} {% include 'oscar/dashboard/partials/form_field.html' with field=field %} {% endfor %}
{% endblock %}
{% block fixed_actions_group %}
{% trans "Cancel" %} {% trans "or" %}
{% endblock fixed_actions_group %}
{% endblock dashboard_content %}