EXPO-25 {% if request.GET.debug == '1' %}

remotes/origin/1203
pavel 11 years ago
parent 82c9ef87f5
commit 8f3f830924
  1. 220
      templates/client/includes/exposition/exposition_list.html

@ -1,127 +1,113 @@
{% 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" />
{% if obj.quality_label.ufi.is_set %} </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="{{ obj.get_permanent_url }}">{{ obj.name|safe }}</a></div>
{% endif %} </header>
<div class="cli-descr">
<header> {{ obj.main_title|safe }}
<div class="cli-title"><a href="{{ obj.get_permanent_url }}">{{ obj.name|safe }}</a></div> </div>
</header> </div>
<div class="cli-descr"> <div class="cli-bot clearfix">
{{ obj.main_title|safe }} <div class="cli-date">
</div> {% with obj=obj %}
</div> {% include 'client/includes/show_date_block.html' %}
{% endwith %}
<div class="cli-bot clearfix"> </div>
{% if obj.country %}
<div class="cli-date"> <div class="cli-place">
{% with obj=obj %} <a href="{{ obj.catalog }}country/{{ obj.country.url }}/">{{ obj.country }}</a>, <a href="{{ obj.catalog }}city/{{ obj.city.url }}/">{{ obj.city }}</a>
{% include 'client/includes/show_date_block.html' %} {% if obj.place %}
{% endwith %} , <a href="/places/{{ obj.place.url }}/">{{ obj.place }}</a>
</div> {% endif %}
</div>
{% if obj.country %} {% endif %}
<div class="cli-place"> </div>
<a href="{{ obj.catalog }}country/{{ obj.country.url }}/">{{ obj.country }}</a>, <a href="{{ obj.catalog }}city/{{ obj.city.url }}/">{{ obj.city }}</a> </div>
<div class="cli-buttons clearfix">
{% if obj.place %} <div class="cli-m-buttons">
, <a href="/places/{{ obj.place.url }}/">{{ obj.place }}</a> {% include 'client/includes/exposition/services.html' with obj=obj %}
{% endif %} {% include 'client/includes/calendar_button.html' with obj=obj%}
</div> <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="/expo/add-note/{{ obj.url }}/">{% trans 'заметка' %}</a>
</div> <div class="note-overlay">
<form action="">
<textarea name="note_text" class="note-text"> {{ note }}</textarea>
<div class="cli-buttons clearfix"> </form>
<div class="cli-m-buttons"> </div>
{% include 'client/includes/exposition/services.html' with obj=obj %} {% endwith %}
</div>
{% include 'client/includes/calendar_button.html' with obj=obj%} {% if request.user.is_admin %}
<div class="{% if request.user.is_authenticated%}note-wrap{% else %}note-wrap-disabled{% endif %}"> <div class="note-wrap">
{% with note=obj|note_by_user:request.user %} <a class="button green " href="/admin/exposition/{{ obj.url }}/">{% trans 'изменить' %}</a>
<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"> {% endif %}
<form action=""> <div></div>
<textarea name="note_text" class="note-text"> {{ note }}</textarea> </div>
</form> <div class="cli-s-buttons">
</div> {% include 'client/buttons/booking_button.html' with object=obj %}
{% endwith %} </div>
</div> </div>
{% if request.user.is_admin %} </div>
<div class="note-wrap"> <footer class="clearfix">
<a class="button green " href="/admin/exposition/{{ obj.url }}/">{% trans 'изменить' %}</a> <div class="cli-stats">
</div> {% if obj.visitors %}
{% endif %} <span class="visitors" title="Посетители">{{ obj.visitors }}</span>
<div></div> {% endif %}
{% if obj.members %}
</div> <span class="participants" title="Участники">{{ obj.members }}</span>
{% endif %}
<div class="cli-s-buttons"> </div>
{% include 'client/buttons/booking_button.html' with object=obj %} <div class="cli-tags">
</div> {% include 'client/includes/exposition/tags.html' with obj=obj %}
</div> </div>
</div> </footer>
</li>
<footer class="clearfix"> {% endfor %}
<div class="cli-stats"> {% endwith %}
{% 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> <script src="{% static 'client/js/_modules/block.exposition.list.js' %}"></script>
EXPO.exposition.list.init({ {% else %}
note:{ <script src="{% static 'client/js_min/_modules/block.exposition.list.min.js' %}"></script>
wrapClass:'note-wrap', {% endif %}<script>
wrapDisabledClass:'note-wrap-disabled', EXPO.exposition.list.init({
buttonClass:'note-button', note:{
inputClass:'note-text' wrapClass:'note-wrap',
}, wrapDisabledClass:'note-wrap-disabled',
addCalendarText:"{% trans 'В расписание' %}", buttonClass:'note-button',
removeCalendarText:"{% trans 'Из расписания' %}" inputClass:'note-text'
}); },
addCalendarText:"{% trans 'В расписание' %}",
removeCalendarText:"{% trans 'Из расписания' %}"
});
</script> </script>
{% endblock %} {% endblock %}
Loading…
Cancel
Save