EXPO-25 includes/conference/conference_list.html

remotes/origin/1203
pavel 11 years ago
parent 864dc9519e
commit 82c9ef87f5
  1. 221
      templates/client/includes/conference/conference_list.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 %}
Loading…
Cancel
Save