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-01-22 11:59:57 +00:00
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<table>
|
|
|
|
{% for timeslot in timeslots %}
|
|
|
|
<tr>
|
|
|
|
<td style="height: 50px; padding: 5px;">{{ timeslot.time }}</td>
|
|
|
|
{% for eventinstance in eventinstances %}
|
|
|
|
{% if eventinstance.when.lower.time == timeslot.time %}
|
2017-02-11 16:56:04 +00:00
|
|
|
<td style="background-color: {{ eventinstance.event.event_type.color }}; color: {% if eventinstance.event.event_type.light_text %}white{% else %}black{% endif %};" class="event" rowspan={{ eventinstance.timeslots }}>
|
2017-01-22 11:59:57 +00:00
|
|
|
<a style="color:inherit;" href="{% url 'event_detail' camp_slug=camp.slug slug=eventinstance.event.slug %}">
|
|
|
|
{{ eventinstance.event.title }}<br>
|
|
|
|
{{ eventinstance.when.lower.time }}-{{ eventinstance.when.upper.time }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-02-17 16:17:21 +00:00
|
|
|
{% endblock %}
|