From de34d0e5fbc2a6c7a08f6f24c000667e360848f5 Mon Sep 17 00:00:00 2001 From: pavel Date: Tue, 24 Feb 2015 13:19:41 +0000 Subject: [PATCH] EXPO-110 ready --- .../client/exposition/exposition_price.html | 385 +++++++++--------- .../exposition/exposition_object.html | 43 +- .../client/includes/exposition/price.html | 128 +++--- templates/client/static_client/css/main.css | 22 +- .../client/static_client/css_min/main.min.css | 2 +- .../js/_modules/page.exposition.object.js | 38 +- .../_modules/page.exposition.object.min.js | 2 +- 7 files changed, 349 insertions(+), 271 deletions(-) diff --git a/templates/client/exposition/exposition_price.html b/templates/client/exposition/exposition_price.html index cd56c0a6..3944e886 100644 --- a/templates/client/exposition/exposition_price.html +++ b/templates/client/exposition/exposition_price.html @@ -6,215 +6,214 @@ {% block content_list %} - {% block content_text %} - {% block page_body %} -
-
- - -
-
-
- {% if object_list.0.main_title %} - {{ object_list.0.main_title|safe }} - {% else %} - {{ object_list.0.name|safe }} - {% endif %} -
-
- -
- {% with obj=object_list.0 %} - {% include 'client/includes/show_date_block.html' %} - {% endwith %} -
- {% if object_list.0.place %} -
-
-
- {{ object_list.0.place.address.address }} -
- -
- - -
- {% endif %} - - -
-
-
-
{% trans 'Стоимость посещения и участия' %}
-
- -
-
- -
-
{% trans 'Для посещения' %}
- -
{% trans 'Стоимость билетов' %}
- -
- -
    - {% if object_list.0.price_day %} -
  • -
    {{ object_list.0.price_day }} €
    -
    {% trans 'на 1 день' %}
    -
  • - {% endif %} - {% if object_list.0.price_all %} -
  • -
    {{ object_list.0.price_all }} €
    -
    {% trans 'на все дни' %}
    -
  • - {% endif %} - -
- -
{% trans 'Предварительная регистрация' %}
- -
- -
- -
    - {% if object_list.0.price_day_bar %} -
  • -
    {{ object_list.0.price_day_bar }} €
    - -
    на 1 день
    -
  • - {% endif %} - {% if object_list.0.price_all_bar %} -
  • -
    {{ object_list.0.price_all_bar }} €
    -
    {% trans 'на все дни' %}
    -
  • - {% endif %} - -
- -
{% trans 'Регистрация на' %} {% trans 'стойке' %}
- -
- -
- -
-
{% trans 'Выставка открыта для' %}:
-
    - {{ object_list.0.get_audience }} - -
-
-
+{% block content_text %} +{% block page_body %} +
+
+
+
+ {% if object_list.0.discount %} + {% trans 'Скидка' %} -{{ object_list.0.discount }}% + +
{{ object_list.0.discount_description|safe }}
+ {% endif %} +
+ + +
+
+
+ {% if object_list.0.main_title %} + {{ object_list.0.main_title|safe }} + {% else %} + {{ object_list.0.name|safe }} + {% endif %} +
+
+ +
+ {% with obj=object_list.0 %} + {% include 'client/includes/show_date_block.html' %} + {% endwith %} +
+ {% if object_list.0.place %} +
+
+
+ {{ object_list.0.place.address.address }} +
+ +
+ + +
+ {% endif %} + + +
+
+
+
{% trans 'Стоимость посещения и участия' %}
+
+ +
+
+ +
+
{% trans 'Для посещения' %}
-
-
{% trans 'Для участия' %}
+
{% trans 'Стоимость билетов' %}
-
{% trans 'Стоимость аренды 1м²' %}
+
    - {% if object_list.0.max_closed_equipped_area %} -
  • - -
    {{ object_list.0.max_closed_equipped_area }} €
    -
    {% trans 'оборудованная площадь' %}
    -
  • - {% endif %} - - {% if object_list.0.max_closed_area %} -
  • -
    {{ object_list.0.max_closed_area }} €
    -
    {% trans 'необорудованная площадь' %}
    -
  • - {% endif %} - - {% if object_list.0.max_open_area %} -
  • -
    {{ object_list.0.max_open_area }} €
    -
    {% trans 'открытая площадь' %}
    -
  • - {% endif %} + {% if object_list.0.price_day %} +
  • +
    {{ object_list.0.price_day }} €
    +
    {% trans 'на 1 день' %}
    +
  • + {% endif %} + {% if object_list.0.price_all %} +
  • +
    {{ object_list.0.price_all }} €
    +
    {% trans 'на все дни' %}
    +
  • + {% endif %}
