|
|
@ -1,5 +1,5 @@ |
|
|
|
from django.conf.urls import * # NOQA |
|
|
|
from django.conf.urls import patterns, url |
|
|
|
from django.conf.urls import url, include |
|
|
|
from django.contrib.auth.decorators import user_passes_test |
|
|
|
from . import views, export |
|
|
|
from utils import staff_member_required |
|
|
@ -25,13 +25,40 @@ urlpatterns = [ |
|
|
|
url(r'^problem/(?P<pk>\d+)/(?P<prispevek>\d+)/$', views.PrispevekView.as_view(), name='seminar_problem_prispevek'), |
|
|
|
|
|
|
|
# Soustredeni |
|
|
|
url(r'^soustredeni/probehlo/$', views.SoustredeniListView.as_view(), |
|
|
|
name = 'seminar_seznam_soustredeni'), |
|
|
|
url(r'^soustredeni/probehlo/(?P<soustredeni>\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'), |
|
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/seznam_ucastniku$', staff_member_required(views.SoustredeniUcastniciView.as_view()), name='soustredeni_ucastnici'), |
|
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/stvrzenky/(?P<first_num>\d+)$', staff_member_required(views.soustredeniStvrzenkyExportView), name='soustredeni_stvrzenky'), |
|
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/export_ucastniku$', staff_member_required(views.soustredeniUcastniciExportView), name='soustredeni_ucastnici_export'), |
|
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/fotogalerie/', include('galerie.urls')), |
|
|
|
url( |
|
|
|
r'^soustredeni/probehlo/$', |
|
|
|
views.SoustredeniListView.as_view(), |
|
|
|
name='seminar_seznam_soustredeni' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/probehlo/(?P<soustredeni>\d+)/$', |
|
|
|
views.SoustredeniView.as_view(), |
|
|
|
name='seminar_soustredeni' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/seznam_ucastniku$', |
|
|
|
staff_member_required(views.SoustredeniUcastniciView.as_view()), |
|
|
|
name='soustredeni_ucastnici' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/maily_ucastniku$', |
|
|
|
staff_member_required(views.SoustredeniMailyUcastnikuView.as_view()), |
|
|
|
name='maily_ucastniku' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/stvrzenky/(?P<first_num>\d+)$', |
|
|
|
staff_member_required(views.soustredeniStvrzenkyExportView), |
|
|
|
name='soustredeni_stvrzenky' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/export_ucastniku$', |
|
|
|
staff_member_required(views.soustredeniUcastniciExportView), |
|
|
|
name='soustredeni_ucastnici_export' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/fotogalerie/', |
|
|
|
include('galerie.urls') |
|
|
|
), |
|
|
|
|
|
|
|
# Zadani |
|
|
|
url(r'^zadani/aktualni/$', views.AktualniZadaniView, name='seminar_aktualni_zadani'), |
|
|
|