from django.urls import path from . import views app_name = "equipment" urlpatterns = [ # Print Routes path( "print/inventory//", views.print_inventory_sheet, name="print_inventory", ), path( "print/handover//", 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//edit/", views.computer_form, name="computer_edit"), path( "computer//sheet/", views.computer_technical_sheet, name="computer_sheet", ), path( "computer//maintenance/new/", views.computer_maintenance_create, name="computer_maintenance_create", ), # Monitor Routes path("monitor/new/", views.monitor_form, name="monitor_create"), path("monitor//edit/", views.monitor_form, name="monitor_edit"), path( "monitor//sheet/", views.monitor_technical_sheet, name="monitor_sheet" ), path( "monitor//maintenance/new/", views.monitor_maintenance_create, name="monitor_maintenance_create", ), # Peripheral Routes path("peripheral/new/", views.peripheral_form, name="peripheral_create"), path("peripheral//edit/", views.peripheral_form, name="peripheral_edit"), path( "peripheral//sheet/", views.peripheral_technical_sheet, name="peripheral_sheet", ), path( "peripheral//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//edit/", views.handover_protocol_form, name="handover_edit"), path("handover//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//edit/", views.decommission_form, name="decommission_edit" ), path( "decommission//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//edit/", views.certificate_form, name="certificate_edit" ), ]