Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add schedule list

  • Loading branch information...
commit 13bc9ffacb95c78160c923c032fa6929f9f131db 1 parent 9bcfcb6
@lukeman lukeman authored
View
1  symposion/schedule/urls.py
@@ -7,4 +7,5 @@
url(r"^(\w+)/edit/$", "schedule_detail", name="schedule_detail"),
url(r"^(\w+)/edit/$", "schedule_edit", name="schedule_edit"),
url(r"^edit/slot/(?P<slot_pk>\d+)/", "schedule_slot_edit", name="schedule_slot_edit"),
+ url(r"^list/$", "schedule_list", name="schedule_list"),
)
View
10 symposion/schedule/views.py
@@ -4,7 +4,7 @@
from django.contrib.auth.decorators import login_required
from symposion.schedule.forms import SlotEditForm
-from symposion.schedule.models import Schedule, Day, Slot
+from symposion.schedule.models import Schedule, Day, Slot, Presentation
from symposion.schedule.timetable import TimeTable
@@ -24,6 +24,14 @@ def schedule_detail(request, slug=None):
return render(request, "schedule/schedule_detail.html", ctx)
+def schedule_list(request):
+ presentations = Presentation.objects.order_by("id")
+ ctx = {
+ "presentations": presentations,
+ }
+ return render(request, "schedule/schedule_list.html", ctx)
+
+
@login_required
def schedule_edit(request, slug=None):
View
19 symposion/templates/schedule/schedule_list.html
@@ -0,0 +1,19 @@
+{% extends "site_base.html" %}
+
+{% load i18n %}
+
+{% block head_title %}Presentation Listing{% endblock %}
+
+{% block body %}
+ {% for presentation in presentations %}
+ <div class="row">
+ <div class="span8 well">
+ <h3>{{ presentation.title }}</h3>
+ <h4>{{ presentation.speaker }} in {{ presentation.proposal.track }}</h4>
+ <p>
+ {{ presentation.description }}
+ </p>
+ </div>
+ </div>
+ {% endfor %}
+{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.