remotes/origin/1203
Назар Котюк 11 years ago
commit 26ce593e5b
  1. 221
      templates/client/includes/conference/conference_list.html
  2. 642
      templates/client/includes/conference/conference_object.html

@ -1,129 +1,114 @@
{% load static %} {% load static %}
{% load i18n %} {% load i18n %}
{% load template_filters %} {% load template_filters %}
<ul class="cat-list cl-exhibitions"> <ul class="cat-list cl-exhibitions">
{% with objects=object_list %} {% with objects=object_list %}
{% for obj in objects %} {% for obj in objects %}
<li class="cl-item {% if obj.canceled %}canceled{% endif %}"> <li class="cl-item {% if obj.canceled %}canceled{% endif %}">
<div class="cl-item-wrap clearfix"> <div class="cl-item-wrap clearfix">
<a href="{{ obj.get_permanent_url }}">
<a href="{{ obj.get_permanent_url }}"> {% if obj.canceled %}
{% if obj.canceled %} <div class="cancel"></div>
<div class="cancel"></div> {% else %}
{% else %} {% if obj.expohit %}
{% if obj.expohit %} <div class="hit"></div>
<div class="hit"></div> {% endif %}
{% endif %} {% endif %}
{% endif %}
<div class="cli-pict"> <div class="cli-pict">
{% with obj=obj %} {% with obj=obj %}
{% 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-top clearfix">
<div class="cli-info"> {% if obj.quality_label.ufi.is_set %}
<div class="cli-top clearfix"> <div class="cli-approved">
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" />
</div>
{% if obj.quality_label.ufi.is_set %} {% endif %}
<div class="cli-approved"> <header>
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" /> <div class="cli-title"><a href="{{ obj.get_permanent_url }}">{{ obj.name|safe }}</a></div>
</div> </header>
{% endif %} <div class="cli-descr">
{{ obj.main_title|safe }}
</div>
<header> </div>
<div class="cli-title"><a href="{{ obj.get_permanent_url }}">{{ obj.name|safe }}</a></div> <div class="cli-bot clearfix">
</header> <div class="cli-date">
<div class="cli-descr"> {% with obj=obj %}
{{ obj.main_title|safe }} {% include 'client/includes/show_date_block.html' %}
</div> {% endwith %}
</div> </div>
{% if obj.country %}
<div class="cli-bot clearfix"> <div class="cli-place">
<a href="{{ obj.catalog }}country/{{ obj.country.url }}/">{{ obj.country }}</a>, <a href="{{ obj.catalog }}city/{{ obj.city.url }}/">{{ obj.city }}</a>
<div class="cli-date"> {% if obj.place %}
{% with obj=obj %} , <a href="/places/{{ obj.place.url }}/">{{ obj.place }}</a>
{% include 'client/includes/show_date_block.html' %} {% endif %}
{% endwith %} </div>
</div> {% endif %}
</div>
{% if obj.country %} </div>
<div class="cli-place"> <div class="cli-buttons clearfix">
<a href="{{ obj.catalog }}country/{{ obj.country.url }}/">{{ obj.country }}</a>, <a href="{{ obj.catalog }}city/{{ obj.city.url }}/">{{ obj.city }}</a> <div class="cli-m-buttons">
{% include 'client/includes/exposition/services.html' with obj=obj %}
{% if obj.place %} {% include 'client/includes/calendar_button.html' with obj=obj%}
, <a href="/places/{{ obj.place.url }}/">{{ obj.place }}</a> <div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}">
{% endif %} {% with note=obj|note_by_user:request.user %}
</div> <a class="button green icon-note {% if note %}active{% endif %} note-button" href="/conference/add-note/{{ obj.url }}/">{% trans 'заметка' %}</a>
{% endif %} <div class="note-overlay">
</div> <form action="">
</div> <textarea name="note_text" class="note-text"> {{ note }}</textarea>
</form>
</div>
<div class="cli-buttons clearfix"> {% endwith %}
<div class="cli-m-buttons"> </div>
{% include 'client/includes/exposition/services.html' with obj=obj %} {% if request.user.is_admin %}
<div class="note-wrap">
{% include 'client/includes/calendar_button.html' with obj=obj%} <a class="button green " href="/admin/conference/{{ obj.url }}/">{% trans 'изменить' %}</a>
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> </div>
{% with note=obj|note_by_user:request.user %} {% endif %}
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/conference/add-note/{{ obj.url }}/">{% trans 'заметка' %}</a> <div></div>
<div class="note-overlay"> </div>
<form action=""> <div class="cli-s-buttons">
<textarea name="note_text" class="note-text"> {{ note }}</textarea> {% include 'client/buttons/booking_button.html' with object=obj %}
</form> </div>
</div> </div>
{% endwith %} </div>
</div> <footer class="clearfix">
{% if request.user.is_admin %} <div class="cli-stats">
<div class="note-wrap"> {% if obj.visitors %}
<a class="button green " href="/admin/conference/{{ obj.url }}/">{% trans 'изменить' %}</a> <span class="visitors" title="Посетители">{{ obj.visitors }}</span>
</div> {% endif %}
{% endif %} {% if obj.members %}
<div></div> <span class="participants" title="Участники">{{ obj.members }}</span>
{% endif %}
</div> </div>
<div class="cli-tags">
<div class="cli-s-buttons"> {% include 'client/includes/exposition/tags.html' with obj=obj %}
{% include 'client/buttons/booking_button.html' with object=obj %} </div>
</div> </footer>
</div> </li>
</div> {% endfor %}
{% endwith %}
<footer class="clearfix">
<div class="cli-stats">
{% if obj.visitors %}
<span class="visitors" title="Посетители">{{ obj.visitors }}</span>
{% endif %}
{% if obj.members %}
<span class="participants" title="Участники">{{ obj.members }}</span>
{% endif %}
</div>
<div class="cli-tags">
{% include 'client/includes/exposition/tags.html' with obj=obj %}
</div>
</footer>
</li>
{% endfor %}
{% endwith %}
</ul> </ul>
{% block scripts %} {% block scripts %}
<script src="{% static 'client/js' %}{% if debug %}/{% else %}_min/{% endif %}_modules/block.exposition.list{% if debug %}{% else %}.min{% endif %}.js"></script> {% if request.GET.debug == '1' %}
<script src="{% static 'client/js/_modules/block.exposition.list.js' %}"></script>
{% else %}
<script src="{% static 'client/js_min/_modules/block.exposition.list.min.js' %}"></script>
{% endif %}
<script> <script>
EXPO.exposition.list.init({ EXPO.exposition.list.init({
note:{ note:{
wrapClass:'note-wrap', wrapClass:'note-wrap',
wrapDisabledClass:'note-wrap-disabled', wrapDisabledClass:'note-wrap-disabled',
buttonClass:'note-button', buttonClass:'note-button',
inputClass:'note-text' inputClass:'note-text'
}, },
addCalendarText:"{% trans 'В расписание' %}", addCalendarText:"{% trans 'В расписание' %}",
removeCalendarText:"{% trans 'Из расписания' %}" removeCalendarText:"{% trans 'Из расписания' %}"
}); });
</script> </script>
{% endblock %} {% endblock %}

