{% extends "default_content_page.html" %} {% load static %} {% block title %}{% if object %}Редагувати контакт{% else %}Додати контакт{% endif %}{% endblock %} {% block navigation %} {% endblock %} {% block content-title %}{% if object %}Редагувати контакт{% else %}Додати контакт{% endif %}{% endblock %} {% block content-inner %}
{% csrf_token %} {% include "includes/field_errors.html" with errors=form.non_field_errors %}
{{ form.surname.label_tag }} {{ form.surname }} {% include "includes/field_errors.html" with errors=form.surname.errors %}
{{ form.name.label_tag }} {{ form.name }} {% include "includes/field_errors.html" with errors=form.name.errors %}
{{ form.father_name.label_tag }} {{ form.father_name }} {% include "includes/field_errors.html" with errors=form.father_name.errors %}
{{ form.position.label_tag }} {{ form.position }} {% include "includes/field_errors.html" with errors=form.position.errors %}
{{ form.birth_date.label_tag }} {{ form.birth_date }} {% include "includes/field_errors.html" with errors=form.birth_date.errors %}
{{ form.farmers.label_tag }} {{ form.farmers }} {% include "includes/field_errors.html" with errors=form.farmers.errors %}
{{ formset.management_form }}
{% for form in formset %}
{{ form.id }} {% include "includes/field_errors.html" with errors=form.non_field_errors %} {{ form.as_p }}

{% endfor %}


{% if object %} Скасувати {% else %} Скасувати {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}