from django.urls import path
from .views import (
        box,

        education,
        association,
        add_association,
        delete_association,
        update_association,
        delete_hr,

        add_hr,
        update_hr,

        add_student,
        update_student,
        delete_student,

        add_history,
        delete_history,

        projects, 
        add_project, 
        delete_project, 
        approve_project,
        get_project_visits,
        add_project_visit,

        devices, 
        add_device,
        delete_device, 
        approve_device,
    )

app_name = 'box'
urlpatterns = [
    path('', box, name='box'),

    path('education/', education, name='education'),
    path('education/association/add', add_association, name='add_association'),
    path('education/association/<int:id>/', association, name='association'),
    path('education/association/delete/<int:id>/', delete_association, name='delete_association'),
    path('education/association/update/<int:id>/', update_association, name='update_association'),

    path('education/association/add_hr/', add_hr, name='add_hr'),
    path('education/association/update_hr/<int:id>/', update_hr, name='update_hr'),
    path('education/association/delete_hr/<int:id>/', delete_hr, name='delete_hr'),

    path('education/association/add_student/', add_student, name='add_student'),
    path('education/association/update_student/<int:id>/', update_student, name='update_student'),
    path('education/association/delete_student/<int:id>/', delete_student, name='delete_student'),

    path('education/association/add_history/', add_history, name='add_history'),
    path('education/association/delete_history/<int:id>/', delete_history, name='delete_history'),

    path('projects/', projects, name='projects'),
    path('projects/add/', add_project, name='add_project'),
    path('projects/delete/<int:id>/', delete_project, name='delete_project'),
    path('projects/approve/<int:id>/', approve_project, name='approve_project'),
    path('projects/get_project_visits/', get_project_visits, name='get_project_visits'),
    path('projects/add_project_visit/', add_project_visit, name='add_project_visit'),
    

    path('devices/', devices, name='devices'),
    path('devices/add/', add_device, name='add_device'),
    path('devices/delete/<int:id>/', delete_device, name='delete_device'),
    path('devices/approve/<int:id>/', approve_device, name='approve_device'),
]