{% extends 'base.html' %} {% load static %} {% block scripts %} {# google map не забыть скачать скрипты на локал #} {# selects #} {# ajax #} {% endblock %} {% block body %}
{% csrf_token %}
{% if obj_id %} Изменить {% else %} Добавить {% endif %}выставочный центр

Основная информация

{# Hidden input uses for comparing with TmpFile objects #} {{ form.key }} {# Hidden input uses in clean method for checking url #} {{ form.place_exposition_id }} {# name #} {% with field='name' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %} {# type #}
{{ form.type}} {{ form.type.errors }}
{# main_title #} {% with field='main_title' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %} {# country #}
{{ form.country}} {{ form.country.errors }}
{# city #}
{{ form.city}} {{ form.city.errors }}

Дополнительная информация

{# description #} {% with field='description' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %} {# adress #} {% with field='adress' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %} {# address #}
{{ form.address }} {{ form.address.errors }}
{# phone #}
{{ form.phone}} {{ form.phone.errors }}
{# fax #}
{{ form.fax}} {{ form.fax.errors }}
{# web_page #}
{{ form.web_page}} {{ form.web_page.errors }}
{# email #}
{{ form.email}} {{ form.email.errors }}
{# video_link #}
{{ form.video_link }} {{ form.video_link.errors }}

Основная информация

{# foundation_year #}
{{ form.foundation_year}} {{ form.foundation_year.errors }}
{# total_year_action #} {% with field='total_year_action' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %} {# total_area #}
{{ form.total_area}} {{ form.total_area.errors }}
{# closed_area #}
{{ form.closed_area}} {{ form.closed_area.errors }}
{# open_area #}
{{ form.open_area}} {{ form.open_area.errors }}
{# total_pavilions #}
{{ form.total_pavilions}} {{ form.total_pavilions.errors }}
{# total_halls #}
{{ form.total_halls}} {{ form.total_halls.errors }}

Вместимость павилионов

{% if formset.errors %}
{% for form in formset.forms %} {% for key, value in form.errors.items %}

{{ value }}

{% endfor %} {% endfor %}
{% endif %} {# formset of halls #} {{ formset.management_form }}
{% for form in formset.forms %} {% endfor %}
Название павилиона Номер Вместимость
{{ form.name }} {{ form.number }} {{ form.capacity }} Удалить

Добавить зал

Услуги

{# wifi #}
{{ form.wifi}} {{ form.wifi.errors }}
{# bank #}
{{ form.bank}} {{ form.bank.errors }}
{# children_room #}
{{ form.children_room}} {{ form.children_room.errors }}
{# disabled_service #}
{{ form.disabled_service}} {{ form.disabled_service.errors }}
{# conference_centre #}
{{ form.conference_centre}} {{ form.conference_centre.errors }}
{# business_centre #}
{{ form.business_centre}} {{ form.business_centre.errors }}
{# online_registration #}
{{ form.online_registration}} {{ form.online_registration.errors }}
{# cafe #}
{{ form.cafe}} {{ form.cafe.errors }}
{# terminals #}
{{ form.terminals}} {{ form.terminals.errors }}
{# parking #}
{{ form.parking}} {{ form.parking.errors }}
{# press_centre #}
{{ form.press_centre}} {{ form.press_centre.errors }}
{# mobile_application #}
{{ form.mobile_application}} {{ form.mobile_application.errors }}

Файлы

{# button that shows modal window with file form #} Добавить файл {# this div shows list of files and refreshes when new file added #}
{% for file in files %} {% endfor %}
id Файл Имя Назначение
{{ file.id }} {{ file.file_name }} {{ file.purpose }}

Фотогалерея

Просмотреть галерею

{% with photos=object.photogallery.photos.all %} {% for photo in photos %}
{{ photo.title }}
{% endfor %} {% endwith %}

Мета даные

{# keywords #} {% with field='keywords' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %} {# title #} {% with field='title' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %} {# descriptions #} {% with field='descriptions' form=form languages=languages %} {% include 'c_admin/forms/multilang.html' %} {% endwith %}
{# modal window #} {% endblock %}