EXPO-25 includes/exposition/exposition_object.html

remotes/origin/1203
pavel 11 years ago
parent 8da5a242d1
commit af66466270
  1. 58
      templates/client/includes/exposition/exposition_object.html

@ -2,7 +2,6 @@
{% load i18n %} {% load i18n %}
{% load thumbnail %} {% load thumbnail %}
{% load template_filters %} {% load template_filters %}
{% block page_body %} {% block page_body %}
<div class="m-article event-page"> <div class="m-article event-page">
<div class="item-wrap event clearfix"> <div class="item-wrap event clearfix">
@ -15,9 +14,6 @@
{% include 'client/includes/show_logo.html' %} {% include 'client/includes/show_logo.html' %}
{% endwith %} {% endwith %}
</div> </div>
<!--
<div class="i-rating" title="Рейтинг: 551">551</div>
-->
<div class="i-stats"> <div class="i-stats">
{% if exposition.visitors %} {% if exposition.visitors %}
<span class="visitors" title="Посетители">{{ exposition.visitors }}</span> <span class="visitors" title="Посетители">{{ exposition.visitors }}</span>
@ -26,7 +22,6 @@
<span class="participants" title="Участники">{{ exposition.members }}</span> <span class="participants" title="Участники">{{ exposition.members }}</span>
{% endif %} {% endif %}
</div> </div>
<div class="i-discount"> <div class="i-discount">
{% if exposition.discount %} {% if exposition.discount %}
<a class="discount-button" href="#">{% trans 'Скидка' %} -{{ exposition.discount }}%</a> <a class="discount-button" href="#">{% trans 'Скидка' %} -{{ exposition.discount }}%</a>
@ -34,7 +29,6 @@
{% endif %} {% endif %}
</div> </div>
</aside> </aside>
<div class="i-info"> <div class="i-info">
<header> <header>
<div class="i-title"> <div class="i-title">
@ -45,7 +39,6 @@
{% endif %} {% endif %}
</div> </div>
</header> </header>
<div class="i-date"> <div class="i-date">
{% with obj=exposition %} {% with obj=exposition %}
{% include 'client/includes/show_date_block.html' %} {% include 'client/includes/show_date_block.html' %}
@ -84,15 +77,11 @@
</div> </div>
{% endwith %} {% endwith %}
</div> </div>
{% if request.user.is_admin %} {% if request.user.is_admin %}
<a class="button green " href="/admin/exposition/{{ object.url }}/">{% trans 'изменить' %}</a> <a class="button green " href="/admin/exposition/{{ object.url }}/">{% trans 'изменить' %}</a>
{% endif %} {% endif %}
</div> </div>
<div class="ib-add"><a class="button blue2 icon-find" href="http://www.booking.com/searchresults.html?aid={{ book_aid }}&city={{ object.city.id }}">{% trans 'Найти отель' %}</a></div> <div class="ib-add"><a class="button blue2 icon-find" href="http://www.booking.com/searchresults.html?aid={{ book_aid }}&city={{ object.city.id }}">{% trans 'Найти отель' %}</a></div>
</div> </div>
<hr /> <hr />
<div class="i-divs clearfix"> <div class="i-divs clearfix">
@ -103,29 +92,23 @@
<li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.expositions_number }})</a></li> <li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.expositions_number }})</a></li>
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}
</ul> </ul>
</div> </div>
<div class="i-tags"> <div class="i-tags">
{% with tags=exposition.tag.all %} {% with tags=exposition.tag.all %}
{% for tag in tags %} {% for tag in tags %}
<a href="{{ object.catalog }}tag/{{ tag.url }}/">{{ tag.name }}</a>{% if forloop.counter != tags|length %},{% endif %} <a href="{{ object.catalog }}tag/{{ tag.url }}/">{{ tag.name }}</a>{% if forloop.counter != tags|length %},{% endif %}
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{% include 'client/includes/exposition/exposition_services.html' %} {% include 'client/includes/exposition/exposition_services.html' %}
{% include 'includes/event_steps.html' with event=exposition %} {% include 'includes/event_steps.html' with event=exposition %}
{% if exposition.get_photos %} {% if exposition.get_photos %}
{% with photos=exposition.get_photos|slice:"5" %} {% with photos=exposition.get_photos|slice:"5" %}
<hr /> <hr />
<div class="i-photo-slides"> <div class="i-photo-slides">
<div class="sect-title"><a href="#">{% trans 'Фотографии с прошлой выставки' %}</a></div> <div class="sect-title"><a href="#">{% trans 'Фотографии с прошлой выставки' %}</a></div>
<div id="ps-photo-gallery" class="ps-photo-gallery swiper-container"> <div id="ps-photo-gallery" class="ps-photo-gallery swiper-container">
@ -146,7 +129,6 @@
{% endif %} {% endif %}
{% if exposition.description %} {% if exposition.description %}
<div class="i-event-description"> <div class="i-event-description">
<div class="ied-title">{% trans 'О выставке' %} {{ exposition.name|safe }}</div> <div class="ied-title">{% trans 'О выставке' %} {{ exposition.name|safe }}</div>
<div class="ied-text">{{ exposition.description|safe|linebreaks }}</div> <div class="ied-text">{{ exposition.description|safe|linebreaks }}</div>
</div> </div>
@ -155,7 +137,6 @@
<div class="i-event-additional clearfix"> <div class="i-event-additional clearfix">
<div class="sect-title">{% trans 'Дополнительная информация' %}</div> <div class="sect-title">{% trans 'Дополнительная информация' %}</div>
<ul class="e-docs"> <ul class="e-docs">
{% if exposition.business_program.exists %} {% if exposition.business_program.exists %}
<li><a href="{{ exposition.get_permanent_url }}program/">{% trans 'Деловая программа' %}</a></li> <li><a href="{{ exposition.get_permanent_url }}program/">{% trans 'Деловая программа' %}</a></li>
{% endif %} {% endif %}
@ -182,31 +163,25 @@
<a target="_blank" href="#" data-type="href" data-hash="1qwer" data-url="{{ exposition.web_page|base64_encode }}" class="link-encode">{{ exposition.web_page }}</a> <a target="_blank" href="#" data-type="href" data-hash="1qwer" data-url="{{ exposition.web_page|base64_encode }}" class="link-encode">{{ exposition.web_page }}</a>
</dd> </dd>
{% endif %} {% endif %}
{% if exposition.get_audience %} {% if exposition.get_audience %}
<dt>{% trans 'Аудитория' %}:</dt> <dt>{% trans 'Аудитория' %}:</dt>
<dd> <dd>
{{ exposition.get_audience }} {{ exposition.get_audience }}
</dd> </dd>
{% endif %} {% endif %}
{% if exposition.get_periodic %} {% if exposition.get_periodic %}
<dt>{% trans 'Периодичность' %}:</dt> <dt>{% trans 'Периодичность' %}:</dt>
<dd>{{ exposition.get_periodic }}</dd> <dd>{{ exposition.get_periodic }}</dd>
{% endif %} {% endif %}
{% if exposition.products %} {% if exposition.products %}
<dt>{% trans 'Экспонируемые продукты' %}:</dt> <dt>{% trans 'Экспонируемые продукты' %}:</dt>
<dd>{{ exposition.products|safe }}</dd> <dd>{{ exposition.products|safe }}</dd>
{% endif %} {% endif %}
{% if exposition.time %} {% if exposition.time %}
<dt>{% trans 'Время работы' %}:</dt> <dt>{% trans 'Время работы' %}:</dt>
<dd>{{ exposition.time|safe }}</dd> <dd>{{ exposition.time|safe }}</dd>
{% endif %} {% endif %}
</dl> </dl>
</div> </div>
<hr /> <hr />
<div class="i-members clearfix"> <div class="i-members clearfix">
@ -221,7 +196,6 @@
</header> </header>
<ul> <ul>
{% for company in companies %} {% for company in companies %}
<li> <li>
<a href="{{ company.get_permanent_url }}"> <a href="{{ company.get_permanent_url }}">
<span class="imp-pict"> <span class="imp-pict">
@ -240,13 +214,11 @@
<header> <header>
<div class="im-title">{% trans 'Участники' %}</div> <div class="im-title">{% trans 'Участники' %}</div>
<p>{% trans 'Привлекайте целевых посетителей на стенд' %}</p> <p>{% trans 'Привлекайте целевых посетителей на стенд' %}</p>
<!--//todo: обработчик-->
<p><a href="#pw-advertise" class="button icon-up pw-open" >Рекламировать участника</a></p> <p><a href="#pw-advertise" class="button icon-up pw-open" >Рекламировать участника</a></p>
</header> </header>
{% endif %} {% endif %}
{% endwith %} {% endwith %}
</div> </div>
<div class="im-visitors"> <div class="im-visitors">
{% with visitors=exposition.users.all|slice:":17" %} {% with visitors=exposition.users.all|slice:":17" %}
<header> <header>
@ -263,21 +235,15 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul> </ul>
<a id="somebody" class=" more mb-1em {% if visitors|length > 0 %}{%else%}hidden{% endif %}" href="{{ exposition.get_permanent_url }}visitors/">{% trans 'Все посетители' %}</a> <a id="somebody" class=" more mb-1em {% if visitors|length > 0 %}{%else%}hidden{% endif %}" href="{{ exposition.get_permanent_url }}visitors/">{% trans 'Все посетители' %}</a>
{% endwith %} {% endwith %}
<p id="nobody" class=" mb-1em {% if exposition.users.all|length > 0 %}hidden{% else %}{% endif %}">{% trans 'Пока никто не отметился на событии.' %}</p> <p id="nobody" class=" mb-1em {% if exposition.users.all|length > 0 %}hidden{% else %}{% endif %}">{% trans 'Пока никто не отметился на событии.' %}</p>
{% with event=exposition user=user %} {% with event=exposition user=user %}
{% include 'client/includes/visit_button.html' %} {% include 'client/includes/visit_button.html' %}
{% endwith %} {% endwith %}
</div> </div>
</div> </div>
<hr/> <hr/>
{% if exposition.area %} {% if exposition.area %}
{% else %} {% else %}
@ -287,20 +253,15 @@
{% endif %} {% endif %}
{% if exposition.members or exposition.visitors or exposition.foundation_year or exposition.area %} {% if exposition.members or exposition.visitors or exposition.foundation_year or exposition.area %}
<div class="e-num-info"> <div class="e-num-info">
{% if exposition.area %} {% if exposition.area %}
<div class="eni-area-wrap"> <div class="eni-area-wrap">
<div class="eni-title">{% trans 'Общая выставочная площадь' %}</div> <div class="eni-title">{% trans 'Общая выставочная площадь' %}</div>
<div class="eni-area"> <div class="eni-area">
{{ exposition.area }} {% trans 'м²' %} {{ exposition.area }} {% trans 'м²' %}
</div> </div>
</div> </div>
{% endif %} {% endif %}
<div class="eni-stats"> <div class="eni-stats">
{% if exposition.members %} {% if exposition.members %}
<div class="enis-item"><b>{{ exposition.members }}</b> {% trans 'участников' %}</div> <div class="enis-item"><b>{{ exposition.members }}</b> {% trans 'участников' %}</div>
{% endif %} {% endif %}
@ -313,13 +274,8 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% include 'client/includes/booking_block.html' with city=exposition.city place=exposition.place %} {% include 'client/includes/booking_block.html' with city=exposition.city place=exposition.place %}
<hr /> <hr />
{% if exposition.get_nearest_events|slice:":6" %} {% if exposition.get_nearest_events|slice:":6" %}
<div class="e-cat"> <div class="e-cat">
@ -333,7 +289,6 @@
{% with obj=exp %} {% with obj=exp %}
{% include 'client/includes/show_logo.html' %} {% include 'client/includes/show_logo.html' %}
{% endwith %} {% endwith %}
</div> </div>
</a> </a>
<div class="cli-info"> <div class="cli-info">
@ -346,11 +301,9 @@
<header> <header>
<div class="cli-title"><a href="{{ exp.get_permanent_url }}">{{ exp.name|safe }}</a></div> <div class="cli-title"><a href="{{ exp.get_permanent_url }}">{{ exp.name|safe }}</a></div>
</header> </header>
<div class="cli-descr"> <div class="cli-descr">
{{ exp.main_title|safe|linebreaks }} {{ exp.main_title|safe|linebreaks }}
</div> </div>
<div class="cli-bot clearfix"> <div class="cli-bot clearfix">
<div class="cli-date"> <div class="cli-date">
{% with obj=exp %} {% with obj=exp %}
@ -372,9 +325,6 @@
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
<!--
<div class="abn"><a href="#"><img src="{% static 'client/img/_del-temp/banner-2.gif' %}" alt="" /></a></div>
-->
<div class="e-cat look-also"> <div class="e-cat look-also">
<div class="sect-title">{% trans 'Смотрите также:' %}</div> <div class="sect-title">{% trans 'Смотрите также:' %}</div>
<a href="{{ exposition.catalog }}city/{{ exposition.city.url }}/">{% trans "Выставки" %} {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a> <a href="{{ exposition.catalog }}city/{{ exposition.city.url }}/">{% trans "Выставки" %} {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a>
@ -382,18 +332,18 @@
<a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/country/{{ exposition.country.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.country.inflect %}{{ exposition.country.inflect }}{% else %}{% trans 'in' %} {{ exposition.country.name }}{% endif %}</a> <a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/country/{{ exposition.country.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.country.inflect %}{{ exposition.country.inflect }}{% else %}{% trans 'in' %} {{ exposition.country.name }}{% endif %}</a>
<a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/city/{{ exposition.city.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a> <a href="{{ exposition.catalog }}theme/{{ exposition.theme.all.0.url }}/city/{{ exposition.city.url }}/">{% trans "Выставки по тематике " %}&laquo;{{ exposition.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and exposition.city.inflect %}{{ exposition.city.inflect }}{% else %}{% trans 'in' %} {{ exposition.city.name }}{% endif %}</a>
</div> </div>
{% endblock %} {% endblock %}
{% block content_text %} {% block content_text %}
{% endblock %} {% endblock %}
{% block popup %} {% block popup %}
{% include 'client/popups/advertise_member.html' with form=advertising_form %} {% include 'client/popups/advertise_member.html' with form=advertising_form %}
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<!-- todo: вернуть .min--> {% if request.GET.debug == '1' %}
<!--<script src="{% static 'client/js' %}{% if debug %}/{% else %}_min/{% endif %}_modules/page.exposition.object{% if debug %}{% else %}.min{% endif %}.js"></script>-->
<script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script> <script src="{% static 'client/js/_modules/page.exposition.object.js' %}"></script>
{% else %}
<script src="{% static 'client/js_min/_modules/page.exposition.object.min.js' %}"></script>
{% endif %}
<script> <script>
EXPO.exposition.object.init({ EXPO.exposition.object.init({
visit:{ visit:{

Loading…
Cancel
Save