- {% trans 'Заявка на участие' %} +
{% trans 'Предварительная регистрация' %}
-
- {% if object_list.0.min_stand_size %} -

{% trans 'Минимальный размер стенда' %} — {{ object_list.0.min_stand_size }}м²

- {% endif %} - {% if object_list.0.registration_payment %} -

{% trans 'Регистрационный взнос' %} — {{ object_list.0.registration_payment }}€

- {% endif %} - {% if object_list.0.application_deadline %} -

{% trans 'Крайний срок подачи заявки' %} — {{ object_list.0.application_deadline }}

- {% endif %} +
+ +
+ +
    + {% if object_list.0.price_day_bar %} +
  • +
    {{ object_list.0.price_day_bar }} €
    + +
    на 1 день
    +
  • + {% endif %} + {% if object_list.0.price_all_bar %} +
  • +
    {{ object_list.0.price_all_bar }} €
    +
    {% trans 'на все дни' %}
    +
  • + {% endif %} + +
+ +
{% trans 'Регистрация на' %} {% trans 'стойке' %}
-
+
+
+ +
+
{% trans 'Выставка открыта для' %}:
+
    + {{ object_list.0.get_audience }} + +
+
+
-
+
+
{% trans 'Для участия' %}
+ +
{% trans 'Стоимость аренды 1м²' %}
+ +
    + {% if object_list.0.max_closed_equipped_area %} +
  • + +
    {{ object_list.0.max_closed_equipped_area }} €
    +
    {% trans 'оборудованная площадь' %}
    +
  • + {% endif %} + + {% if object_list.0.max_closed_area %} +
  • +
    {{ object_list.0.max_closed_area }} €
    +
    {% trans 'необорудованная площадь' %}
    +
  • + {% endif %} + + {% if object_list.0.max_open_area %} +
  • +
    {{ object_list.0.max_open_area }} €
    +
    {% trans 'открытая площадь' %}
    +
  • + {% endif %} + +
+ + {% trans 'Заявка на участие' %} + +
+ {% if object_list.0.min_stand_size %} +

{% trans 'Минимальный размер стенда' %} — {{ object_list.0.min_stand_size }}м²

+ {% endif %} + {% if object_list.0.registration_payment %} +

{% trans 'Регистрационный взнос' %} — {{ object_list.0.registration_payment }}€

+ {% endif %} + {% if object_list.0.application_deadline %} +

{% trans 'Крайний срок подачи заявки' %} — {{ object_list.0.application_deadline }}

+ {% endif %} + +
+ +
+
-
-
-
-
- -
- {% endblock %} - {% endblock %} +
+ + +
+ +
+{% endblock %} +{% endblock %} {% endblock %} diff --git a/templates/client/includes/exposition/exposition_object.html b/templates/client/includes/exposition/exposition_object.html index 6a58b005..9f96cde1 100644 --- a/templates/client/includes/exposition/exposition_object.html +++ b/templates/client/includes/exposition/exposition_object.html @@ -168,14 +168,16 @@ {% endif %}
-
{% trans 'Организатор' %}:
-
- {% with organisers=exposition.organiser.all %} - {% for organiser in organisers %} - {{ organiser.name }}
- {% endfor %} - {% endwith %} -
+ {% if exposition.organiser.all|length > 0 %} +
{% trans 'Организатор' %}:
+
+ {% with organisers=exposition.organiser.all %} + {% for organiser in organisers %} + {{ organiser.name }}
+ {% endfor %} + {% endwith %} +
+ {% endif %} {% if exposition.web_page %}
{% trans 'Веб-сайт' %}:
@@ -256,22 +258,21 @@ {% if visitors %} {# есть посетители #} {% for user in visitors %} -
  • {{ user.get_full_name }}{% if user.company %}({{ user.company.name }}){% endif %}
  • + {% if user == request.user %} +
  • {{ user.get_full_name }} {% if user.company %}({{ user.company.name }}){% endif %}
  • + {% else %} +
  • {{ user.get_full_name }} {% if user.company %}({{ user.company.name }}){% endif %}
  • + {% endif %} {% endfor %} {% endif %} - - {% if visitors %} - {% trans 'Все посетители' %} - {% endif %} + + {% trans 'Все посетители' %} {% endwith %} +

    {% trans 'Пока никто не отметился на событии.' %}

    - - {% with event=exposition user=user %} {% include 'client/includes/visit_button.html' %} {% endwith %} @@ -388,6 +389,14 @@