Versiunea funcțională EUMI
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
app_name = "equipment"
|
||||
|
||||
urlpatterns = [
|
||||
# Print Routes
|
||||
path(
|
||||
"print/inventory/<int:employee_id>/",
|
||||
views.print_inventory_sheet,
|
||||
name="print_inventory",
|
||||
),
|
||||
path(
|
||||
"print/handover/<int:protocol_id>/",
|
||||
views.print_handover_protocol,
|
||||
name="print_handover",
|
||||
),
|
||||
# Dashboard
|
||||
# path("", views.equipment_list, name="equipment_list"),
|
||||
# Ruta principală devine Dashboard-ul
|
||||
path("", views.dashboard_view, name="dashboard"),
|
||||
path("inventory/", views.equipment_list, name="equipment_list"),
|
||||
path("inventory/export/", views.export_inventory_csv, name="export_inventory"),
|
||||
# Computer Routes
|
||||
path("computer/new/", views.computer_form, name="computer_create"),
|
||||
path("computer/<int:pk>/edit/", views.computer_form, name="computer_edit"),
|
||||
path(
|
||||
"computer/<int:pk>/sheet/",
|
||||
views.computer_technical_sheet,
|
||||
name="computer_sheet",
|
||||
),
|
||||
path(
|
||||
"computer/<int:pk>/maintenance/new/",
|
||||
views.computer_maintenance_create,
|
||||
name="computer_maintenance_create",
|
||||
),
|
||||
# Monitor Routes
|
||||
path("monitor/new/", views.monitor_form, name="monitor_create"),
|
||||
path("monitor/<int:pk>/edit/", views.monitor_form, name="monitor_edit"),
|
||||
path(
|
||||
"monitor/<int:pk>/sheet/", views.monitor_technical_sheet, name="monitor_sheet"
|
||||
),
|
||||
path(
|
||||
"monitor/<int:pk>/maintenance/new/",
|
||||
views.monitor_maintenance_create,
|
||||
name="monitor_maintenance_create",
|
||||
),
|
||||
# Peripheral Routes
|
||||
path("peripheral/new/", views.peripheral_form, name="peripheral_create"),
|
||||
path("peripheral/<int:pk>/edit/", views.peripheral_form, name="peripheral_edit"),
|
||||
path(
|
||||
"peripheral/<int:pk>/sheet/",
|
||||
views.peripheral_technical_sheet,
|
||||
name="peripheral_sheet",
|
||||
),
|
||||
path(
|
||||
"peripheral/<int:pk>/maintenance/new/",
|
||||
views.peripheral_maintenance_create,
|
||||
name="peripheral_maintenance_create",
|
||||
),
|
||||
# Rute Procese Verbale (Handover)
|
||||
path("handover/", views.handover_protocol_list, name="handover_list"),
|
||||
path("handover/new/", views.handover_protocol_form, name="handover_create"),
|
||||
path("handover/<int:pk>/edit/", views.handover_protocol_form, name="handover_edit"),
|
||||
path("handover/<int:pk>/pdf/", views.generate_handover_pdf, name="handover_pdf"),
|
||||
path(
|
||||
"handover/load-equipment/",
|
||||
views.load_user_equipment,
|
||||
name="load_user_equipment",
|
||||
),
|
||||
path("decommission/", views.decommission_list, name="decommission_list"),
|
||||
path("decommission/create/", views.decommission_form, name="decommission_create"),
|
||||
path(
|
||||
"decommission/<int:pk>/edit/", views.decommission_form, name="decommission_edit"
|
||||
),
|
||||
path(
|
||||
"decommission/<int:pk>/pdf/",
|
||||
views.generate_decommission_pdf,
|
||||
name="decommission_pdf",
|
||||
),
|
||||
path("certificates/", views.certificate_list, name="certificate_list"),
|
||||
path("certificates/new/", views.certificate_form, name="certificate_create"),
|
||||
path(
|
||||
"certificates/<int:pk>/edit/", views.certificate_form, name="certificate_edit"
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user