| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 |
defined('ABSPATH') || die('Restricted Access'); |
| 4 |
?> |
| 5 |
<div id="acym__scenario__performance__step"> |
| 6 |
<?php include acym_getPartial('scenarios', 'performances_step_header'); ?> |
| 7 |
<div class="acym__scenario__edit__right__panel__separator"></div> |
| 8 |
<div id="acym__scenario__performance__listing"> |
| 9 |
<?php if ($data['isEmpty']) { |
| 10 |
echo '<p>'.esc_html(acym_translation('ACYM_NO_USER_TRIGGERED_SCENARIO')).'</p>'; |
| 11 |
} else { ?> |
| 12 |
<input |
| 13 |
type="text" |
| 14 |
name="search" |
| 15 |
placeholder="<?php echo esc_attr(acym_translation('ACYM_SEARCH')); ?>" |
| 16 |
id="acym__scenario__performance__step__search" |
| 17 |
value="<?php echo esc_attr($data['search']); ?>" |
| 18 |
> |
| 19 |
<div class="grid-x acym__listing acym__listing__no-checkbox"> |
| 20 |
<div class="grid-x cell acym__listing__header"> |
| 21 |
<div class="grid-x medium-auto small-11 cell acym__listing__header__title__container"> |
| 22 |
<div class="cell medium-4 acym__listing__header__title"> |
| 23 |
<?php echo esc_html(acym_translation('ACYM_EMAIL')); ?> |
| 24 |
</div> |
| 25 |
<div class="cell medium-4 acym__listing__header__title text-center"> |
| 26 |
<?php echo esc_html(acym_translation('ACYM_START_DATE')); ?> |
| 27 |
</div> |
| 28 |
<div class="cell medium-4 acym__listing__header__title text-center"> |
| 29 |
<?php echo esc_html(acym_translation('ACYM_END_DATE')); ?> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
</div> |
| 33 |
<?php |
| 34 |
if (!empty($data['usersProcess'])) { |
| 35 |
foreach ($data['usersProcess'] as $userProcess) { |
| 36 |
?> |
| 37 |
<div class="grid-x cell align-middle acym__listing__row"> |
| 38 |
<div class="grid-x medium-auto small-11 cell acym__listing__title__container"> |
| 39 |
<div class="grid-x cell medium-4 acym__listing__title cursor-pointer acym__scenario__performance__trigger__user" |
| 40 |
data-acym-user-id="<?php echo esc_attr($userProcess->user_id); ?>" |
| 41 |
data-acym-process-id="<?php echo esc_attr($userProcess->id); ?>"> |
| 42 |
<?php echo esc_html($userProcess->email); ?> |
| 43 |
</div> |
| 44 |
<div class="grid-x cell medium-4 acym__listing__title align-center"> |
| 45 |
<?php echo esc_html(acym_date($userProcess->start_at, 'Y-m-d H:i:s')); ?> |
| 46 |
</div> |
| 47 |
<div class="grid-x cell medium-4 acym__listing__title align-center"> |
| 48 |
<?php echo empty($userProcess->end_at) ? '-' : esc_html(acym_date($userProcess->end_at, 'Y-m-d H:i:s')); ?> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
<?php |
| 53 |
} |
| 54 |
} |
| 55 |
?> |
| 56 |
</div> |
| 57 |
<?php } |
| 58 |
$data['pagination']->display('scenario_performance_trigger_ajax', '', true); |
| 59 |
?> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
|