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', ));