2016-08-04 21:03:39 +00:00
|
|
|
{% extends 'program_base.html' %}
|
|
|
|
|
|
|
|
{% block program_content %}
|
|
|
|
|
|
|
|
{% for event in events %}
|
2016-08-07 12:36:43 +00:00
|
|
|
{% ifchanged event.event_type %}
|
|
|
|
{% if not forloop.first %}</div>{% endif %}
|
|
|
|
<h3>{{ event.event_type }}</h3>
|
|
|
|
<div style="display: flex; flex-wrap: wrap;">
|
|
|
|
{% endifchanged %}
|
|
|
|
|
|
|
|
<div class="event"
|
|
|
|
style="background-color: {{ event.event_type.color }}; border: 0; color: {% if event.event_type.light_text %}white{% else %}black{% endif %};">
|
|
|
|
<small>{{ event.start|date:"H:i" }} - {{ event.end|date:"H:i" }}</small>
|
|
|
|
<br />
|
|
|
|
{{ event }}
|
|
|
|
</div>
|
|
|
|
|
2016-08-04 21:03:39 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endblock %}
|