From 746e34cf3c4094649f399bdfad9a6c5eda211f34 Mon Sep 17 00:00:00 2001 From: James Tauber Date: Thu, 30 Aug 2012 03:14:46 -0400 Subject: [PATCH] work in progress on schedule edit template --- symposion/templates/schedule/_grid.html | 38 +++++++ .../templates/schedule/schedule_edit.html | 100 ++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 symposion/templates/schedule/_grid.html create mode 100644 symposion/templates/schedule/schedule_edit.html diff --git a/symposion/templates/schedule/_grid.html b/symposion/templates/schedule/_grid.html new file mode 100644 index 00000000..722b0b7f --- /dev/null +++ b/symposion/templates/schedule/_grid.html @@ -0,0 +1,38 @@ + + + + {% for room in timetable.rooms %} + + {% endfor %} + + {% for row in timetable %} + + + {% for slot in row.slots %} + + {% comment %} + + {% endcomment %} + {% endfor %} + + {% endfor %} +
 {{ room.name }}
{{ row.time|date:"h:iA" }} + add: plenary | break | presentation + + {% if not slot.content %} + add: plenary | break | presentation/span> + {% else %} + {% if slot.kind.name == "recess" %} +
{{ slot.content.title }}
+ {% else %} + {% if slot.kind.name == "plenary" %} +
{{ slot.content.title }}
+
{{ slot.content.speaker }}
+ {% else %} +
{{ slot.content.title }}
+
{{ slot.content.speaker }}
+ {% endif %} + {% endif %} + actions: editremove + {% endif %} +
\ No newline at end of file diff --git a/symposion/templates/schedule/schedule_edit.html b/symposion/templates/schedule/schedule_edit.html new file mode 100644 index 00000000..cb0673d6 --- /dev/null +++ b/symposion/templates/schedule/schedule_edit.html @@ -0,0 +1,100 @@ +{% extends "site_base.html" %} + +{% block head_title %}Conference Schedule Edit{% endblock %} + +{% block body_class %}full{% endblock %} + +{% block right %} +{% endblock %} + +{% block extra_head %} + + +{% endblock %} + +{% block body %} +

Schedule Edit

+ + {% for timetable in days %} +

{{ timetable.day.date }}

+ + {% include "schedule/_grid.html" %} + {% endfor %} + +{% endblock %}