@ -2,281 +2,244 @@
{% 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">
<aside> <aside>
{% if event.expohit %} {% if event.expohit %}
<div class="hit"></div> <div class="hit"></div>
{% endif %} {% endif %}
<div class="i-pict"> <div class="i-pict">
{% with obj=event %} {% with obj=event %}
{% include 'client/includes/show_logo.html' %} {% include 'client/includes/show_logo.html' %}
{% endwith %} {% endwith %}
</div> </div>
<!-- <div class="i-stats">
<div class="i-rating" title="Рейтинг: 551">551</div> {% if event.visitors %}
--> <span class="visitors" title="Посетители">{{ event.visitors }}</span>
<div class="i-stats"> {% endif %}
{% if event.visitors %} {% if event.members %}
<span class="visitors" title="Посетители">{{ event.visitors }}</span> <span class="participants" title="Участники">{{ event.members }}</span>
{% endif %} {% endif %}
{% if event.members %} </div>
<span class="participants" title="Участники">{{ event.members }}</span> <div class="i-discount">
{% endif %} {% if event.discount %}
</div> <a class="discount-button" href="#">{% trans 'Скидка' %} -{{ event.discount }}%</a>
<div class="dsc-text">{{ event.discount_description|safe|linebreaks }}</div>
<div class="i-discount"> {% endif %}
{% if event.discount %} </div>
<a class="discount-button" href="#">{% trans 'Скидка' %} -{{ event.discount }}%</a> </aside>
<div class="dsc-text">{{ event.discount_description|safe|linebreaks }}</div> <div class="i-info">
{% endif %} <header>
</div> <div class="i-title">
</aside> {% if event.main_title %}
{{ event.main_title|safe }} {{ event.name|safe }}
<div class="i-info"> {% else %}
<header> {{ event.name|safe }}
<div class="i-title"> {% endif %}
{% if event.main_title %} </div>
{{ event.main_title|safe }} {{ event.name|safe }} </header>
{% else %} <div class="i-date">
{{ event.name|safe }} {% with obj=event %}
{% endif %} {% include 'client/includes/show_date_block.html' %}
</div> {% endwith %}
</header> </div>
{% if event.place %}
<div class="i-date"> <div class="i-address">
{% with obj=event %} <header>
{% include 'client/includes/show_date_block.html' %} <div class="address">
{% endwith %} {{ event.place.adress }}
</div> </div>
{% if event.place %} <div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div>
<div class="i-address"> </header>
<header> <div class="i-map">
<div class="address"> <div class="close-map"><a class="toggle-map" href="#">{% trans 'Скрыть карту' %}</a>
{{ event.place.adress }} </div>
</div> <div class="map-canvas" id="map-canvas" data-coords="{{ event.place.address.lat|stringformat:'f' }},{{ event.place.address.lng|stringformat:'f' }}" ></div>
<div class="show-map"><a class="toggle-map" href="#">{% trans 'Раскрыть карту' %}</a></div> </div>
</header> </div>
{% endif %}
<div class="i-map"> <hr />
<div class="close-map"><a class="toggle-map" href="#">{% trans 'Скрыть карту' %}</a> <div class="i-buttons clearfix">
</div> <div class="ib-main">
<div class="map-canvas" id="map-canvas" data-coords="{{ event.place.address.lat|stringformat:'f' }},{{ event.place.address.lng|stringformat:'f' }}" ></div> {% with event=event user=user %}
</div> {% include 'client/includes/visit_button.html' %}
</div> {% endwith %}
{% endif %} {% include 'client/includes/calendar_button.html' with obj=object %}
<hr /> <div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}">
<div class="i-buttons clearfix"> {% with note=object|note_by_user:request.user %}
<div class="ib-main"> <a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ obj.url }}/">{% trans 'заметка' %}</a>
{% with event=event user=user %} <div class="note-overlay">
{% include 'client/includes/visit_button.html' %} <form action="">
{% endwith %} <textarea name="note_text" class="note-text"> {{ note }}</textarea>
{% include 'client/includes/calendar_button.html' with obj=object %} </form>
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> </div>
{% with note=object|note_by_user:request.user %} {% endwith %}
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ obj.url }}/">{% trans 'заметка' %}</a> </div>
<div class="note-overlay"> {% if request.user.is_admin %}
<form action=""> <a class="button green " href="/admin/conference/{{ object.url }}/">{% trans 'изменить' %}</a>
<textarea name="note_text" class="note-text"> {{ note }}</textarea> {% endif %}
</form> </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>
{% endwith %} </div>
</div> <hr />
<div class="i-divs clearfix">
{% if request.user.is_admin %} <div class="i-subj">
<a class="button green " href="/admin/conference/{{ object.url }}/">{% trans 'изменить' %}</a> <ul>
{% endif %} {% with themes=event.theme.all %}
{% for theme in themes %}
</div> <li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.conferences_number }})</a></li>
{% endfor %}
<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> {% endwith %}
</div> </ul>
<hr /> </div>
<div class="i-divs clearfix"> <div class="i-tags">
<div class="i-subj"> {% with tags=event.tag.all %}
<ul> {% for tag in tags %}
{% with themes=event.theme.all %} <a href="{{ object.catalog }}tag/{{ tag.url }}/">{{ tag.name }}</a>{% if forloop.counter != tags|length %},{% endif %}
{% for theme in themes %} {% endfor %}
<li><a href="{{ object.catalog }}theme/{{ theme.url }}/">{{ theme.name }} ({{ theme.conferences_number }})</a></li> {% endwith %}
{% endfor %} </div>
{% endwith %} </div>
</div>
</ul> </div>
</div> {% include 'client/includes/conference/conference_services.html' with event=event %}
{% include 'includes/event_steps.html' with event=event %}
<div class="i-tags"> {% if event.get_photos %}
{% with tags=event.tag.all %} {% with photos=event.get_photos|slice:"5" %}
{% for tag in tags %} <hr />
<a href="{{ object.catalog }}tag/{{ tag.url }}/">{{ tag.name }}</a>{% if forloop.counter != tags|length %},{% endif %} <div class="i-photo-slides">
{% endfor %} <div class="sect-title"><a href="#">{% trans 'Фотографии с прошлой конференции' %}</a></div>
{% endwith %} <div id="ps-photo-gallery" class="ps-photo-gallery swiper-container">
<ul class="swiper-wrapper">
</div> {% for photo in photos %}
</div> <li class="swiper-slide">
</div> <img src="{{ photo.get_display_url }}" alt="" />
</div> </li>
{% include 'client/includes/conference/conference_services.html' with event=event %} {% endfor %}
</ul>
{% include 'includes/event_steps.html' with event=event %} <div class="re-controls">
<a class="prev" href="#">&lt;</a>
{% if event.get_photos %}
{% with photos=event.get_photos|slice:"5" %}
<hr />
<div class="i-photo-slides">
<div class="sect-title"><a href="#">{% trans 'Фотографии с прошлой конференции' %}</a></div>
<div id="ps-photo-gallery" class="ps-photo-gallery swiper-container">
<ul class="swiper-wrapper">
{% for photo in photos %}
<li class="swiper-slide">
<img src="{{ photo.get_display_url }}" alt="" />
</li>
{% endfor %}
</ul>
<div class="re-controls">
<a class="prev" href="#">&lt;</a>
<a class="next" href="#">&gt;</a> <a class="next" href="#">&gt;</a>
</div> </div>
</div> </div>
</div> </div>
{% endwith %} {% endwith %}
{% endif %} {% endif %}
{% if event.description %} {% if event.description %}
<div class="i-event-description"> <div class="i-event-description">
<div class="ied-title">{% if event.event_type == 'expo' %}{% trans 'О выставке' %}{% else %}{% trans 'О конференции' %}{% endif %} {{ event.name|safe }}</div>
<div class="ied-title">{% if event.event_type == 'expo' %}{% trans 'О выставке' %}{% else %}{% trans 'О конференции' %}{% endif %} {{ event.name|safe }}</div> <div class="ied-text">{{ event.description|safe|linebreaks }}</div>
<div class="ied-text">{{ event.description|safe|linebreaks }}</div> </div>
</div> <hr />
<hr /> {% endif %}
{% endif %} <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 event.business_program.exists %}
<li><a href="{{ event.get_permanent_url }}program/">{% trans 'Деловая программа' %}</a></li>
{% if event.business_program.exists %} {% endif %}
<li><a href="{{ event.get_permanent_url }}program/">{% trans 'Деловая программа' %}</a></li>
{% endif %} </ul>
<dl class="add-info">
</ul> {% if event.organiser.all|length > 0 %}
<dl class="add-info"> <dt>{% trans 'Организатор' %}:</dt>
{% if event.organiser.all|length > 0 %} <dd>
<dt>{% trans 'Организатор' %}:</dt> {% with organisers=event.organiser.all %}
<dd> {% for organiser in organisers %}
{% with organisers=event.organiser.all %} {{ organiser.name }}<br />
{% for organiser in organisers %} {% endfor %}
{{ organiser.name }}<br /> {% endwith %}
{% endfor %} </dd>
{% endwith %} {% endif %}
</dd> {% if event.web_page %}
{% endif %} <dt>{% trans 'Веб-сайт' %}:</dt>
{% if event.web_page %} <dd>
<dt>{% trans 'Веб-сайт' %}:</dt> <a target="_blank" href="#" data-type="href" data-hash="1qwer" data-url="{{ event.web_page|base64_encode }}" class="link-encode">{{ event.web_page }}</a>
<dd> </dd>
<a target="_blank" href="#" data-type="href" data-hash="1qwer" data-url="{{ event.web_page|base64_encode }}" class="link-encode">{{ event.web_page }}</a> {% endif %}
</dd> {% if event.get_audience %}
{% endif %} <dt>{% trans 'Аудитория' %}:</dt>
<dd>
{% if event.get_audience %} {{ event.get_audience }}
<dt>{% trans 'Аудитория' %}:</dt> </dd>
<dd> {% endif %}
{{ event.get_audience }} {% if event.get_periodic %}
</dd> <dt>{% trans 'Периодичность' %}:</dt>
{% endif %} <dd>{{ event.get_periodic }}</dd>
{% endif %}
{% if event.get_periodic %} {% if event.time %}
<dt>{% trans 'Периодичность' %}:</dt> <dt>{% trans 'Время работы' %}:</dt>
<dd>{{ event.get_periodic }}</dd> <dd>{{ event.time|safe }}</dd>
{% endif %} {% endif %}
</dl>
</div>
{% if event.time %} <hr />
<dt>{% trans 'Время работы' %}:</dt> <div class="i-members clearfix">
<dd>{{ event.time|safe }}</dd> <div class="im-participants">
{% endif %} {% with companies=event.company.all|slice:":6" %}
{% if companies %}
</dl> {# есть участники #}
<header>
</div> <div class="im-title">{% trans 'Спикеры' %}</div>
<hr /> <a class="more" href="{{ event.get_permanent_url }}members/">{% trans 'Все спикеры' %}</a>
<div class="i-members clearfix"> </header>
<div class="im-participants"> <ul>
{% with companies=event.company.all|slice:":6" %} {% for company in companies %}
{% if companies %} <li>
{# есть участники #} <a href="{{ company.get_permanent_url }}">
<header> <span class="imp-pict">
<div class="im-title">{% trans 'Спикеры' %}</div>
{% with obj=company %}
<a class="more" href="{{ event.get_permanent_url }}members/">{% trans 'Все спикеры' %}</a> {% include 'includes/show_logo.html' %}
</header> {% endwith %}
<ul> </span>
{% for company in companies %} {{ company.name }}
</a>
<li> </li>
<a href="{{ company.get_permanent_url }}"> {% endfor %}
<span class="imp-pict"> </ul>
{% else %}
{% with obj=company %} {# нет участников #}
{% include 'includes/show_logo.html' %} <header>
{% endwith %} <div class="im-title">{% trans 'Спикеры' %}</div>
</span> <p>{% trans 'Привлекайте целевых посетителей на стенд' %}</p>
{{ company.name }} <p><a href="#pw-advertise" class="button icon-up pw-open" >{% trans 'Рекламировать спикера' %}</a></p>
</a> </header>
</li> {% endif %}
{% endfor %} {% endwith %}
</ul> </div>
{% else %}
{# нет участников #}
<header>
<div class="im-title">{% trans 'Спикеры' %}</div>
<p>{% trans 'Привлекайте целевых посетителей на стенд' %}</p>
<!--//todo: обработчик-->
<p><a href="#pw-advertise" class="button icon-up pw-open" >{% trans 'Рекламировать спикера' %}</a></p>
</header>
{% endif %}
{% endwith %}
</div>
<div class="im-visitors"> <div class="im-visitors">
{% with visitors=event.users.all|slice:":17" %} {% with visitors=event.users.all|slice:":17" %}
<header> <header>
<div class="im-title">{% trans 'Посетители' %}</div> <div class="im-title">{% trans 'Посетители' %}</div>
</header> </header>
<ul id="visitors-list"> <ul id="visitors-list">
{% if visitors %} {% if visitors %}
{# есть посетители #} {# есть посетители #}
{% for user in visitors %} {% for user in visitors %}
{% if user == request.user %} {% if user == request.user %}
<li class="current"><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li> <li class="current"><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li>
{% else %} {% else %}
<li><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li> <li><a href="{{ user.get_permanent_url }}">{{ user.get_full_name }}&nbsp;{% if user.company %}({{ user.company.name }}){% endif %}</a></li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul>
</ul>
<a id="somebody" class=" more mb-1em {% if visitors|length > 0 %}{%else%}hidden{% endif %}" href="{{ event.get_permanent_url }}visitors/">{% trans 'Все посетители' %}</a> <a id="somebody" class=" more mb-1em {% if visitors|length > 0 %}{%else%}hidden{% endif %}" href="{{ event.get_permanent_url }}visitors/">{% trans 'Все посетители' %}</a>
{% endwith %} {% endwith %}
<p id="nobody" class=" mb-1em {% if event.users.all|length > 0 %}hidden{% else %}{% endif %}">{% trans 'Пока никто не отметился на событии.' %}</p> <p id="nobody" class=" mb-1em {% if event.users.all|length > 0 %}hidden{% else %}{% endif %}">{% trans 'Пока никто не отметился на событии.' %}</p>
{% with event=event user=user %}
{% include 'client/includes/visit_button.html' %}
{% with event=event user=user %} {% endwith %}
{% include 'client/includes/visit_button.html' %} </div>
{% endwith %} </div>
</div> <hr/>
</div>
<hr/>
{% if event.members or event.visitors or event.foundation_year %} {% if event.members or event.visitors or event.foundation_year %}
<div class="e-num-info"> <div class="e-num-info">
<div class="eni-stats"> <div class="eni-stats">
{% if event.members %} {% if event.members %}
<div class="enis-item"><b>{{ event.members }}</b> {% trans 'участников' %}</div> <div class="enis-item"><b>{{ event.members }}</b> {% trans 'участников' %}</div>
{% endif %} {% endif %}
@ -289,89 +252,80 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% include 'client/includes/booking_block.html' with city=event.city place=event.place %}
{% include 'client/includes/booking_block.html' with city=event.city place=event.place %} <hr />
{% if event.get_nearest_events|slice:":6" %}
<hr /> <div class="e-cat">
{% if event.get_nearest_events|slice:":6" %} <div class="sect-title">{% trans 'Ближайшие выставки по тематике' %} <a href="{{ expo_catalog }}theme/{{ event.theme.all.0.url }}">«{{ event.theme.all.0 }}»</a></div>
<div class="e-cat"> <ul class="cat-list cl-exhibitions">
<div class="sect-title">{% trans 'Ближайшие выставки по тематике' %} <a href="{{ expo_catalog }}theme/{{ event.theme.all.0.url }}">«{{ event.theme.all.0 }}»</a></div> {% for exp in event.get_nearest_events %}
<ul class="cat-list cl-exhibitions"> <li class="cl-item">
{% for exp in event.get_nearest_events %} <div class="cl-item-wrap clearfix">
<li class="cl-item"> <a href="{{ exp.get_permanent_url }}">
<div class="cl-item-wrap clearfix"> <div class="cli-pict">
<a href="{{ exp.get_permanent_url }}"> {% with obj=exp %}
<div class="cli-pict"> {% include 'client/includes/show_logo.html' %}
{% with obj=exp %} {% endwith %}
{% include 'client/includes/show_logo.html' %} </div>
{% endwith %} </a>
<div class="cli-info">
</div> <div class="cli-top clearfix">
</a> {% if exp.approved %}
<div class="cli-info"> <div class="cli-approved">
<div class="cli-top clearfix"> <img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" />
{% if exp.approved %} </div>
<div class="cli-approved"> {% endif %}
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" /> <header>
</div> <div class="cli-title"><a href="{{ exp.get_permanent_url }}">{{ exp.name|safe }}</a></div>
{% endif %} </header>
<header>
<div class="cli-title"><a href="{{ exp.get_permanent_url }}">{{ exp.name|safe }}</a></div> <div class="cli-descr">
</header> {{ exp.main_title|safe|linebreaks }}
</div>
<div class="cli-descr">
{{ exp.main_title|safe|linebreaks }} <div class="cli-bot clearfix">
</div> <div class="cli-date">
{% with obj=exp %}
<div class="cli-bot clearfix"> {% include 'client/includes/show_date_block.html' %}
<div class="cli-date"> {% endwith %}
{% with obj=exp %} </div>
{% include 'client/includes/show_date_block.html' %} <div class="cli-place">
{% endwith %} <a href="{{ exp.country.get_permanent_url }}">{{ exp.country }}</a>, <a href="{{ exp.city.get_permanent_url }}">{{ exp.city }}</a>
</div> {% if exp.place %}
<div class="cli-place"> , <a href="{{ exp.place.get_permanent_url }}">{{ exp.place }}</a>
<a href="{{ exp.country.get_permanent_url }}">{{ exp.country }}</a>, <a href="{{ exp.city.get_permanent_url }}">{{ exp.city }}</a> {% endif %}
{% if exp.place %} </div>
, <a href="{{ exp.place.get_permanent_url }}">{{ exp.place }}</a> </div>
{% endif %} </div>
</div> </div>
</div> </div>
</div> </li>
</div> {% endfor %}
</div> </ul>
</li> </div>
{% endfor %} {% endif %}
</ul> <div class="e-cat look-also">
</div> <div class="sect-title">{% trans 'Смотрите также:' %}</div>
{% endif %} <a href="{{ event.catalog }}city/{{ event.city.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
<!-- <a href="{{ event.catalog }}country/{{ event.country.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
<div class="abn"><a href="#"><img src="{% static 'client/img/_del-temp/banner-2.gif' %}" alt="" /></a></div> <a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/country/{{ event.country.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
--> <a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/city/{{ event.city.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
<div class="e-cat look-also"> </div>
<div class="sect-title">{% trans 'Смотрите также:' %}</div>
<a href="{{ event.catalog }}city/{{ event.city.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
<a href="{{ event.catalog }}country/{{ event.country.url }}/">{% trans "Конференции" %} {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/country/{{ event.country.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.country.inflect %}{{ event.country.inflect }}{% else %}{% trans 'in' %} {{ event.country.name }}{% endif %}</a>
<a href="{{ event.catalog }}theme/{{ event.theme.all.0.url }}/city/{{ event.city.url }}/">{% trans "Конференции по тематике " %}&laquo;{{ event.theme.all.0.name|lower }}&raquo; {% if request.LANGUAGE_CODE == 'ru' and event.city.inflect %}{{ event.city.inflect }}{% else %}{% trans 'in' %} {{ event.city.name }}{% endif %}</a>
</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:{
activeClass:"visit", activeClass:"visit",
passiveClass:"unvisit", passiveClass:"unvisit",
@ -380,17 +334,17 @@
somebodyId:"somebody", somebodyId:"somebody",
nobodyId:"nobody" nobodyId:"nobody"
}, },
note:{ note:{
wrapClass:'note-wrap', wrapClass:'note-wrap',
wrapDisabledClass:'note-wrap-disabled', wrapDisabledClass:'note-wrap-disabled',
buttonClass:'note-button', buttonClass:'note-button',
inputClass:'note-text' inputClass:'note-text'
}, },
advertise:{ advertise:{
id:"advert-member-form" id:"advert-member-form"
}, },
addCalendarText:"{% trans 'В расписание' %}", addCalendarText:"{% trans 'В расписание' %}",
removeCalendarText:"{% trans 'Из расписания' %}" removeCalendarText:"{% trans 'Из расписания' %}"
}); });
</script> </script>
{% endblock %} {% endblock %}
Loading…
Cancel
Save