From 7ca05a451d961ea085f1fe096ae3bed27db67d4f Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Mon, 21 Aug 2023 16:39:20 +0200 Subject: [PATCH] Create new www.dashboard_networks folder. Refactor --- config/urls.py | 1 + lemarche/templates/dashboard/home_buyer.html | 2 +- .../dashboard_network_detail.html} | 4 +- .../dashboard_network_siae_list.html} | 8 +- .../dashboard_network_siae_tender_list.html} | 10 +- .../dashboard_network_tender_detail.html} | 8 +- .../dashboard_network_tender_list.html} | 2 +- .../dashboard_network_tender_siae_list.html} | 10 +- .../templates/tenders/_list_item_network.html | 4 +- lemarche/www/dashboard/tests.py | 22 +-- lemarche/www/dashboard/urls.py | 35 +--- lemarche/www/dashboard/views.py | 167 +----------------- lemarche/www/dashboard_networks/__init__.py | 0 lemarche/www/dashboard_networks/urls.py | 44 +++++ lemarche/www/dashboard_networks/views.py | 163 +++++++++++++++++ 15 files changed, 247 insertions(+), 233 deletions(-) rename lemarche/templates/{dashboard/profile_network_detail.html => networks/dashboard_network_detail.html} (90%) rename lemarche/templates/{dashboard/profile_network_siae_list.html => networks/dashboard_network_siae_list.html} (87%) rename lemarche/templates/{dashboard/profile_network_siae_tender_list.html => networks/dashboard_network_siae_tender_list.html} (88%) rename lemarche/templates/{dashboard/profile_network_tender_detail.html => networks/dashboard_network_tender_detail.html} (77%) rename lemarche/templates/{dashboard/profile_network_tender_list.html => networks/dashboard_network_tender_list.html} (96%) rename lemarche/templates/{dashboard/profile_network_tender_siae_list.html => networks/dashboard_network_tender_siae_list.html} (86%) create mode 100644 lemarche/www/dashboard_networks/__init__.py create mode 100644 lemarche/www/dashboard_networks/urls.py create mode 100644 lemarche/www/dashboard_networks/views.py diff --git a/config/urls.py b/config/urls.py index 3027f63a4..2cb0284f9 100644 --- a/config/urls.py +++ b/config/urls.py @@ -15,6 +15,7 @@ path("besoins/", include("lemarche.www.tenders.urls")), path("prestataires/", include("lemarche.www.siaes.urls")), path("profil/", include("lemarche.www.dashboard.urls")), + path("profil/reseaux/", include("lemarche.www.dashboard_networks.urls")), path("profil/listes-dachats/", include("lemarche.www.dashboard_favorites.urls")), path("select2/", include("django_select2.urls")), # admin blog diff --git a/lemarche/templates/dashboard/home_buyer.html b/lemarche/templates/dashboard/home_buyer.html index 6486b8f4a..fdd4367ef 100644 --- a/lemarche/templates/dashboard/home_buyer.html +++ b/lemarche/templates/dashboard/home_buyer.html @@ -124,7 +124,7 @@

Tableau de bord