from django.urls import path
#from .views import *
from . import pdf_view, views, gestion_view


urlpatterns = [
    path('home/', views.home, name="home"),
    path('edit_profil/<int:id>/', views.edit_profil, name="edit_profil"),
    path('postuler/<int:id>/', views.postuler, name="postuler"),
    path('liste_concours/', views.liste_concours, name="liste_concours"),
    path('liste_document/', views.liste_document, name="liste_document"),
    path('add_document/<int:id>/', views.add_document, name="add_document"),
    path('view_document/<int:id>/', views.view_document, name="view_document"),
    path('view_document_all/<int:id>/<int:file>/', views.view_document_all, name="view_document_all"),
    path('fiches_et_recus/', views.fiches_et_recus, name="fiches_et_recus"),
    path('reclamation_home/', views.reclamation_home, name="reclamation_home"),
    path('reclamation_reponse/<int:id>/', views.reclamation_reponse, name="reclamation_reponse"),
    path('add_photo/', views.add_photo, name="add_photo"),
    path('resultat_home/', views.resultat_home, name="resultat_home"),
    path('manage_password/', views.manage_password, name="manage_password"),
    path('paiement_home/', views.paiement_home, name="paiement_home"),
    path('paiement_concours/<int:id>/', views.paiement_concours, name="paiement_concours"),
    path('convocation_home/', views.convocation_home, name="convocation_home"),
    path('paiement_frais_home/<int:id>/', views.paiement_frais_home, name="paiement_frais_home"),
    path('test_link/', views.test_link, name="test_link"),

    # PDF
    path('fiches_et_recus_pdf/<int:id>/', pdf_view.fiches_et_recus_pdf, name="fiches_et_recus_pdf"),
    path('recu_paiement_pdf/<int:id>/', pdf_view.recu_paiement_pdf, name="recu_paiement_pdf"),
    path('recu_paiement_frais_pdf/<int:id>/', pdf_view.recu_paiement_frais_pdf, name="recu_paiement_frais_pdf"),
    path('document_pdf_view/<int:id>/<int:typdoc>/', pdf_view.document_pdf_view, name="document_pdf_view"),
    path('candidats_autorises_pdf/<int:concours>/<int:annee>/', pdf_view.candidats_autorises_pdf, name="candidats_autorises_pdf"),
    path('candidats_declares_admis_pdf/<int:concours>/<int:annee>/', pdf_view.candidats_declares_admis_pdf, name="candidats_declares_admis_pdf"),
    path('candidats_oral_pdf/<int:concours>/<int:annee>/', pdf_view.candidats_oral_pdf, name="candidats_oral_pdf"),
    path('procedure_preinscription/', pdf_view.procedure_preinscription, name="procedure_preinscription"),
    path('fiche_de_table_pdf/', pdf_view.fiche_de_table_pdf, name="fiche_de_table_pdf"),
    path('convocation_pdf/<int:id>/<int:tpc>/', pdf_view.convocation_pdf, name="convocation_pdf"),

    # GESTION (ADMINISTRATION)
    path('gestion_home/', gestion_view.gestion_home, name="gestion_home"),
    path('liste_candidats/', gestion_view.liste_candidats, name="liste_candidats"),
    path('detail_candidats/<int:id>/', gestion_view.detail_candidats, name="detail_candidats"),
    path('add_admin_user/', gestion_view.add_admin_user, name="add_admin_user"),
    path('admin_user_list/', gestion_view.admin_user_list, name="admin_user_list"),
    path('resultat_filter/', gestion_view.resultat_filter, name="resultat_filter"),
    path('liste_reclamations/', gestion_view.liste_reclamations, name="liste_reclamations"),
    path('details_reclamations/<int:id>/', gestion_view.details_reclamations, name="details_reclamations"),
    path('renew_pass_home/', gestion_view.renew_pass_home, name="renew_pass_home"),
    path('renew_pass/<int:id>/', gestion_view.renew_pass, name="renew_pass"),
    path('admin_manage_password/', gestion_view.admin_manage_password, name="admin_manage_password"),
    path('pdf_download_view/<str:file_name>/', gestion_view.pdf_download_view, name="pdf_download_view"),
    path('download_file/<int:id>/', gestion_view.download_file, name="download_file"),

    # API
    path('reponse_paiement/', views.reponse_paiement, name="reponse_paiement"),
]