Fewx visuals tweaks and hiding some sections
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
06ca902b9f
commit
4b7051c69f
|
|
@ -10,7 +10,7 @@ $use_current_user = isset($_GET['use-current-user']) ? $_GET['use-current-user']
|
|||
<?php if ($use_current_user) : ?>
|
||||
<h1 class="page-title">Artisans de <?php echo $user_name ?></h1>
|
||||
<?php else : ?>
|
||||
<h1 class="page-title">Tous les Artisans</h1>
|
||||
<h1 class="page-title">Artisans non attribués avec action requise </h1>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
@ -19,26 +19,17 @@ $use_current_user = isset($_GET['use-current-user']) ? $_GET['use-current-user']
|
|||
Artisans de <?php echo $user_name ?>
|
||||
</a>
|
||||
<a href="<?php echo add_query_arg('use-current-user', '0', $_SERVER['REQUEST_URI']); ?>" class="button <?php echo !$use_current_user ? 'filter-active' : ''; ?> ">
|
||||
Tous les artisans
|
||||
Artisans non attribués
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?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' => $use_current_user,
|
||||
'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',
|
||||
'title' => 'En ligne > À actualiser',
|
||||
'use_current_user' => $use_current_user,
|
||||
'current_user_id' => $current_user->ID,
|
||||
'not_found_message' => 'Aucun artisan à actualiser',
|
||||
|
|
@ -48,40 +39,42 @@ $use_current_user = isset($_GET['use-current-user']) ? $_GET['use-current-user']
|
|||
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
||||
'status' => 'to_contact',
|
||||
'status_class' => 'to-contact',
|
||||
'title' => 'À contacter',
|
||||
'title' => 'Nouveau > À contacter',
|
||||
'use_current_user' => $use_current_user,
|
||||
'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' => $use_current_user,
|
||||
'current_user_id' => $current_user->ID,
|
||||
'not_found_message' => 'Aucun artisan en attente de retour',
|
||||
));
|
||||
if (!$use_current_user) {
|
||||
//===== 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' => $use_current_user,
|
||||
// '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' => $use_current_user,
|
||||
'current_user_id' => $current_user->ID,
|
||||
'not_found_message' => 'Aucun artisan en cours',
|
||||
));
|
||||
//===== 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' => $use_current_user,
|
||||
// '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' => $use_current_user,
|
||||
'current_user_id' => $current_user->ID,
|
||||
'not_found_message' => 'Aucun artisan OK',
|
||||
));
|
||||
//===== SECTION : OK =====//
|
||||
// get_template_part('template-parts/admin/artisans-section-group', null, array(
|
||||
// 'status' => 'ok',
|
||||
// 'status_class' => 'ok',
|
||||
// 'title' => 'OK',
|
||||
// 'use_current_user' => $use_current_user,
|
||||
// 'current_user_id' => $current_user->ID,
|
||||
// 'not_found_message' => 'Aucun artisan OK',
|
||||
// ));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user