78 lines
2.6 KiB
PHP
78 lines
2.6 KiB
PHP
<?php
|
|
$current_user = wp_get_current_user();
|
|
$user_name = $current_user->display_name;
|
|
?>
|
|
|
|
<div class="wrap gestion-artisans">
|
|
<h1>Gestion</h1>
|
|
<div class="filter-artisans">
|
|
|
|
<input type="radio" name="choice" id="current-user" value="current-user">
|
|
<label for="current-user">Artisans de <?php echo $user_name ?></label>
|
|
<input type="radio" name="choice" id="all-users" value="all-users">
|
|
<label for="all-users">Tous les artisans</label>
|
|
</div>
|
|
<h2>Artisans de <?php echo $user_name ?></h2>
|
|
|
|
<?php
|
|
//===== SECTION : ACTION REQUISE =====//
|
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
|
'type' => 'action-required',
|
|
'status_class' => 'action-required ',
|
|
'title' => 'Action requise',
|
|
'use_current_user' => true,
|
|
'current_user_id' => $current_user->ID,
|
|
'not_found_message' => 'Aucun artisan avec une action requise',
|
|
));
|
|
|
|
//===== SECTION : À ACTUALISER =====//
|
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
|
'status' => 'to_actualize',
|
|
'status_class' => 'to-actualize',
|
|
'title' => 'À actualiser',
|
|
'use_current_user' => true,
|
|
'current_user_id' => $current_user->ID,
|
|
'not_found_message' => 'Aucun artisan à actualiser',
|
|
));
|
|
|
|
//===== SECTION : À CONTACTER =====//
|
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
|
'status' => 'to_contact',
|
|
'status_class' => 'to-contact',
|
|
'title' => 'À contacter',
|
|
'use_current_user' => true,
|
|
'current_user_id' => $current_user->ID,
|
|
'not_found_message' => 'Aucun artisan à contacter',
|
|
));
|
|
|
|
//===== SECTION : EN ATTENTE DE RETOUR =====//
|
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
|
'status' => 'waiting_feedback',
|
|
'status_class' => 'waiting-feedback',
|
|
'title' => 'En attente de retour',
|
|
'use_current_user' => true,
|
|
'current_user_id' => $current_user->ID,
|
|
'not_found_message' => 'Aucun artisan en attente de retour',
|
|
));
|
|
|
|
//===== SECTION : EN COURS =====//
|
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
|
'status' => 'ongoing',
|
|
'status_class' => 'ongoing',
|
|
'title' => 'En cours',
|
|
'use_current_user' => true,
|
|
'current_user_id' => $current_user->ID,
|
|
'not_found_message' => 'Aucun artisan en cours',
|
|
));
|
|
|
|
//===== SECTION : OK =====//
|
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
|
'status' => 'ok',
|
|
'status_class' => 'ok',
|
|
'title' => 'OK',
|
|
'use_current_user' => true,
|
|
'current_user_id' => $current_user->ID,
|
|
'not_found_message' => 'Aucun artisan OK',
|
|
));
|
|
?>
|
|
</div>
|