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) : ?>
|
<?php if ($use_current_user) : ?>
|
||||||
<h1 class="page-title">Artisans de <?php echo $user_name ?></h1>
|
<h1 class="page-title">Artisans de <?php echo $user_name ?></h1>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<h1 class="page-title">Tous les Artisans</h1>
|
<h1 class="page-title">Artisans non attribués avec action requise </h1>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
@ -19,26 +19,17 @@ $use_current_user = isset($_GET['use-current-user']) ? $_GET['use-current-user']
|
||||||
Artisans de <?php echo $user_name ?>
|
Artisans de <?php echo $user_name ?>
|
||||||
</a>
|
</a>
|
||||||
<a href="<?php echo add_query_arg('use-current-user', '0', $_SERVER['REQUEST_URI']); ?>" class="button <?php echo !$use_current_user ? 'filter-active' : ''; ?> ">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?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 =====//
|
//===== SECTION : À ACTUALISER =====//
|
||||||
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
||||||
'status' => 'to_actualize',
|
'status' => 'to_actualize',
|
||||||
'status_class' => 'to-actualize',
|
'status_class' => 'to-actualize',
|
||||||
'title' => 'À actualiser',
|
'title' => 'En ligne > À actualiser',
|
||||||
'use_current_user' => $use_current_user,
|
'use_current_user' => $use_current_user,
|
||||||
'current_user_id' => $current_user->ID,
|
'current_user_id' => $current_user->ID,
|
||||||
'not_found_message' => 'Aucun artisan à actualiser',
|
'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(
|
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
||||||
'status' => 'to_contact',
|
'status' => 'to_contact',
|
||||||
'status_class' => 'to-contact',
|
'status_class' => 'to-contact',
|
||||||
'title' => 'À contacter',
|
'title' => 'Nouveau > À contacter',
|
||||||
'use_current_user' => $use_current_user,
|
'use_current_user' => $use_current_user,
|
||||||
'current_user_id' => $current_user->ID,
|
'current_user_id' => $current_user->ID,
|
||||||
'not_found_message' => 'Aucun artisan à contacter',
|
'not_found_message' => 'Aucun artisan à contacter',
|
||||||
));
|
));
|
||||||
|
|
||||||
//===== SECTION : EN ATTENTE DE RETOUR =====//
|
if (!$use_current_user) {
|
||||||
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
//===== SECTION : EN ATTENTE DE RETOUR =====//
|
||||||
'status' => 'waiting_feedback',
|
// get_template_part('template-parts/admin/artisans-section-group', null, array(
|
||||||
'status_class' => 'waiting-feedback',
|
// 'status' => 'waiting_feedback',
|
||||||
'title' => 'En attente de retour',
|
// 'status_class' => 'waiting-feedback',
|
||||||
'use_current_user' => $use_current_user,
|
// 'title' => 'En attente de retour',
|
||||||
'current_user_id' => $current_user->ID,
|
// 'use_current_user' => $use_current_user,
|
||||||
'not_found_message' => 'Aucun artisan en attente de retour',
|
// 'current_user_id' => $current_user->ID,
|
||||||
));
|
// 'not_found_message' => 'Aucun artisan en attente de retour',
|
||||||
|
// ));
|
||||||
|
|
||||||
//===== SECTION : EN COURS =====//
|
//===== SECTION : EN COURS =====//
|
||||||
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
// get_template_part('template-parts/admin/artisans-section-group', null, array(
|
||||||
'status' => 'ongoing',
|
// 'status' => 'ongoing',
|
||||||
'status_class' => 'ongoing',
|
// 'status_class' => 'ongoing',
|
||||||
'title' => 'En cours',
|
// 'title' => 'En cours',
|
||||||
'use_current_user' => $use_current_user,
|
// 'use_current_user' => $use_current_user,
|
||||||
'current_user_id' => $current_user->ID,
|
// 'current_user_id' => $current_user->ID,
|
||||||
'not_found_message' => 'Aucun artisan en cours',
|
// 'not_found_message' => 'Aucun artisan en cours',
|
||||||
));
|
// ));
|
||||||
|
|
||||||
//===== SECTION : OK =====//
|
//===== SECTION : OK =====//
|
||||||
get_template_part('template-parts/admin/artisans-section-group', null, array(
|
// get_template_part('template-parts/admin/artisans-section-group', null, array(
|
||||||
'status' => 'ok',
|
// 'status' => 'ok',
|
||||||
'status_class' => 'ok',
|
// 'status_class' => 'ok',
|
||||||
'title' => 'OK',
|
// 'title' => 'OK',
|
||||||
'use_current_user' => $use_current_user,
|
// 'use_current_user' => $use_current_user,
|
||||||
'current_user_id' => $current_user->ID,
|
// 'current_user_id' => $current_user->ID,
|
||||||
'not_found_message' => 'Aucun artisan OK',
|
// 'not_found_message' => 'Aucun artisan OK',
|
||||||
));
|
// ));
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user