symposion_app/symposion/templates/schedule/_grid.html

28 lines
1.3 KiB
HTML
Raw Normal View History

<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 %}
2012-08-31 02:31:59 +00:00
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slow.rowspan }}">
{% if slot.kind.label == "talk" %}
{% if not slot.content %}
2012-09-20 02:48:54 +00:00
<a class="btn btn-mini edit-slot" data-action="{% url schedule_slot_edit schedule.section.slug slot.pk %}" href="#">+</a><br />{{ slot.rooms|join:", " }}
2012-08-31 04:57:25 +00:00
{% else %}
<div class="title"><a class="edit-slot" data-action="{% url schedule_slot_edit schedule.section.slug slot.pk %}" href="#">{{ slot.content.title }}</a></div>
2012-09-20 02:48:54 +00:00
<div>{{ slot.rooms|join:", " }}</div>
<div class="speaker">{{ slot.content.speaker }}</div>
2012-08-31 04:57:25 +00:00
{% endif %}
{% else %}
{{ slot.kind.label }}
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>