
- Updated `item_incident.html` to implement ERP-style tabs for better navigation and added action icons for editing and deleting incidents. - Enhanced the overview tab with translated labels and improved layout for incident details. - Introduced linked risks and history tabs with appropriate translations and table structures. - Modified `item_risk.html` to include action icons for editing and deleting risks. - Refined `list_controls.html` to improve filter section layout and added translations for filter labels. - Updated `list_incidents.html` to enhance filter functionality and table layout, including translations for headers and buttons. - Improved `list_risks.html` by adding an action icon for adding new risks. - Adjusted `notifications.html` to enhance the display of new notifications with improved formatting and links.
46 lines
2.4 KiB
Python
46 lines
2.4 KiB
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = "risks"
|
|
|
|
urlpatterns = [
|
|
# -----------------------------------------------------------------------
|
|
# Dashboard
|
|
# -----------------------------------------------------------------------
|
|
path("", views.dashboard, name="dashboard"),
|
|
path("risks/index", views.dashboard, name="index"),
|
|
|
|
# -----------------------------------------------------------------------
|
|
# Risks
|
|
# -----------------------------------------------------------------------
|
|
path("risks/list_risks", views.list_risks, name="list_risks"),
|
|
path("risks/risks/<int:id>", views.show_risk, name="show_risk"),
|
|
path("risks/risk_matrix", views.risk_matrix, name="risk_matrix"),
|
|
path("risks/<int:id>/status", views.update_risk_status, name="update_risk_status"),
|
|
|
|
# -----------------------------------------------------------------------
|
|
# Controls
|
|
# -----------------------------------------------------------------------
|
|
path("risks/list_controls", views.list_controls, name="list_controls"),
|
|
path("risks/controls/<int:id>", views.show_control, name="show_control"),
|
|
path("controls/<int:id>/status", views.update_control_status, name="update_control_status"),
|
|
|
|
# -----------------------------------------------------------------------
|
|
# Incidents
|
|
# -----------------------------------------------------------------------
|
|
path("risks/list_incidents", views.list_incidents, name="list_incidents"),
|
|
path("risks/incidents/<int:id>", views.show_incident, name="show_incident"),
|
|
path("incidents/<int:id>/status", views.update_incident_status, name="update_incident_status"),
|
|
|
|
# -----------------------------------------------------------------------
|
|
# Residual Risks
|
|
# -----------------------------------------------------------------------
|
|
path("residuals/<int:risk_id>/review", views.update_residual_review, name="update_residual_review"),
|
|
|
|
# -----------------------------------------------------------------------
|
|
# Notifications
|
|
# -----------------------------------------------------------------------
|
|
path("notifications/", views.notifications, name="notifications"),
|
|
path("notifications/<int:pk>/read", views.notification_mark_read, name="notification_mark_read"),
|
|
path("notifications/mark_all_read", views.notification_mark_all_read, name="notification_mark_all_read"),
|
|
]
|