Beispiel #1
0
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from venues.views import VenueDatatableView, VenueAdd, VenueUpdate, VenueDelete
from venues.views import VenueView, VenueCalendarView, VenueScriptUpdate

urlpatterns = [
    url(r'^$', login_required(VenueDatatableView.as_view()), name='list'),
    url(r'^add/$', login_required(VenueAdd.as_view()), name='add'),
    url(r'^edit/(?P<pk>\d+)/$', login_required(VenueUpdate.as_view()), name='edit'),
    url(r'^script/(?P<pk>\d+)/$', login_required(VenueScriptUpdate.as_view()), name='script'),
    url(r'^delete/(?P<pk>\d+)/$', login_required(VenueDelete.as_view()), name='delete'),
    url(r'^schedule/(?P<pk>\d+)/$', login_required(VenueView.as_view()), name='venue'),
    url(r'^calendar/(?P<pk>\d+)/$', login_required(VenueCalendarView.as_view()), name='calendar'),
]
Beispiel #2
0
    url(r'^printable-feed/$', login_required(printable_event_feed), name='printable_event_feed'),
    url(r'^calendar-feed/$', login_required(calendar_event_feed), name='calendar_event_feed'),
    url(r'^add-client-form/$', login_required(process_add_client_form), name='process_add_client_form'),
    url(r'^edit-client-form/(?P<pk>\d+)/$', login_required(process_edit_client_form), name='process_edit_client_form'),
    url(r'^select-client-form/$', login_required(process_select_client_form), name='process_select_client_form'),
    url(r'^add-event-form/$', login_required(process_add_event_form), name='process_add_event_form'),
    url(r'^generic-event-form/$', login_required(process_generic_event_form), name='process_generic_event_form'),
    url(r'^edit-generic-event-form/$', login_required(process_edit_generic_event_form), name='process_edit_generic_event_form'),
    # regular
    url(r'^add/', login_required(AddEventView.as_view()), name='add'),
    # url(r'^appointments/$', login_required(AppointmentListView.as_view()), name='appointments'),
    url(r'^appointments/$', login_required(AppointmentDatatableView.as_view()), name='appointments'),
    url(r'^view/(?P<pk>\d+)/$', login_required(AppointmentView.as_view()), name='appointment'),
    url(r'^edit/(?P<pk>\d+)/$', login_required(AppointmentEdit.as_view()), name='appointment_edit'),
    url(r'^delete/(?P<pk>\d+)/$', login_required(AppointmentDelete.as_view()), name='appointment_delete'),
    url(r'^schedule/(?P<pk>\d+)/$', login_required(VenueCalendarView.as_view()), name='venue'),
    # edit
    url(r'^add-event/$', login_required(add_event), name='add_event'),
    url(r'^edit-event/(?P<pk>\d+)/$', login_required(edit_event), name='edit_event'),
    url(r'^delete-appointment-form/(?P<pk>\d+)/$', login_required(delete_appointment), name='delete_appointment'),
    url(r'^edit-appointment-status/(?P<pk>\d+)/$', login_required(edit_appointment_status), name='edit_appointment_status'),
    url(r'^edit-event-form/(?P<pk>\d+)/$', login_required(process_edit_event_form), name='process_edit_event_form'),
    url(r'^snippet/(?P<pk>\d+)/$', login_required(AppointmentSnippetView.as_view()), name='appointment_snippet'),
    url(r'^client-snippet/$', login_required(AddAppointmentSnippetView.as_view()), name='appointment_client_snippet'),
    # tags
    url(r'^tags/$', login_required(TagDatatableView.as_view()), name='tag_list'),
    url(r'^tags/add/$', login_required(TagAdd.as_view()), name='tag_add'),
    url(r'^tags/edit/(?P<pk>\d+)/$', login_required(TagUpdate.as_view()), name='tag_edit'),
    url(r'^tags/delete/(?P<pk>\d+)/$', login_required(TagDelete.as_view()), name='tag_delete'),
]
Beispiel #3
0
    url(r'^$', login_required(VenueDatatableView.as_view()), name='list'),
    url(r'^add/$', login_required(VenueAdd.as_view()), name='add'),
    url(r'^edit/(?P<pk>\d+)/$',
        login_required(VenueUpdate.as_view()),
        name='edit'),
    url(r'^script/(?P<pk>\d+)/$',
        login_required(VenueScriptUpdate.as_view()),
        name='script'),
    url(r'^delete/(?P<pk>\d+)/$',
        login_required(VenueDelete.as_view()),
        name='delete'),
    url(r'^schedule/(?P<pk>\d+)/$',
        login_required(VenueView.as_view()),
        name='venue'),
    url(r'^calendar/(?P<pk>\d+)/$',
        login_required(VenueCalendarView.as_view()),
        name='calendar'),
    url(r'^views/add/$', login_required(AddView.as_view()), name='views_add'),
    url(r'^views/edit/(?P<pk>\d+)/$',
        login_required(EditView.as_view()),
        name='views_edit'),
    url(r'^views/delete/(?P<pk>\d+)/$',
        login_required(DeleteView.as_view()),
        name='views_delete'),
    url(r'^views/$',
        login_required(ViewDatatableView.as_view()),
        name='views_list'),
    url(r'^views-calendar/(?P<pk>\d+)/$',
        login_required(DayViewCalendar.as_view()),
        name='views_calendar'),
]