Exemple #1
0
from django.conf.urls import url, patterns
from django.contrib.auth.decorators import login_required

from person.views import ClientEditView, ClientListView, \
    ClientAddView, ClientDetailView, ClientAjaxSearch
from product.views import ProductAddView

urlpatterns = patterns(
    'person.views',
    url(r'^klienci/$',
        login_required(ClientListView.as_view()),
        name='client-list'),
    url(r'^klient/nowy/$',
        login_required(ClientAddView.as_view()),
        name='client-add'),
    url(r'^klient/(?P<pk>\d+)/nowe_zgloszenie/$',
        login_required(ProductAddView.as_view()),
        name='product-add'),
    url(r'^klient/(?P<pk>\d+)/$',
        login_required(ClientDetailView.as_view()),
        name='client-details'),
    url(r'^klient/edycja/(?P<pk>\d+)/$',
        login_required(ClientEditView.as_view()),
        name='client-edit'),
    url(r'^klient/szukaj/$',
        login_required(ClientAjaxSearch.as_view()),
        name='client-search'))
Exemple #2
0
from django.conf.urls.defaults import *
from person.views import ClientListView, ClientAddView, ClientEditView, \
                        ClientDelView, CilentDetailsView, \
                        EmployeeDetailsView, EmployeeEditView

urlpatterns = patterns('person.views',
    url(r'^$', ClientListView.as_view(), name='person_client_list'),
    url(r'^client/details/(?P<pk>\d+)/$', CilentDetailsView.as_view(), name='person_client_details'),
    url(r'^client/add$', ClientAddView.as_view(), name='person_client_add'),
    url(r'^client/edit/(?P<pk>\d+)/$', ClientEditView.as_view(), name='person_client_edit'),
    url(r'^client/delete/(?P<pk>\d+)/$', ClientDelView.as_view(), name='person_client_del'),
    url(r'^employee/details$', EmployeeDetailsView.as_view(), name='person_employee_details'),
    url(r'^employee/edit$', EmployeeEditView.as_view(), name='person_employee_edit'),
)
Exemple #3
0
from django.conf.urls.defaults import url, patterns
from django.contrib.auth.decorators import login_required

from person.views import ClientEditView, ClientListView, \
                    ClientAddView, ClientDetailView, ClientAjaxSearch
from product.views import ProductAddView

urlpatterns = patterns('person.views',
    url(r'^klienci/$', login_required(ClientListView.as_view()), name='client-list'),
    url(r'^klient/nowy/$', login_required(ClientAddView.as_view()), name='client-add'),
    url(r'^klient/(?P<pk>\d+)/nowe_zgloszenie/$', login_required(ProductAddView.as_view()), name='product-add'),
    url(r'^klient/(?P<pk>\d+)/$', login_required(ClientDetailView.as_view()), name='client-details'),
    url(r'^klient/edycja/(?P<pk>\d+)/$', login_required(ClientEditView.as_view()), name='client-edit'),
    url(r'^klient/szukaj/$', login_required(ClientAjaxSearch.as_view()), name='client-search')
)