| 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-auto 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_EXECUTION_DATE')); ?> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
<?php |
| 31 |
if (!empty($data['historyLines'])) { |
| 32 |
foreach ($data['historyLines'] as $historyLine) { |
| 33 |
?> |
| 34 |
<div class="grid-x cell align-middle acym__listing__row"> |
| 35 |
<div class="grid-x medium-auto small-11 cell acym__listing__title__container"> |
| 36 |
<div class="grid-x cell medium-auto acym__listing__title cursor-pointer acym__scenario__performance__trigger__user" |
| 37 |
data-acym-user-id="<?php echo esc_attr($historyLine->user_id); ?>" |
| 38 |
data-acym-process-id="<?php echo esc_attr($historyLine->scenario_process_id); ?>"> |
| 39 |
<?php echo esc_html($historyLine->email); ?> |
| 40 |
</div> |
| 41 |
<div class="grid-x cell medium-4 acym__listing__title align-right"> |
| 42 |
<?php echo esc_html(acym_date($historyLine->date, 'Y-m-d H:i:s')); ?> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
<?php |
| 47 |
} |
| 48 |
} |
| 49 |
?> |
| 50 |
</div> |
| 51 |
<?php } |
| 52 |
$data['pagination']->display('scenario_performance_step_ajax', '', true); |
| 53 |
?> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
|