@ -1,128 +1,137 @@
{% load static %}
{% load static %}
{% load i18n %}
{% load i18n %}
{% load template_filters %}
{% load template_filters %}
{% with objects=object_list %}
{% with objects=object_list %}
{% if objects %}
{% if objects %}
{% include 'client/includes/banners/tops.html' %}
{% include 'client/includes/banners/tops.html' %}
< ul class = "cat-list cl-exhibitions" >
< ul class = "cat-list cl-exhibitions" >
{% for obj in objects %}
{% for obj in objects %}
< li class = "cl-item {% if obj.canceled %}canceled{% endif %}" data-slug = "{{ obj.url }}" >
< li class = "cl-item {% if obj.canceled %}canceled{% endif %}" data-slug = "{{ obj.url }}" >
< div class = "cl-item-wrap clearfix" >
< div class = "cl-item-wrap clearfix" >
{% if not obj.canceled %}
{% if not obj.canceled %}
< a target = "_blank" href = "{% if not obj.paid_new_id %}{{ obj.get_permanent_url }}{% else %}{{ obj.get_paid_catalog_url }}{% endif %}" >
< a target = "_blank" href = "{% if not obj.paid_new_id %}{{ obj.get_permanent_url }}{% else %}{{ obj.get_paid_catalog_url }}{% endif %}" >
{% if obj.expohit %}
{% if obj.expohit %}
< div class = "hit" > < / div >
< div class = "hit" > < / div >
{% 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 >
{% else %}
{% else %}
< div class = "cancel" > < / div >
< div class = "cancel" > < / div >
< 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 >
{% endif %}
< div class = "cli-info" >
< div class = "cli-top clearfix" >
{% if obj.quality_label.rsva.is_set %}
< div class = "cli-approved" >
< img width = "52" height = "42" src = "{% static 'client/img/rsva.jpg' %}" alt = "" title = "Approved Event" / >
< / div >
{% endif %}
{% if obj.quality_label.exporating.is_set %}
< div class = "cli-approved" >
< img width = "52" height = "42" src = "{% static 'client/img/exporating_logo.png' %}" alt = "" title = "Approved Event" / >
< / div >
{% endif %}
{% if obj.quality_label.ufi.is_set %}
< div class = "cli-approved" >
< img width = "52" height = "42" src = "{% static 'client/img/approved-logo.png' %}" alt = "" title = "Approved Event" / >
< / div >
{% endif %}
< header >
< div class = "cli-title" > < a target = "_blank" href = "{% if not obj.paid_new_id %}{{ obj.get_permanent_url }}{% else %}{{ obj.get_paid_catalog_url }}{% endif %}" > {{ obj.name|safe }}< / a > < / div >
< / header >
< div class = "cli-descr" >
{{ obj.main_title|safe }}
< / div >
< / div >
< div class = "cli-bot clearfix" >
< div class = "cli-date" >
{% with obj=obj %}
{% include 'client/includes/show_date_block.html' %}
{% endwith %}
< / div >
{% if obj.country %}
< 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 >
{% if obj.place %}, < a href = "/places/{{ obj.place.url }}/" > {{ obj.place }}< / a > {% endif %}
< / div >
{% endif %}
< / div >
< / div >
< div class = "cli-buttons clearfix" >
< div class = "cli-m-buttons" >
{% include 'client/includes/exposition/services.html' with obj=obj %}
{% include 'client/includes/calendar_button.html' with obj=obj%}
< div class = "{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}" >
{% with note=obj|note_by_user:request.user %}
< a class = "button green icon-note {% if note %}active{% endif %} note-button" href = "/expo/add-note/{{ obj.url }}/" > {% trans 'заметка' %}< / a >
< div class = "note-overlay" >
< form action = "" >
< textarea name = "note_text" class = "note-text" > {{ note }}< / textarea >
< / form >
< / div >
{% endwith %}
< / div >
{% if request.user.is_admin %}
< div class = "note-wrap" >
< a class = "button green " href = "/admin/exposition/{{ obj.url }}/" > {% trans 'изменить' %}< / a >
< / div >
{% endif %}
< div > < / div >
< / div >
< div class = "cli-s-buttons" >
{% include 'client/buttons/booking_button.html' with object=obj %}
< / div >
< / div >
< / div >
< / div >
{% endif %}
< div class = "cli-info" >
< div class = "cli-top clearfix" >
{% if obj.quality_label.rsva.is_set %}
< div class = "cli-approved" >
< img width = "52" height = "42" src = "{% static 'client/img/rsva.jpg' %}" alt = "" title = "Approved Event" / >
< / div >
{% endif %}
{% if obj.quality_label.exporating.is_set %}
< div class = "cli-approved" >
< img width = "52" height = "42" src = "{% static 'client/img/exporating_logo.png' %}" alt = "" title = "Approved Event" / >
< / div >
{% endif %}
{% if obj.quality_label.ufi.is_set %}
< div class = "cli-approved" >
< img width = "52" height = "42" src = "{% static 'client/img/approved-logo.png' %}" alt = "" title = "Approved Event" / >
< / div >
{% endif %}
< header >
< div class = "cli-title" > < a target = "_blank" href = "{% if not obj.paid_new_id %}{{ obj.get_permanent_url }}{% else %}{{ obj.get_paid_catalog_url }}{% endif %}" > {{ obj.name|safe }}< / a > < / div >
< / header >
< div class = "cli-descr" >
{{ obj.main_title|safe }}
< / div >
< / div >
< div class = "cli-bot clearfix" >
< div class = "cli-date" >
{% with obj=obj %}
{% include 'client/includes/show_date_block.html' %}
{% endwith %}
< / div >
{% if obj.country %}
< 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 >
{% if obj.place %}
, < a href = "/places/{{ obj.place.url }}/" > {{ obj.place }}< / a >
{% endif %}
< / div >
{% endif %}
< / div >
< / div >
< div class = "cli-buttons clearfix" >
< div class = "cli-m-buttons" >
{% include 'client/includes/exposition/services.html' with obj=obj %}
{% include 'client/includes/calendar_button.html' with obj=obj%}
< div class = "{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}" >
{% with note=obj|note_by_user:request.user %}
< a class = "button green icon-note {% if note %}active{% endif %} note-button" href = "/expo/add-note/{{ obj.url }}/" > {% trans 'заметка' %}< / a >
< div class = "note-overlay" >
< form action = "" >
< textarea name = "note_text" class = "note-text" > {{ note }}< / textarea >
< / form >
< / div >
{% endwith %}
< / div >
{% if request.user.is_admin %}
< div class = "note-wrap" >
< a class = "button green " href = "/admin/exposition/{{ obj.url }}/" > {% trans 'изменить' %}< / a >
< / div >
{% endif %}
< div > < / div >
< / div >
< div class = "cli-s-buttons" >
{% include 'client/buttons/booking_button.html' with object=obj %}
< / div >
< / div >
< / div >
< 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 >
{% if forloop.counter == 5 %}
{% include 'client/includes/banners/catalog_inner_2.html' %}
{% elif forloop.last and objects|length < 5 % }
{% include 'client/includes/banners/catalog_inner_2.html' %}
{% endif %}
{% if forloop.counter == 10 %}
< footer class = "clearfix" >
{% include 'client/includes/banners/catalog_inner.html' %}
< div class = "cli-stats" >
{%endif %}
{% if obj.visitors %}
{% endfor %}
< 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 >
< / ul >
{% if forloop.counter == 5 %}
{% include 'client/includes/banners/catalog_inner_2.html' %}
{% elif forloop.last and objects|length < 5 % }
{% include 'client/includes/banners/catalog_inner_2.html' %}
{% endif %}
{% if forloop.counter == 10 %}
{% include 'client/includes/banners/catalog_inner.html' %}
{%endif %}
{% endfor %}
< / ul >
{% else %}
{% else %}
< p class = "message-not-found" >
< p class = "message-not-found" >
< span class = "message" >
< span class = "message" >
@ -130,26 +139,25 @@
< / span >
< / span >
< / p >
< / p >
{% endif %}
{% endif %}
{% endwith %}
{% endwith %}
{% block scripts %}
{% block scripts %}
{% if request.GET.debug == '1' %}
{% if request.GET.debug == '1' %}
< script src = "{% static 'client/js/_modules/block.exposition.list.js' %}" > < / script >
< script src = "{% static 'client/js/_modules/block.exposition.list.js' %}" > < / script >
{% else %}
{% else %}
< script src = "{% static 'client/js_min/_modules/block.exposition.list.min.js' %}" > < / script >
< script src = "{% static 'client/js_min/_modules/block.exposition.list.min.js' %}" > < / script >
{% endif %}< script >
{% endif %}
EXPO.exposition.list.init({
note:{
< script >
wrapClass:'note-wrap',
EXPO.exposition.list.init({
wrapDisabledClass:'note-wrap-disabled',
note:{
buttonClass:'note-button',
wrapClass:'note-wrap',
inputClass:'note-text'
wrapDisabledClass:'note-wrap-disabled',
},
buttonClass:'note-button',
addCalendarText:"{% trans 'В расписание' %}",
inputClass:'note-text'
removeCalendarText:"{% trans 'Из расписания' %}"
},
});
addCalendarText:"{% trans 'В расписание' %}",
< / script >
removeCalendarText:"{% trans 'Из расписания' %}"
});
< / script >
{% endblock %}
{% endblock %}