{% if item_id %} {% url 'customers:child_edit' customer.id section item_id as action_url %} {% else %} {% url 'customers:child_create' customer.id section as action_url %} {% endif %}

{% if section == "contacts" %} {% if item_id %}{% translate "Edit contact" %}{% else %}{% translate "Add contact" %}{% endif %} {% else %} {% if item_id %}{% translate "Edit billing unit" %}{% else %}{% translate "Add billing unit" %}{% endif %} {% endif %}

{% csrf_token %} {{ form }}