From 8d3aebb0d1f9ff469c2b8fd66a44c680e258ea7c Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 26 Feb 2025 10:12:17 +0100 Subject: [PATCH] refactoring template name --- .../{page-options.php => page-gestion.php} | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) rename template-parts/admin/{page-options.php => page-gestion.php} (66%) diff --git a/template-parts/admin/page-options.php b/template-parts/admin/page-gestion.php similarity index 66% rename from template-parts/admin/page-options.php rename to template-parts/admin/page-gestion.php index c4a657a..ff95583 100644 --- a/template-parts/admin/page-options.php +++ b/template-parts/admin/page-gestion.php @@ -1,18 +1,27 @@ display_name; +$use_current_user = isset($_GET['use-current-user']) ? $_GET['use-current-user'] : true; + ?>
-

Gestion

-
- - - - + +

Artisans de

+ +

Tous les Artisans

+ + + + -

Artisans de

display_name; 'type' => 'action-required', 'status_class' => 'action-required ', 'title' => 'Action requise', - 'use_current_user' => true, + 'use_current_user' => $use_current_user, 'current_user_id' => $current_user->ID, 'not_found_message' => 'Aucun artisan avec une action requise', )); @@ -30,7 +39,7 @@ $user_name = $current_user->display_name; 'status' => 'to_actualize', 'status_class' => 'to-actualize', 'title' => 'À actualiser', - 'use_current_user' => true, + 'use_current_user' => $use_current_user, 'current_user_id' => $current_user->ID, 'not_found_message' => 'Aucun artisan à actualiser', )); @@ -40,7 +49,7 @@ $user_name = $current_user->display_name; 'status' => 'to_contact', 'status_class' => 'to-contact', 'title' => 'À contacter', - 'use_current_user' => true, + 'use_current_user' => $use_current_user, 'current_user_id' => $current_user->ID, 'not_found_message' => 'Aucun artisan à contacter', )); @@ -50,7 +59,7 @@ $user_name = $current_user->display_name; 'status' => 'waiting_feedback', 'status_class' => 'waiting-feedback', 'title' => 'En attente de retour', - 'use_current_user' => true, + 'use_current_user' => $use_current_user, 'current_user_id' => $current_user->ID, 'not_found_message' => 'Aucun artisan en attente de retour', )); @@ -60,7 +69,7 @@ $user_name = $current_user->display_name; 'status' => 'ongoing', 'status_class' => 'ongoing', 'title' => 'En cours', - 'use_current_user' => true, + 'use_current_user' => $use_current_user, 'current_user_id' => $current_user->ID, 'not_found_message' => 'Aucun artisan en cours', )); @@ -70,7 +79,7 @@ $user_name = $current_user->display_name; 'status' => 'ok', 'status_class' => 'ok', 'title' => 'OK', - 'use_current_user' => true, + 'use_current_user' => $use_current_user, 'current_user_id' => $current_user->ID, 'not_found_message' => 'Aucun artisan OK', ));