2017-02-17 16:17:21 +00:00
|
|
|
{% extends 'schedule_base.html' %}
|
2016-08-04 21:03:39 +00:00
|
|
|
|
2017-02-17 16:17:21 +00:00
|
|
|
{% block schedule_content %}
|
2017-02-22 09:02:02 +00:00
|
|
|
{% if eventinstances %}
|
2017-01-22 11:59:57 +00:00
|
|
|
{% for day in camp.camp_days %}
|
|
|
|
{{ day.lower.date|date:"D d/m" }} <br />
|
2016-08-04 21:03:39 +00:00
|
|
|
<div style="display: flex; flex-wrap: wrap;">
|
2017-02-08 22:34:24 +00:00
|
|
|
{% for eventinstance in eventinstances %}
|
2017-01-22 11:59:57 +00:00
|
|
|
{% if eventinstance.schedule_date == day.lower.date %}
|
2016-08-07 13:49:30 +00:00
|
|
|
<a class="event"
|
2017-01-22 11:59:57 +00:00
|
|
|
href="{% url 'event_detail' camp_slug=camp.slug slug=eventinstance.event.slug %}"
|
2017-02-11 16:48:47 +00:00
|
|
|
style="background-color: {{ eventinstance.event.event_type.color }}; border: 0; color: {% if eventinstance.event.event_type.light_text %}white{% else %}black{% endif %};">
|
2017-03-15 20:54:57 +00:00
|
|
|
<small>{{ eventinstance.when.lower|date:"H:i" }} - {{ eventinstance.when.upper|date:"H:i" }}</small>
|
|
|
|
<span class="pull-right" style="font-family: 'FontAwesome';">&#x{{ eventinstance.location.icon }};</span>
|
2016-08-07 12:36:43 +00:00
|
|
|
<br />
|
2017-02-08 22:34:24 +00:00
|
|
|
{{ eventinstance.event.title }}
|
2016-08-08 22:48:56 +00:00
|
|
|
<br />
|
2016-08-07 13:49:30 +00:00
|
|
|
</a>
|
2017-01-22 11:59:57 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2016-08-04 21:03:39 +00:00
|
|
|
</div>
|
|
|
|
<hr />
|
2017-02-22 09:02:02 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<h2>Schedule for {{ camp.title }} coming soon!</h2>
|
|
|
|
{% endif %}
|
2016-08-04 21:03:39 +00:00
|
|
|
|
2017-02-17 16:17:21 +00:00
|
|
|
{% endblock schedule_content %}
|