You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
6.3 KiB
Python
127 lines
6.3 KiB
Python
"""osinaweb URL Configuration
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/4.1/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.urls import include, path
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
"""
|
|
|
|
from django.urls import path, include
|
|
from osinacore import views
|
|
from django.conf.urls.static import static
|
|
from django.conf import settings
|
|
|
|
urlpatterns = [
|
|
path('add/', include('osinacore.add.urls')),
|
|
|
|
|
|
path('login', views.signin, name='signin'),
|
|
path('logout/', views.signout, name='signout'),
|
|
path('', views.home, name='home'),
|
|
path('my-projects/', views.my_projects, name='my-projects'),
|
|
path('my-tasks/', views.my_tasks, name='my-tasks'),
|
|
path('my-notes/', views.my_notes, name='my-notes'),
|
|
path('customers/', views.customers, name='customers'),
|
|
path('businesses/<str:business_id>/', views.businessdetails, name='businessdetails'),
|
|
path('businesses/', views.businesses, name='businesses'),
|
|
path('staffs/', views.staffs, name='users'),
|
|
path('staffpositions/', views.staff_positions, name='staffpositions'),
|
|
path('projecttypes/', views.project_types, name='projecttypes'),
|
|
path('businesstypes/', views.business_types, name='businesstypes'),
|
|
path('references/', views.references, name='references'),
|
|
path('tags/', views.tags, name='tags'),
|
|
path('dailyreports/', views.daily_reports, name='dailyreports'),
|
|
|
|
|
|
|
|
|
|
|
|
#Detail pages urls
|
|
path('businesses/<str:business_id>/', views.businessdetails, name='businessdetails'),
|
|
path('customers/<str:customer_id>/', views.customerdetails, name='customerdetails'),
|
|
path('staffs/<str:staff_id>/', views.staffdetails, name='userdetails'),
|
|
path('tasks/<str:task_id>/', views.detailed_task, name='detailed-task'),
|
|
path('projectdetails/<str:project_id>/', views.detailed_project, name='detailed-project'),
|
|
|
|
|
|
|
|
|
|
|
|
#Fetch urls
|
|
path('get_tasks/<int:epic_id>/', views.get_tasks, name='get_tasks'),
|
|
path('open_tasks_for_project/<int:project_id>/', views.open_tasks_for_project, name='open_tasks_for_project'),
|
|
|
|
|
|
#Modals urls
|
|
path('add-user-story/<str:project_id>/', views.add_user_story_modal, name='adduserstory'),
|
|
path('update-status/<str:task_id>/', views.update_status_modal, name='updatestatus'),
|
|
path('show-points/<str:task_id>/', views.show_points_modal, name='showpoints'),
|
|
path('timeline/', views.timeline_modal, name='timeline'),
|
|
path('add-businesscustomer/', views.add_business_modal, name='addbusinesscustomer'),
|
|
|
|
path('statusmobilemodal/', views.status_mobile_modal, name='statusmobilemodal'),
|
|
path('userrecentativities/<int:user_id>', views.user_recent_activities_modal, name='userrecentativities'),
|
|
|
|
|
|
#Delete Modals
|
|
path('deletecustomermodal/<int:customer_id>', views.delete_customer_modal, name='deletecustomermodal'),
|
|
path('deletebusinessmodal/<int:business_id>', views.delete_business_modal, name='deletebusinessmodal'),
|
|
path('deletestaffmodal/<int:staff_id>', views.delete_staff_modal, name='deletestaffmodal'),
|
|
path('deleteprojectmodal/<int:project_id>', views.delete_project_modal, name='deleteprojectmodal'),
|
|
path('deletetaskmodal/<int:task_id>', views.delete_task_modal, name='deletetaskmodal'),
|
|
path('deletenotemodal/<int:note_id>', views.delete_note_modal, name='deletenotemodal'),
|
|
path('deleteprojectnotemodal/<int:note_id>/', views.delete_project_note_modal, name='deleteprojectnotemodal'),
|
|
|
|
path('deletepointmodal/<int:point_id>/<str:task_id>/', views.delete_point_modal, name='deletepointmodal'),
|
|
path('deletetaskpointmodal/<int:point_id>/<str:task_id>/', views.delete_task_point_modal, name='deletetaskpointmodal'),
|
|
|
|
|
|
|
|
|
|
|
|
#Edit Pages
|
|
path('edit-project/<str:project_id>/', views.edit_project, name='editproject'),
|
|
path('edit-epic/', views.edit_epic, name='editepic'),
|
|
path('edit-task/<str:task_id>', views.edit_task, name='edittask'),
|
|
path('edit-customer/<str:customer_id>/', views.edit_customer, name='editcustomer'),
|
|
path('edit-business/<str:business_id>/', views.edit_business, name='editbusiness'),
|
|
path('edit-staff/<str:staff_id>/', views.edit_staff, name='editstaff'),
|
|
path('edit-projecttype/<int:projecttype_id>', views.edit_project_type, name='editprojecttype'),
|
|
path('edit-businesstype/<int:businesstype_id>', views.edit_business_type, name='editbusinesstype'),
|
|
path('edit-reference/<int:reference_id>', views.edit_reference, name='editreference'),
|
|
path('edit-tag/<int:tag_id>', views.edit_tag, name='edittag'),
|
|
path('edits-taffposition/', views.edit_staff_position, name='editstaffposition'),
|
|
path('mark_point_working_on/<int:point_id>/<str:task_id>/', views.mark_point_working_on, name='mark_point_working_on'),
|
|
path('mark_point_working_on_task_page/<int:point_id>/<str:task_id>/', views.mark_point_working_on_task_page, name='mark_point_working_on_task_page'),
|
|
path('mark_point_completed/<int:point_id>/<str:task_id>/', views.mark_point_completed, name='mark_point_completed'),
|
|
path('mark_point_completed_task_page/<int:point_id>/<str:task_id>/', views.mark_point_completed_task_page, name='mark_point_completed_task_page'),
|
|
path('mark_point_paused/<int:point_id>/<str:task_id>/', views.mark_point_paused, name='mark_point_paused'),
|
|
|
|
|
|
|
|
#Fetch Urls
|
|
path('getupdatedlaststatus/', views.get_updated_last_status, name='getupdatedlaststatus'),
|
|
path('getupdatedactivities/', views.get_latest_activities, name='getupdatedactivities'),
|
|
|
|
# TO FETCH THE EPICS OF THE SELECTED PROJECT WHEN EDITING A TASK
|
|
path('fetch_epics/', views.fetch_epics, name='fetch_epics'),
|
|
|
|
|
|
path('get_point_total_time/<int:point_id>/', views.get_point_total_time, name='get_point_total_time'),
|
|
|
|
|
|
|
|
#CUSTOMER DASHBOARD
|
|
path('customerdashboard/', views.customer_index, name='customerdashboard'),
|
|
path('customerinvoices/', views.customer_invoices, name='customerinvoices'),
|
|
]
|
|
|
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |