{% extends 'base.html' %} {% load static %} {% block styles %} .hover{ display:none; margin-bottom:10px; } .photo:hover .hover { display: block; } {% endblock %} {% block scripts %} {# google map не забыть скачать скрипты на локал #} {# selects #} {# ajax #} {% endblock %} {% block body %}
{% csrf_token %}
{% if object %} Изменить {% else %} Добавить {% endif %}выставочный центр{% if object %}(на сайте){% endif %}

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

{# name #} {% with field='name' form=form languages=languages %} {% include 'admin/forms/multilang.html' %} {% endwith %} {# type #}
{{ form.type}} {{ form.type.errors }}
{# main_title #} {% with field='main_title' form=form languages=languages %} {% include 'admin/forms/multilang.html' %} {% endwith %} {# country #}
{{ form.country }} {{ form.country.errors }}
{# city #}
{{ form.city }} {{ form.city.errors }}
{# city #}
{{ form.logo }} {{ form.logo.errors }}

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

{# description #} {% with field='description' form=form languages=languages %} {% include 'admin/forms/multilang.html' %} {% endwith %} {# adress #} {% with field='adress' form=form languages=languages %} {% include '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 }}

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

{# foundation_year #}
{{ form.foundation_year}} {{ form.foundation_year.errors }}
{# total_year_action #} {% with field='total_year_action' form=form languages=languages %} {% include '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 object %} Добавить зал {% for hall in halls %} {% endfor %}
Название павильона Номер Вместимость
{{ hall.name }} {{ hall.number }} {{ hall.capacity }} Удалить Изменить
{% else %}

Павилионы можна добавлять только после введения основных даных

{% endif %}

Услуги

{# 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 }}

Файлы

{% if object %} {# button that shows modal window with file form #} Добавить файл {% else %}

Файлы можна добавлять только после введения основных даных

{% endif %} {# this div shows list of files and refreshes when new file added #}
{% include 'file_list.html' with files=files %}
id Файл Имя Назначение
{% include 'admin/includes/photogallery.html' with object=object %}

Мета данные

{# keywords #} {% with field='keywords' form=form languages=languages %} {% include 'admin/forms/multilang.html' %} {% endwith %} {# title #} {% with field='title' form=form languages=languages %} {% include 'admin/forms/multilang.html' %} {% endwith %} {# descriptions #} {% with field='descriptions' form=form languages=languages %} {% include 'admin/forms/multilang.html' %} {% endwith %}
{% include 'admin/includes/hall_form.html' with form=hall_form object=object %} {% include 'admin/includes/photo_form.html' with form=photo_form object=object %} {% include 'admin/includes/file_form.html' with file_form=file_form object=object %} {% endblock %}