2016-08-04 21:03:39 +00:00
|
|
|
{% extends 'program_base.html' %}
|
|
|
|
|
|
|
|
{% block program_content %}
|
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-01-22 11:59:57 +00:00
|
|
|
{% for event in camp.events.all %}
|
|
|
|
{% for eventinstance in event.instances.all %}
|
|
|
|
{% if eventinstance.schedule_date == day.lower.date %}
|
2017-01-23 17:57:30 +00:00
|
|
|
{% if not eventtype or eventtype == eventinstance.event.event_type %}
|
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 %}"
|
|
|
|
style="background-color: {{ eventinstance.event.event_type.color }}; border: 0; color: {% if eveninstance.event.event_type.light_text %}white{% else %}black{% endif %};">
|
|
|
|
<small>{{ eventinstance.when.lower|date:"H:i" }} - {{ eventinstance.when.upper|date:"H:i" }}</small>
|
2016-08-07 12:36:43 +00:00
|
|
|
<br />
|
2016-08-04 21:03:39 +00:00
|
|
|
{{ event }}
|
2016-08-08 22:48:56 +00:00
|
|
|
<br />
|
2017-01-22 11:59:57 +00:00
|
|
|
{% if event.speakers.exists %}<i>by {{ event.speakers.all|join:", " }}{% endif %}</i>
|
2016-08-07 13:49:30 +00:00
|
|
|
</a>
|
2017-01-22 11:59:57 +00:00
|
|
|
{% endif %}
|
2017-01-23 17:57:30 +00:00
|
|
|
{% endif %}
|
2017-01-22 11:59:57 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
2016-08-04 21:03:39 +00:00
|
|
|
</div>
|
|
|
|
<hr />
|
2017-01-22 11:59:57 +00:00
|
|
|
{% endfor %}
|
2016-08-04 21:03:39 +00:00
|
|
|
|
2016-08-08 18:56:59 +00:00
|
|
|
{% endblock program_content %}
|