--- /dev/null
+{% extends "core/inc/generic_card.html" %}
+{% load i18n pages_tags mezzanine_tags media_tags organization_tags %}
+
+{% block metatitle %}
+ {{ object.title }}
+{% endblock %}
+
+{% block title %}
+ {{ object.title }}
+{% endblock %}
+
+{% block url %}
+ {{ object.get_absolute_url }}
+{% endblock %}
+
+{% block image %}
+ {% with object.images.all|get_type:'card' as images %}
+ {% if images %}
+ <figure class="article-box__image">
+ <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-original="{{ MEDIA_URL }}{% thumbnail images.0.file 427 286 top=0.5 left=article.photo_alignment|get_photo_alignment %}" class="lazyload" />
+ </figure>
+ {% else %}
+ <figure class="article-box__image">
+ {% if object.departments.first %}
+ {% with object.departments.first as department %}
+ <div class="article-box__placeholder {{department.department.name|slugify}}"></div>
+ {% endwith %}
+ {% else %}
+ <div class="article-box__placeholder"></div>
+ {% endif %}
+ </figure>
+ {% endif %}
+ {% endwith %}
+{% endblock %}
+
+{% block tags %}
+ <div class="article-box__tags">
+ {% if object.departments.first %}
+ {% with object.departments.first as department %}
+ <div class="tag tag--small dashed dashed--small">
+ {{ department.department.name }}
+ </div>
+ {% endwith %}
+ {% endif %}
+ {% if object.category %}
+ <div class="tag tag--small tag--category">
+ {{ object.category|truncatechars:15 }}
+ </div>
+ {% endif %}
+ </div>
+{% endblock %}
+
+{% block content %}
+ {{ object.description|richtext_filters|safe|truncatechars_html:200 }}
+{% endblock %}
+
+{% block subtitle %}
+ <strong>
+ {% include 'agenda/includes/event_date_line.html' %}
+ </strong>
+ {% if object.location %}
+ <br />{{ object.location }}
+ {% endif %}
+{% endblock %}
+
+{% block btn %}
+ {% if object.prices.all.0|floatformat != '0' and object.prices.all|length > 0 %}
+ {% if not object.is_full %}
+ {% for price in object.prices.all %}
+ {% if forloop.first %}
+ <div class="article-box__btn">
+ <object><a href="{% url 'event_booking' content.content_object.slug %}" class="button button--small mr0">{% trans "Reserve" %}</a></object>
+ </div>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ {% endif %}
+{% endblock %}
<a href="{% url "event_list_location" event.location.slug %}" class="event__meta__location">{{ event.location }}</a>
{% endif %}
</div>
- <div class="split-right">
- <a href="{{ event.get_absolute_url }}" class="btn">
- <i class="icon icon__bookmark"></i> {% trans "Reserve" %}
- </a>
- </div>
+ {% if not event.is_full %}
+ <div class="split-right">
+ <a href="{{ event.get_absolute_url }}" class="btn">
+ <i class="icon icon__bookmark"></i> {% trans "Reserve" %}
+ </a>
+ </div>
+ {% endif %}
</div>
</div>
</div>
{% block subtitle %}
<div class="search-box__subtitle">
{% include 'agenda/includes/event_date_line.html' with object=event %}
- {% if event.prices.all.0|floatformat != '0' and event.prices.all|length > 0 and not is_archive %}
+ {% if event.prices.all.0|floatformat != '0' and event.prices.all|length > 0 and not is_archive and not event.is_full %}
<a class="button button--small ml1" href="{% url 'event_booking' event.slug %}" class="event__meta__btn">
{% trans "Reserve" %}
</a>