function es_render_subscription_admin_for($status, $users, $event_id) { ?> <h3 class="title"><?php echo es_admin_status_to_sentence($status); ?> </h3> <?php if (count($users[$status]) > 0) { ?> <table class="participants-table"> <thead> <tr> <th class="participant-name">Nom</th> <th class="participant-email">Email</th> <th class="participant-note">Note</th> <th class="participant-actions">Actions</th> </tr> </thead> <tbody> <?php foreach ($users[$status] as $user) { ?> <tr> <td> <?php echo $user->first_name . ' ' . $user->last_name; ?> </td> <td> <?php echo $user->user_email; ?> </td> <td class="user-note-container"> <textarea name="user-note" placeholder="Pense-bête pour ce participant" class="user-note" data-event="<?php echo $event_id; ?> " data-user="******"><?php echo $user->reminder; ?> </textarea> </td> <td class="actions"> <?php if ($status == "pending") { es_render_action_forms($user, ["onboard", "onlist", "rejected"]); } else { if ($status == "onboard") { es_render_action_forms($user, ["onlist", "rejected"]); } else { if ($status == "onlist") { es_render_action_forms($user, ["onboard", "rejected"]); } else { if ($status == "rejected") { es_render_action_forms($user, ["onboard", "onlist"]); } } } } ?> </td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <div class="no-participant"> Il n'y a pas d'utilisateur <?php echo strtolower(es_status_to_sentence($status)); ?> </div> <?php } }
<?php } else { ?> <span class="none">Aucune inscription n'a encore été confirmée.</span> <?php } ?> </div> </div> <div class="user-status"> <?php if (!$event_passed && $current_user->ID != 0 && $users_events->user_subscribed($current_user, $event)) { ?> Votre statut pour cette session: <span class='status'><?php echo es_status_to_sentence($users_events->user_status($current_user, $event)); ?> </span> <?php } ?> </div> <div class="user-subscribe"> <?php if ($event_passed) { ?> <div class="btn-book-event-big"> <span class="btn btn-huge"><?php tribe_the_next_event_link('Inscrivez vous à la prochaine session !'); ?>