{% load i18n %} {% if form.errors %}
{% trans 'Required information missing' %}

{% trans 'Please review the form to make sure that all required fields are filled.' %}

{% endif %}

Order Information

{% if form.client.errors %} {{ form.client.errors }} {% endif %}
{{ form.delivery_date }}
{% if form.delivery_date.errors %} {{ form.delivery_date.errors }} {% endif %}

Order items

{% for formset in inlines %} {{ formset.management_form }}
{% if formset.errors %}
{% trans 'Required information missing' %}

{% trans 'Please review the form to make sure that all required fields are filled.' %}

{% endif %} {% for subform in formset.forms %}
{% trans "Order item" %}
{% if subform.instance.pk %} {{ subform.DELETE }} {{ subform.id }} {% endif %}
{{ subform.component_group }} {% if subform.component_group.errors %} {{ subform.component_group.errors }} {% endif %}
{{ subform.price }} {% if subform.price.errors %} {{ subform.price.errors }} {% endif %}
{{ subform.billable_flag }} {% if subform.billable_flag.errors %} {{ subform.billable_flag }} {% endif %}
{{ subform.size }} {% if subform.size.errors %} {{ subform.size.errors }} {% endif %}
{% if subform.order_item_type.errors %} {{ subform.order_item_type.errors }} {% endif %} {{ subform.order_item_type }}
{{ subform.remark }} {% if subform.remark.errors %} {{ subform.remark.errors }} {% endif %}
{{ subform.total_quantity }} {% if subform.total_quantity.errors %} {{ subform.total_quantity.errors }} {% endif %}
{% endfor %}
{% endfor %}