feat(core): Add delete view for ticket types: request, incident, change and problem

ref: #250 #96 #93 #95 #90 #263
This commit is contained in:
2024-09-03 14:54:58 +09:30
parent a3bfa921e8
commit cfc690f1c2
3 changed files with 45 additions and 0 deletions

View File

@ -10,6 +10,7 @@ urlpatterns = [
path('ticket/change', ticket.Index.as_view(), kwargs={'ticket_type': 'change'}, name="Changes"),
path('ticket/<str:ticket_type>/add', ticket.Add.as_view(), name="_ticket_change_add"),
path('ticket/<str:ticket_type>/<int:pk>/edit', ticket.Change.as_view(), name="_ticket_change_change"),
path('ticket/<str:ticket_type>/<int:pk>/delete', ticket.Delete.as_view(), name="_ticket_change_delete"),
path('ticket/<str:ticket_type>/<int:pk>', ticket.View.as_view(), name="_ticket_change_view"),
path('ticket/<str:ticket_type>/<int:ticket_id>/comment/add', ticket_comment.Add.as_view(), name="_ticket_comment_change_add"),
path('ticket/<str:ticket_type>/<int:ticket_id>/comment/<int:pk>/edit', ticket_comment.Change.as_view(), name="_ticket_comment_change_change"),
@ -24,6 +25,7 @@ urlpatterns = [
path('ticket/incident', ticket.Index.as_view(), kwargs={'ticket_type': 'incident'}, name="Incidents"),
path('ticket/<str:ticket_type>/add', ticket.Add.as_view(), name="_ticket_incident_add"),
path('ticket/<str:ticket_type>/<int:pk>/edit', ticket.Change.as_view(), name="_ticket_incident_change"),
path('ticket/<str:ticket_type>/<int:pk>/delete', ticket.Delete.as_view(), name="_ticket_incident_delete"),
path('ticket/<str:ticket_type>/<int:pk>', ticket.View.as_view(), name="_ticket_incident_view"),
path('ticket/<str:ticket_type>/<int:ticket_id>/comment/add', ticket_comment.Add.as_view(), name="_ticket_comment_incident_add"),
path('ticket/<str:ticket_type>/<int:ticket_id>/comment/<int:pk>/edit', ticket_comment.Change.as_view(), name="_ticket_comment_incident_change"),
@ -32,6 +34,7 @@ urlpatterns = [
path('ticket/problem', ticket.Index.as_view(), kwargs={'ticket_type': 'problem'}, name="Problems"),
path('ticket/<str:ticket_type>/add', ticket.Add.as_view(), name="_ticket_problem_add"),
path('ticket/<str:ticket_type>/<int:pk>/edit', ticket.Change.as_view(), name="_ticket_problem_change"),
path('ticket/<str:ticket_type>/<int:pk>/delete', ticket.Delete.as_view(), name="_ticket_problem_delete"),
path('ticket/<str:ticket_type>/<int:pk>', ticket.View.as_view(), name="_ticket_problem_view"),
path('ticket/<str:ticket_type>/<int:ticket_id>/comment/add', ticket_comment.Add.as_view(), name="_ticket_comment_problem_add"),
path('ticket/<str:ticket_type>/<int:ticket_id>/comment/<int:pk>/edit', ticket_comment.Change.as_view(), name="_ticket_comment_problem_change"),