_form.php
1 year ago
action_test_preview.php
4 months ago
index.php
1 year ago
new_form.php
1 year ago
test_preview.php
1 year ago
action_test_preview.php
29 lines
| 1 | <?php |
| 2 | /* @var $action_settings_html string */ |
| 3 | /* @var $preview_html string */ |
| 4 | /* @var $action \LatePoint\Misc\ProcessAction */ |
| 5 | |
| 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | exit; // Exit if accessed directly |
| 8 | } |
| 9 | |
| 10 | |
| 11 | ?> |
| 12 | <div class="os-form-header"> |
| 13 | <h2><?php echo esc_html($action->get_nice_type_name().' '.__('Test', 'latepoint')); ?></h2> |
| 14 | </div> |
| 15 | <div class="action-settings-wrapper"> |
| 16 | <?php echo $action_settings_html; ?> |
| 17 | <?php wp_nonce_field( 'test_process_action' ); ?> |
| 18 | </div> |
| 19 | <div class="os-form-content"> |
| 20 | <div class="action-preview-wrapper type-<?php echo esc_attr($action->type); ?>"> |
| 21 | <?php echo $preview_html; ?> |
| 22 | </div> |
| 23 | </div> |
| 24 | <div class="os-form-buttons right-aligned"> |
| 25 | <button type="button" class="latepoint-btn latepoint-btn-primary latepoint-run-action-btn" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('processes', 'action_test_run'));?>"> |
| 26 | <i class="latepoint-icon latepoint-icon-play-circle"></i> |
| 27 | <span><?php esc_html_e('Run Now', 'latepoint'); ?></span> |
| 28 | </button> |
| 29 | </div> |