urls.py 4.06 KB

from django.urls import path
from . import views

urlpatterns = [
    path("scientific_program_index/",views.index_scientific_program,name="index_scientific_program"),
    # proposals / scientific programs
    path('<int:id_SP>/<int:id_period>/register',views.accept_sp_invitation,name="sp_register"),
    path('add_SP/', views.create_scientific_program,name='create_scientific_program'),
    path('add_SP_with_template/<int:id_SP>', views.create_scientific_program_with_template,name='create_scientific_program_with_template'),
    path('add_SP_Period/<int:id_SP>/', views.create_scientific_program_period,name='create_scientific_program_period'),
    path('repropose_scientific_program/<int:id_SP>/<int:id_SP_Period>', views.create_scientific_program_period,name='repropose_scientific_program'),
    path('detail_scientific_program/<int:id>/', views.detail_scientific_program,name='detail_scientific_program'),
    path('detail_scientific_program_period/<int:id_sp>/<int:id_period>', views.detail_scientific_program_period,name='detail_scientific_program_period'),
    path('edit_scientific_program_period/<int:id_sp>/<int:id_period>', views.edit_scientific_program_period,name='edit_scientific_program_period'),
    path('delete_scientific_program_period/<int:id_sp>/<int:id_period>', views.delete_scientific_program_period,name='delete_scientific_program_period'),
    path('delete_scientific_program/<int:id_sp>', views.delete_scientific_program,name='delete_scientific_program'),
    path('submit_proposal/<int:id>/',views.submit_proposal,name="submit_proposal"),
    path('associate_tac_to_scientific_program/<int:id_sp>/<int:id_period>/',views.associate_tac_to_scientific_program,name="associate_tac_to_scientific_program"),
    path('scientific_program_list', views.scientific_program_list,name='scientific_program_list'),
    path('own_scientific_program_list', views.own_scientific_program_list,name='own_scientific_program_list'),
    path("list_evaluated_scientific_program",views.list_evaluated_scientific_program,name="list_evaluated_scientific_program"),
    path("list_submitted_scientific_program",views.list_submitted_scientific_program,name="list_submitted_scientific_program"),
    path("list_scientific_program_as_template",views.list_scientific_program_as_template,name="list_scientific_program_as_template"),
    path("list_scientific_program_period_repropose",views.list_scientific_program_period_repropose,name="list_scientific_program_period_repropose"),
    path("list_drafted_scientific_program",views.list_drafted_scientific_program,name="list_drafted_scientific_program"),
    path("get_proposal_timeline",views.get_proposal_timeline,name="get_proposal_timeline"),
    # institute
    path('create_institute', views.create_institute,name='create_institute'),
    path('institute_list', views.institute_list,name='institute_list'),
    path('edit_institute/<int:id>/', views.edit_institute,name='edit_institute'),
    path('detail_institute/<int:id>/', views.detail_institute,name='detail_institute'),
    path('delete_institute/<int:id>/', views.delete_institute,name='delete_institute'),
    # period
    path('create_period', views.create_period,name='create_period'),
    path('period_list', views.period_list,name='period_list'),
    path('edit_period/<int:id>/', views.edit_period,name='edit_period'),
    path('detail_period/<int:id>/', views.detail_period,name='detail_period'),
    path('delete_period/<int:id>/', views.delete_period,name='delete_period'),
    # science theme
    path('add_science_theme', views.add_science_theme,name='add_science_theme'),
    path('science_theme_list', views.science_theme_list,name='science_theme_list'),
    path("detail_science_theme/<int:id>/",views.detail_science_theme,name="detail_science_theme"),
    path("edit_science_theme/<int:id>/",views.edit_science_theme,name="edit_science_theme"),
    path("delete_science_theme/<int:id>/",views.delete_science_theme,name="delete_science_theme"),
    path("test_tac_auto",views.test_tac_auto,name="test_tac_auto"),
    # quota
    path("quota_sp",views.quota_sp,name="quota_sp")
]