{% extends "default_content_page.html" %} {% block title %}{% if point %}{{ point.name }}{% else %}Нове місце розвантаження{% endif %}{% endblock %} {% block content-title %}{% if point %}Місце розвантаження: {{ point.name }}{% else %}Нове місце розвантаження{% endif %}{% endblock %} {% block content-inner %} {% include "pricing/_messages.html" %}
{% csrf_token %} {% if form.non_field_errors %}
{% include "includes/field_errors.html" with errors=form.non_field_errors %}
{% endif %}
Основне
{{ form.name.label_tag }} {{ form.name }}{% include "includes/field_errors.html" with errors=form.name.errors %}
{{ form.terminal.label_tag }} {{ form.terminal }}{% include "includes/field_errors.html" with errors=form.terminal.errors %}
{{ form.region.label_tag }} {{ form.region }}{% include "includes/field_errors.html" with errors=form.region.errors %}
{{ form.district.label_tag }} {{ form.district }}{% include "includes/field_errors.html" with errors=form.district.errors %}
{{ form.settlement.label_tag }} {{ form.settlement }}{% include "includes/field_errors.html" with errors=form.settlement.errors %}
{{ form.latitude.label_tag }} {{ form.latitude }}{% include "includes/field_errors.html" with errors=form.latitude.errors %}
{{ form.longitude.label_tag }} {{ form.longitude }}{% include "includes/field_errors.html" with errors=form.longitude.errors %}
Координати необов'язкові. Можна скопіювати з Google Maps: правою кнопкою по точці → перші два числа.
{{ form.comment.label_tag }} {{ form.comment }}{% include "includes/field_errors.html" with errors=form.comment.errors %}
{{ form.active }}
Культури та ціни закупівлі
{{ formset.management_form }} {% if formset.non_form_errors %}
{% include "includes/field_errors.html" with errors=formset.non_form_errors %}
{% endif %}
{% for price_form in formset %} {% for hidden in price_form.hidden_fields %}{{ hidden }}{% endfor %} {% endfor %}
Культура Клас / специфікація Ціна, грн з ПДВ за т Статус Видалити
{{ price_form.culture }}{% include "includes/field_errors.html" with errors=price_form.culture.errors %}{% include "includes/field_errors.html" with errors=price_form.non_field_errors %} {{ price_form.specification }}{% include "includes/field_errors.html" with errors=price_form.specification.errors %} {{ price_form.price }}{% include "includes/field_errors.html" with errors=price_form.price.errors %} {{ price_form.status }}{% include "includes/field_errors.html" with errors=price_form.status.errors %} {{ price_form.DELETE }}
Скасувати
{% if point %}
{% csrf_token %}
{% endif %} {% endblock %} {% block extra_body_scripts %} {% include "pricing/_formset_js.html" %} {% if not point %} {% endif %} {% endblock %}