2017-09-27 13:46:13 +00:00
|
|
|
{% load lca2018_tags %}
|
2018-01-10 15:45:43 +00:00
|
|
|
{% load waffle_tags %}
|
2018-09-28 22:42:27 +00:00
|
|
|
|
2019-10-20 13:16:29 +00:00
|
|
|
<table class="calendar table table-bordered">
|
2016-09-18 10:40:55 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-10-20 13:16:29 +00:00
|
|
|
<th scope="row" class="time"><em>Room</em></th>
|
|
|
|
{% for room in timetable.rooms %}
|
|
|
|
<th scope="column">{{ room.name }}</th>
|
|
|
|
{% endfor %}
|
2016-09-18 10:40:55 +00:00
|
|
|
</tr>
|
2017-12-03 04:23:46 +00:00
|
|
|
{% with timetable|day_has_tracks:timetable.day as has_tracks %}
|
2018-09-28 22:42:27 +00:00
|
|
|
{% if has_tracks %}
|
|
|
|
<tr>
|
2019-10-20 13:16:29 +00:00
|
|
|
<th scope="row" class="time"><em>Miniconf</em></th>
|
2018-09-28 22:42:27 +00:00
|
|
|
{% for room in timetable.rooms %}
|
|
|
|
{% with room|trackname:timetable.day as track_name %}
|
2019-10-20 13:16:29 +00:00
|
|
|
<th scope="column" class="track-name">{% if track_name %}<p>{{ track_name }}</p>{% endif %}</th>
|
2018-09-28 22:42:27 +00:00
|
|
|
{% endwith %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2017-12-03 04:23:46 +00:00
|
|
|
{% endwith %}
|
2016-09-18 10:40:55 +00:00
|
|
|
</thead>
|
2018-09-28 22:42:27 +00:00
|
|
|
|
2016-09-18 10:40:55 +00:00
|
|
|
<tbody>
|
|
|
|
{% for row in timetable %}
|
2018-09-28 22:42:27 +00:00
|
|
|
<tr class="calendar-row">
|
2019-10-20 13:16:29 +00:00
|
|
|
<th scope="row" class="time"><p>{{ row.time|date:"h:iA" }}</p></th>
|
2018-09-28 22:42:27 +00:00
|
|
|
{% for slot in row.slots %}
|
2019-12-15 04:45:00 +00:00
|
|
|
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
|
2018-09-28 22:42:27 +00:00
|
|
|
{% with slot.kind.label.lower as label %}
|
|
|
|
{% if label == "talk" or label == "tutorial" %}
|
2019-12-17 12:40:21 +00:00
|
|
|
{% if slot.content.unpublish and not request.user.is_staff %}
|
|
|
|
<p><em>To be announced</em></p>
|
|
|
|
{% elif slot.content %}
|
2019-10-20 13:16:29 +00:00
|
|
|
<p>
|
|
|
|
<a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
|
|
|
|
<br />
|
|
|
|
{{ slot.content.speakers|join:", " }}
|
|
|
|
</p>
|
2019-12-17 12:40:21 +00:00
|
|
|
{% if slot.content.unpublish %}
|
|
|
|
<span class="badge badge-pill badge-warning">Unpublished</span>
|
|
|
|
{% endif %}
|
2019-12-15 04:45:00 +00:00
|
|
|
{% flag "session_chair" %}
|
|
|
|
{% if slot.sessions and not edit_schedule %}
|
|
|
|
<div>
|
|
|
|
{% for session in slot.sessions.all %}
|
|
|
|
<em>Session chair:
|
|
|
|
{% if not session.chair %}
|
|
|
|
<a href="{% url "schedule_session_detail" session.id %}">Volunteer! 🙋</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{% url "schedule_session_detail" session.id %}">{{ session.chair.user.attendee.attendeeprofilebase.attendeeprofile.name }}</a>
|
|
|
|
{% endif %}
|
|
|
|
</em>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endflag %}
|
|
|
|
{% endif %}
|
2018-09-28 22:42:27 +00:00
|
|
|
{% elif label == "shortbreak" %}
|
|
|
|
{% else %}
|
2019-12-15 04:45:00 +00:00
|
|
|
{% if slot.content_override %}
|
|
|
|
{{ slot.content_override_html|safe }}
|
|
|
|
{% else %}
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
<p>{{ slot.kind.label }}</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-09-28 22:42:27 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2019-12-15 04:45:00 +00:00
|
|
|
{% if edit_schedule %}
|
|
|
|
<a class="btn btn-secondary btn-sm edit-slot" role="button" data-action="{% url "schedule_slot_edit" schedule.section.slug slot.pk %}" href="#">Edit</a>
|
|
|
|
{% endif %}
|
2018-09-28 22:42:27 +00:00
|
|
|
</td>
|
|
|
|
{% endfor %}
|
2019-10-20 13:16:29 +00:00
|
|
|
{% if forloop.last %}
|
|
|
|
<td colspan="{{ timetable.rooms|length }}"><em>Day End</em></td>
|
|
|
|
{% endif %}
|
2018-09-28 22:42:27 +00:00
|
|
|
</tr>
|
2016-09-18 10:40:55 +00:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
2018-09-28 22:42:27 +00:00
|
|
|
</table>
|