2011-07-31 10:46:29 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
|
|
|
from . import views
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-02-16 10:41:22 +01:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2012-02-20 17:46:45 +01:00
|
|
|
url(r'^$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.Overview.as_view(),
|
2013-11-14 01:16:14 +01:00
|
|
|
name='item_overview'), # TODO: Rename this to item_list
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-20 19:39:26 +01:00
|
|
|
url(r'^(?P<pk>\d+)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AgendaItemView.as_view(),
|
|
|
|
name='item_view'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-20 19:39:26 +01:00
|
|
|
url(r'^(?P<pk>\d+)/close/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SetClosed.as_view(),
|
2012-02-20 17:46:45 +01:00
|
|
|
{'closed': True},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='item_close'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-20 19:39:26 +01:00
|
|
|
url(r'^(?P<pk>\d+)/open/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SetClosed.as_view(),
|
2012-02-20 17:46:45 +01:00
|
|
|
{'closed': False},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='item_open'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-20 17:46:45 +01:00
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ItemUpdate.as_view(),
|
|
|
|
name='item_edit'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-20 17:46:45 +01:00
|
|
|
url(r'^new/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ItemCreate.as_view(),
|
|
|
|
name='item_new'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-20 17:46:45 +01:00
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ItemDelete.as_view(),
|
|
|
|
name='item_delete'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-02-20 17:46:45 +01:00
|
|
|
url(r'^print/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AgendaPDF.as_view(),
|
|
|
|
name='print_agenda'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
2014-05-03 19:38:12 +02:00
|
|
|
url(r'^numbering/$',
|
|
|
|
views.AgendaNumberingView.as_view(),
|
|
|
|
name='agenda_numbering'),
|
2014-04-27 21:01:23 +02:00
|
|
|
|
2013-05-06 20:17:13 +02:00
|
|
|
# List of speakers
|
2013-03-18 12:34:47 +01:00
|
|
|
url(r'^(?P<pk>\d+)/speaker/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerAppendView.as_view(),
|
|
|
|
name='agenda_speaker_append'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/close/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerListCloseView.as_view(),
|
|
|
|
name='agenda_speaker_close'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
2013-03-18 12:34:47 +01:00
|
|
|
url(r'^(?P<pk>\d+)/speaker/reopen/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerListCloseView.as_view(reopen=True),
|
|
|
|
name='agenda_speaker_reopen'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
2013-03-18 12:34:47 +01:00
|
|
|
url(r'^(?P<pk>\d+)/speaker/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerDeleteView.as_view(),
|
|
|
|
name='agenda_speaker_delete'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/(?P<speaker>\d+)/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerDeleteView.as_view(),
|
|
|
|
name='agenda_speaker_delete'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/speaker/(?P<person_id>[^/]+)/speak/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerSpeakView.as_view(),
|
|
|
|
name='agenda_speaker_speak'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
2013-04-25 16:18:16 +02:00
|
|
|
url(r'^(?P<pk>\d+)/speaker/end_speach/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerEndSpeachView.as_view(),
|
|
|
|
name='agenda_speaker_end_speach'),
|
2013-04-25 16:18:16 +02:00
|
|
|
|
2013-03-18 12:34:47 +01:00
|
|
|
url(r'^(?P<pk>\d+)/speaker/change_order/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SpeakerChangeOrderView.as_view(),
|
|
|
|
name='agenda_speaker_change_order'),
|
2013-03-18 12:34:47 +01:00
|
|
|
|
|
|
|
url(r'^list_of_speakers/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CurrentListOfSpeakersView.as_view(),
|
|
|
|
name='agenda_current_list_of_speakers'),
|
2013-05-06 20:17:13 +02:00
|
|
|
|
2013-05-24 01:44:58 +02:00
|
|
|
url(r'^list_of_speakers/add/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CurrentListOfSpeakersView.as_view(set_speaker=True),
|
|
|
|
name='agenda_add_to_current_list_of_speakers'),
|
2013-05-24 01:44:58 +02:00
|
|
|
|
|
|
|
url(r'^list_of_speakers/next/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CurrentListOfSpeakersView.as_view(next_speaker=True),
|
|
|
|
name='agenda_next_on_current_list_of_speakers'),
|
2013-05-30 00:24:26 +02:00
|
|
|
|
|
|
|
url(r'^list_of_speakers/end_speach/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CurrentListOfSpeakersView.as_view(end_speach=True),
|
2014-03-27 20:30:15 +01:00
|
|
|
name='agenda_end_speach_on_current_list_of_speakers'),
|
|
|
|
|
2014-04-06 15:46:49 +02:00
|
|
|
url(r'^list_of_speakers/projector/$',
|
|
|
|
views.CurrentListOfSpeakersProjectorView.as_view(),
|
|
|
|
name='agenda_current_list_of_speakers_projector'),
|
|
|
|
|
2014-03-27 20:30:15 +01:00
|
|
|
url(r'^csv_import/$',
|
|
|
|
views.ItemCSVImportView.as_view(),
|
|
|
|
name='item_csv_import'))
|