2012-08-30 16:26:41 +00:00
|
|
|
<table class="table table-bordered table-condensed">
|
2012-08-30 07:14:46 +00:00
|
|
|
<tr>
|
|
|
|
<th> </th>
|
|
|
|
{% for room in timetable.rooms %}
|
|
|
|
<th>{{ room.name }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for row in timetable %}
|
|
|
|
<tr>
|
|
|
|
<td class="time">{{ row.time|date:"h:iA" }}</td>
|
|
|
|
{% for slot in row.slots %}
|
2012-08-30 16:26:41 +00:00
|
|
|
<td class="slot" colspan="{{ slot.colspan }}" rowspan="{{ slow.rowspan }}">
|
|
|
|
<span class="schedule-controls"><b>add</b>: <a href="{# url schedule_slot_add slot.pk "plenary" #}" rel="facebox">plenary</a> | <a href="{# url schedule_slot_add slot.pk "break" #}" rel="facebox">break</a> | <a href="{# url schedule_slot_add slot.pk "presentation" #}" rel="facebox">presentation</a></span>
|
2012-08-30 07:14:46 +00:00
|
|
|
</td>
|
|
|
|
{% comment %}
|
|
|
|
<td colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}" class="slot {{ slot.kind.name }} rowspan-{{ slot.rowspan }} colspan-{{ slot.colspan }}">
|
|
|
|
{% if not slot.content %}
|
|
|
|
<span class="controls"><b>add</b>: <a href="{# url schedule_slot_add slot.pk "plenary" #}" rel="facebox">plenary</a> | <a href="{# url schedule_slot_add slot.pk "break" #}" rel="facebox">break</a> | <a href="{# url schedule_slot_add slot.pk "presentation" #}" rel="facebox">presentation</a>/span>
|
|
|
|
{% else %}
|
|
|
|
{% if slot.kind.name == "recess" %}
|
|
|
|
<div class="title">{{ slot.content.title }}</div>
|
|
|
|
{% else %}
|
|
|
|
{% if slot.kind.name == "plenary" %}
|
|
|
|
<div class="title">{{ slot.content.title }}</div>
|
|
|
|
<div class="speaker">{{ slot.content.speaker }}</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="title">{{ slot.content.title }}</div>
|
|
|
|
<div class="speaker">{{ slot.content.speaker }}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<span class="controls"><b>actions</b>: <a href="{# url schedule_slot_edit slot.pk #}" rel="facebox">edit</a><a href="{#url schedule_slot_remove slot.pk #}" rel="facebox">remove</a></span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
{% endcomment %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|