parent
8f3f830924
commit
fc6559b220
1 changed files with 94 additions and 103 deletions
@ -1,115 +1,106 @@ |
||||
{% load static %} |
||||
{% load i18n %} |
||||
{% load template_filters %} |
||||
|
||||
|
||||
<ul class="cat-list cl-exhibitions"> |
||||
|
||||
{% for result in query %} |
||||
|
||||
<li class="cl-item {% if result.object.canceled %}canceled{% endif %}"> |
||||
<div class="cl-item-wrap clearfix"> |
||||
<a href="{{ result.object.get_permanent_url }}"> |
||||
{% if result.object.canceled %} |
||||
<div class="cancel"></div> |
||||
{% else %} |
||||
{% if result.object.expohit %} |
||||
<div class="hit"></div> |
||||
{% endif %} |
||||
{% endif %} |
||||
{% for result in query %} |
||||
<li class="cl-item {% if result.object.canceled %}canceled{% endif %}"> |
||||
<div class="cl-item-wrap clearfix"> |
||||
<a href="{{ result.object.get_permanent_url }}"> |
||||
{% if result.object.canceled %} |
||||
<div class="cancel"></div> |
||||
{% else %} |
||||
{% if result.object.expohit %} |
||||
<div class="hit"></div> |
||||
{% endif %} |
||||
{% endif %} |
||||
<div class="cli-pict"> |
||||
{% with obj=result.object %} |
||||
{% include 'client/includes/show_logo.html' %} |
||||
{% endwith %} |
||||
</div> |
||||
{% with obj=result.object %} |
||||
{% include 'client/includes/show_logo.html' %} |
||||
{% endwith %} |
||||
</div> |
||||
</a> |
||||
<div class="cli-info"> |
||||
<div class="cli-top clearfix"> |
||||
{% if result.object.quality_label.ufi.is_set %} |
||||
<div class="cli-approved"> |
||||
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" /> |
||||
</div> |
||||
{% endif %} |
||||
<header> |
||||
<div class="cli-title"><a href="{{ result.object.get_permanent_url }}">{{ result.object.name|safe }}</a></div> |
||||
</header> |
||||
<div class="cli-descr"> |
||||
|
||||
{{ result.object.main_title|safe }} |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="cli-bot clearfix"> |
||||
|
||||
<div class="cli-date"> |
||||
{% with obj=result.object %} |
||||
{% include 'client/includes/show_date_block.html' %} |
||||
{% endwith %} |
||||
</div> |
||||
{% if result.object.country %} |
||||
<div class="cli-place"> |
||||
<a href="#">{{ result.object.country }}</a>, <a href="#">{{ result.object.city }}</a>, |
||||
|
||||
{% if result.object.place %} |
||||
<a href="{{ result.object.place.get_permanent_url }}">{{ result.object.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=result.object %} |
||||
{% include 'client/includes/calendar_button.html' with obj=result.object %} |
||||
|
||||
<div class="cli-info"> |
||||
<div class="cli-top clearfix"> |
||||
{% if result.object.quality_label.ufi.is_set %} |
||||
<div class="cli-approved"> |
||||
<img src="{% static 'client/img/approved-logo.png' %}" alt="" title="Approved Event" /> |
||||
</div> |
||||
{% endif %} |
||||
<header> |
||||
<div class="cli-title"><a href="{{ result.object.get_permanent_url }}">{{ result.object.name|safe }}</a></div> |
||||
</header> |
||||
<div class="cli-descr"> |
||||
{{ result.object.main_title|safe }} |
||||
</div> |
||||
</div> |
||||
<div class="cli-bot clearfix"> |
||||
<div class="cli-date"> |
||||
{% with obj=result.object %} |
||||
{% include 'client/includes/show_date_block.html' %} |
||||
{% endwith %} |
||||
</div> |
||||
{% if result.object.country %} |
||||
<div class="cli-place"> |
||||
<a href="#">{{ result.object.country }}</a>, <a href="#">{{ result.object.city }}</a>, |
||||
{% if result.object.place %} |
||||
<a href="{{ result.object.place.get_permanent_url }}">{{ result.object.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=result.object %} |
||||
{% include 'client/includes/calendar_button.html' with obj=result.object %} |
||||
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> |
||||
{% with note=result.object|note_by_user:request.user %} |
||||
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ result.object.url }}/">{% trans 'заметка' %}</a> |
||||
<div class="note-overlay"> |
||||
<form action=""> |
||||
<textarea name="note_text" class="note-text"> {{ note }}</textarea> |
||||
</form> |
||||
</div> |
||||
{% endwith %} |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="cli-s-buttons"> |
||||
{% include 'client/buttons/booking_button.html' with object=result.object %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<footer class="clearfix"> |
||||
<div class="cli-stats"> |
||||
{% if result.object.visitors %} |
||||
<span class="visitors" title="Посетители">{{ result.object.visitors }}</span> |
||||
{% endif %} |
||||
{% if result.object.members %} |
||||
<span class="participants" title="Участники">{{ result.object.members }}</span> |
||||
{% endif %} |
||||
</div> |
||||
<div class="cli-tags"> |
||||
{% include 'client/includes/exposition/tags.html' with obj=result.object %} |
||||
</div> |
||||
</footer> |
||||
</li> |
||||
{% endfor %} |
||||
{% with note=result.object|note_by_user:request.user %} |
||||
<a class="button green icon-note {% if note %}active{% endif %} note-button" href="/expo/add-note/{{ result.object.url }}/">{% trans 'заметка' %}</a> |
||||
<div class="note-overlay"> |
||||
<form action=""> |
||||
<textarea name="note_text" class="note-text"> {{ note }}</textarea> |
||||
</form> |
||||
</div> |
||||
{% endwith %} |
||||
</div> |
||||
</div> |
||||
<div class="cli-s-buttons"> |
||||
{% include 'client/buttons/booking_button.html' with object=result.object %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<footer class="clearfix"> |
||||
<div class="cli-stats"> |
||||
{% if result.object.visitors %} |
||||
<span class="visitors" title="Посетители">{{ result.object.visitors }}</span> |
||||
{% endif %} |
||||
{% if result.object.members %} |
||||
<span class="participants" title="Участники">{{ result.object.members }}</span> |
||||
{% endif %} |
||||
</div> |
||||
<div class="cli-tags"> |
||||
{% include 'client/includes/exposition/tags.html' with obj=result.object %} |
||||
</div> |
||||
</footer> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
|
||||
{% 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> |
||||
EXPO.exposition.list.init({ |
||||
note:{ |
||||
wrapClass:'note-wrap', |
||||
wrapDisabledClass:'note-wrap-disabled', |
||||
buttonClass:'note-button', |
||||
inputClass:'note-text' |
||||
}, |
||||
addCalendarText:"{% trans 'В расписание' %}", |
||||
removeCalendarText:"{% trans 'Из расписания' %}" |
||||
}); |
||||
EXPO.exposition.list.init({ |
||||
note:{ |
||||
wrapClass:'note-wrap', |
||||
wrapDisabledClass:'note-wrap-disabled', |
||||
buttonClass:'note-button', |
||||
inputClass:'note-text' |
||||
}, |
||||
addCalendarText:"{% trans 'В расписание' %}", |
||||
removeCalendarText:"{% trans 'Из расписания' %}" |
||||
}); |
||||
</script> |
||||
{% endblock %} |
||||
|
||||
Loading…
Reference in new issue