2017-02-17 16:17:21 +00:00
|
|
|
{% extends 'schedule_base.html' %}
|
2017-04-19 20:37:30 +00:00
|
|
|
{% load staticfiles %}
|
2016-08-04 21:03:39 +00:00
|
|
|
|
2017-02-17 16:17:21 +00:00
|
|
|
{% block schedule_content %}
|
2017-04-19 20:37:30 +00:00
|
|
|
<table class="table day-table">
|
|
|
|
{% for timeslot in timeslots %}
|
|
|
|
<tr>
|
|
|
|
<td>{% if timeslot.time.minute == 0 %}{{ timeslot.time }}{% endif %}</td>
|
|
|
|
{% for eventinstance in eventinstances %}
|
|
|
|
{% if eventinstance.when.lower.time == timeslot.time %}
|
|
|
|
<td style="background-color: {{ eventinstance.event.event_type.color }}; color: {% if eventinstance.event.event_type.light_text %}white{% else %}black{% endif %};" class="event-td" rowspan={{ eventinstance.timeslots }} data-eventinstance-id="{{ eventinstance.id }}">
|
2018-05-20 16:16:20 +00:00
|
|
|
<a style="color:inherit;" href="{% url 'program:event_detail' camp_slug=camp.slug slug=eventinstance.event.slug %}">
|
2017-04-19 20:37:30 +00:00
|
|
|
{{ eventinstance.event.title }}<br>
|
|
|
|
{{ eventinstance.when.lower.time }}-{{ eventinstance.when.upper.time }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2017-01-22 11:59:57 +00:00
|
|
|
</table>
|
2017-04-19 20:37:30 +00:00
|
|
|
|
|
|
|
{% include "event_modal.html" %}
|
|
|
|
<script src="{% static "channels/js/websocketbridge.js" %}"></script>
|
|
|
|
<script src="{% static "js/event_instance_websocket.js" %}"></script>
|
|
|
|
<script>
|
|
|
|
init_modals('event-td');
|
|
|
|
</script>
|
2017-02-17 16:17:21 +00:00
|
|
|
{% endblock %}
|