symposion_app/symposion/templates/schedule/_grid.html
2012-08-30 22:26:37 -04:00

22 lines
No EOL
834 B
HTML

<table class="table table-bordered table-condensed">
<tr>
<th>&nbsp;</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 %}
<td class="slot" colspan="{{ slot.colspan }}" rowspan="{{ slow.rowspan }}">
{% if slot.kind.label == "talk" %}
<span class="schedule-controls"><b>add</b>: <a href="{# url schedule_slot_add slot.pk "talk" #}" rel="facebox">talk</a></span>
{% else %}
{{ slot.kind.label }}
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>