From 1bc28b4b1b688a93f4e059e855f9a8d164e90e1d Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Thu, 16 Mar 2017 13:46:26 +0100 Subject: [PATCH] Disable scheduling module We won't be making use of the scheduling module for the Boston forum. Disable it in configuration, and remove links from the cfp module to the scheduling module in case it's not loaded. Change-Id: I985f2bda2cda872e553ba52b27f3c264cf8a97bd --- cfp/templates/topiclist.html | 8 +++++++- cfp/views.py | 1 + odsreg/settings.py | 2 +- odsreg/urls.py | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cfp/templates/topiclist.html b/cfp/templates/topiclist.html index dcfd506..5a64ecd 100644 --- a/cfp/templates/topiclist.html +++ b/cfp/templates/topiclist.html @@ -1,19 +1,25 @@ {% extends "base.html" %} {% block helppage %}

This is the topic lead review screen. It lists all session suggestions for your topic so far.

+{% if sched %}

A graph shows you how many sessions you have proposed, preapproved and scheduled against the number of available slots you have for your topic.

+{% endif %}

You can see the details of a proposed session (or edit sessions that are not in Preapproved state yet) by clicking on its title. You can sort the results by clicking on the corresponding table headers.

To change the status for a given session, click on the Status you want to change.

+{% if sched %}

Finally, when you're ready to do the scheduling of your topic, you can click on the Scheduling button.

+{% endif %} {% endblock %} {% block content %}

{{ topic.name }}

Back to proposals list +{% if sched %} Scheduling +
+{% endif %}
-
diff --git a/cfp/views.py b/cfp/views.py index d75a922..f5d779b 100644 --- a/cfp/views.py +++ b/cfp/views.py @@ -48,6 +48,7 @@ def topiclist(request, topicid): request.session['lastlist'] = "cfp/topic/%s" % topicid return TemplateResponse(request, "topiclist.html", {'proposals': proposals, + 'sched': 'scheduling' in settings.INSTALLED_APPS, 'topic': topic}) diff --git a/odsreg/settings.py b/odsreg/settings.py index da8da59..c7a5116 100644 --- a/odsreg/settings.py +++ b/odsreg/settings.py @@ -84,7 +84,7 @@ INSTALLED_APPS = [ 'django_openid_auth', 'django.contrib.admin', 'cfp', - 'scheduling', + # 'scheduling', ] AUTHENTICATION_BACKENDS = ( diff --git a/odsreg/urls.py b/odsreg/urls.py index 93e6f09..7b43f6f 100644 --- a/odsreg/urls.py +++ b/odsreg/urls.py @@ -24,7 +24,7 @@ urlpatterns = [ url(r'^openid/', include('django_openid_auth.urls')), url(r'^$', views.list), url(r'^cfp/', include('cfp.urls')), - url(r'^scheduling/', include('scheduling.urls')), + # url(r'^scheduling/', include('scheduling.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^logout$', views.dologout), ]
Topic