Exemplo n.º 1
0
# coding = utf-8
from django.conf.urls import url

from orders.views import OrderSettlementView, OrderCreateView

urlpatterns = [
    url(r'^places/$', OrderSettlementView.as_view(), name='placeorder'),
    url(r'^$', OrderCreateView.as_view(), name='commitorder'),
]
Exemplo n.º 2
0
from django.urls import path

from orders.views import ClientOrderListView, OrderDetail, OrderCreateView, \
    DriverOrderListView

urlpatterns = [
    path('orders/', ClientOrderListView.as_view(), name='client_orders'),
    path('orders/<int:pk>/', OrderDetail.as_view(), name='client_order'),
    path('orders/create/', OrderCreateView.as_view(), name='order_create'),
    path('orders/driver/', DriverOrderListView.as_view(),
         name='driver_orders'),
]
Exemplo n.º 3
0
Arquivo: urls.py Projeto: dupoy/ucrm
from django.urls import path

from orders.views import (
    OrderListView,
    OrderCreateView,
    OrderDeleteView,
    OrderItemCreateView,
    OrderItemDeleteView,
    orders_charts,
)

app_name = 'orders'

urlpatterns = [
    path('', OrderListView.as_view(), name='orders'),
    path('add/', OrderCreateView.as_view(), name='add'),
    path('delete/<int:pk>', OrderDeleteView.as_view(), name='delete'),
    path('<int:pk>/add-item', OrderItemCreateView.as_view(), name='add-item'),
    path('<int:pk>/<int:item_pk>/remove-item',
         OrderItemDeleteView.as_view(),
         name='remove-item'),
    path('charts/', orders_charts, name='charts'),
]
Exemplo n.º 4
0
from django.conf.urls import url
from orders.views import OrderCreateView, AdminOrderDetailView, AdminOrderPDFView

urlpatterns = [
    url(r'^create/$', OrderCreateView.as_view(), name='order_create'),

    url(r'^admin/order/(?P<order_id>\d+)/$', AdminOrderDetailView.as_view(), name='admin_order_detail'),

    url(r'^admin/order/(?P<order_id>\d+)/pdf/$', AdminOrderPDFView.as_view(), name='admin_order_pdf'),
]
Exemplo n.º 5
0
from django.urls import path, include
from django.contrib.auth import views as auth_views
from orders.views import (OrderCreateView, OrderDeleteView, OrderDetailView,
                          OrderListView, OrderUpdateView)

app_name = 'orders'

urlpatterns = [
    path('', OrderListView.as_view(), name='order_list'),
    path('<int:pk>/', OrderDetailView.as_view(), name='order_detail'),
    path('create/', OrderCreateView.as_view(), name='create'),
    path('update/<int:pk>/', OrderUpdateView.as_view(), name='update'),
    path('delete/<int:pk>/', OrderDeleteView.as_view(), name='delete')
]
Exemplo n.º 6
0
         FactoryContacListtCreateView.as_view(),
         name='factory-contact-list'),
    path('factory/contacts/<int:id>',
         FactoryContactDetailView.as_view(),
         name='factory-contact-list'),
    path('customer/', CustomerCreateView.as_view(), name='customer-list'),
    path('customer/<int:pk>/',
         CustomerDetailView.as_view(),
         name='customer-detail'),
    path('myorders/', OrdersTest.as_view(), name='orders-test'),
    path(
        'orders/names/',
        OrderCreateNamesView.as_view(),
        name='order-names',
    ),
    path('orders/', OrderCreateView.as_view(), name='order-list'),
    path('orders/<int:pk>', OrderDetailView.as_view(), name='order-detail'),
    path('orders/imgupload/', OrderFileView.as_view(), name='order-image'),
    path('inventory/',
         InventoryListCreateView.as_view(),
         name='inventory-create'),
    path('inventorylist/', InventoryListView.as_view(), name='inventory-list'),
    path('inventory/<int:pk>/',
         InventoryDetailView.as_view(),
         name='inventory-detail'),
    path('inventory/specs/', SpecListCreateView.as_view(), name='spec-list'),
    path('inventory/specs/<int:pk>/',
         SpecDetailView.as_view(),
         name='inventory-detail'),
]
Exemplo n.º 7
0
"""Urls of the module orders"""
from django.urls import include, path

from orders.views import (OrderCreateView, OrderDeleteView, OrderDetailView,
                          OrderFilterView, OrderListView, OrderUpdateView)

app_name = "orders"

urlpatterns = [
    path("", OrderListView.as_view(), name="order-list"),
    path("<int:id>/", OrderDetailView.as_view(), name="order-detail"),
    path("search/", OrderFilterView.as_view(), name="order-form"),
    path("create/", OrderCreateView.as_view(), name="order-create"),
    path("<int:id>/update/", OrderUpdateView.as_view(), name="order-update"),
    path("<int:id>/delete/", OrderDeleteView.as_view(), name="order-delete"),
    path("api/", include("orders.api.urls")),
]
Exemplo n.º 8
0

    path('factory/',
         FactoryCreateView.as_view(),
         name='factory-list'),
    path('factory/<int:pk>/',
         FactoryDetailView.as_view(),
         name='factory-detail'),
    path('customer/',
         CustomerCreateView.as_view(),
         name='customer-list'),
    path('customer/<int:pk>/',
         CustomerDetailView.as_view(),
         name='customer-detail'),
    path('orders/',
         OrderCreateView.as_view(),
         name='order-list'),
    path('orders/<int:pk>',
         OrderDetailView.as_view(),
         name='order-detail'),
    path('task/',
         TaskCreateView.as_view(),
         name='task-list'),
    path('task/<int:pk>/',
         TaskDetailView.as_view(),
         name='task-detail'),
]

static(MEDIA_URL, document_root=MEDIA_ROOT)