PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.5.2
LatePoint – Calendar Booking Plugin for Appointments and Events v5.5.2
5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / process_jobs / index.php
latepoint / lib / views / process_jobs Last commit date
_table_body.php 4 months ago index.php 9 months ago preview_job_action.php 1 year ago view_job_run_result.php 1 year ago
index.php
102 lines
1 <?php
2 /*
3 * Copyright (c) 2022 LatePoint LLC. All rights reserved.
4 */
5
6 /* @var $jobs OsProcessJobModel[] */
7 /* @var $showing_from int */
8 /* @var $showing_to int */
9 /* @var $total_records int */
10 /* @var $per_page int */
11 /* @var $total_pages int */
12 /* @var $current_page_number int */
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly
16 }
17
18
19 ?>
20 <?php if($jobs){ ?>
21
22 <div class="table-with-pagination-w has-scrollable-table">
23 <div class="os-pagination-w with-actions">
24
25 <div class="table-heading-w">
26 <div class="pagination-info"><?php echo esc_html__('Showing', 'latepoint'). ' <span class="os-pagination-from">'. esc_html($showing_from) . '</span>-<span class="os-pagination-to">'. esc_html($showing_to) .'</span> '.esc_html__('of', 'latepoint').' <span class="os-pagination-total">'. esc_html($total_records). '</span>'; ?></div>
27 </div>
28 </div>
29 <div class="os-jobs-list">
30 <div class="os-scrollable-table-w">
31 <div class="os-table-w os-table-compact">
32 <table class="os-table os-reload-on-booking-update os-scrollable-table os-table-align-top" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('process_jobs', 'index')); ?>">
33 <thead>
34 <tr>
35 <th><?php esc_html_e('Event', 'latepoint'); ?></th>
36 <th><?php esc_html_e('Workflow', 'latepoint'); ?></th>
37 <th><?php esc_html_e('Object ID', 'latepoint'); ?></th>
38 <th><?php esc_html_e('Actions', 'latepoint'); ?></th>
39 <th><?php esc_html_e('Status', 'latepoint'); ?></th>
40 <th><?php esc_html_e('Run Time (UTC)', 'latepoint'); ?></th>
41 <th><?php esc_html_e('Run Info', 'latepoint'); ?></th>
42 <th></th>
43 </tr>
44 <tr>
45 <th><?php echo OsFormHelper::select_field('filter[event_type]', false, \LatePoint\Misc\ProcessEvent::get_event_types_for_select(), '', ['placeholder' => __('All Types', 'latepoint'),'class' => 'os-table-filter']); ?></th>
46 <th><?php echo OsFormHelper::select_field('filter[process_id]', false, OsProcessesHelper::processes_list_for_select(), '', ['placeholder' => __('All Workflows', 'latepoint'),'class' => 'os-table-filter']); ?></th>
47 <th><?php echo OsFormHelper::text_field('filter[object_id]', false, '', ['placeholder' => __('Object ID', 'latepoint'), 'class' => 'os-table-filter', 'style' => 'width: 80px;']); ?></th>
48 <th></th>
49 <th><?php echo OsFormHelper::select_field('filter[status]', false, [LATEPOINT_JOB_STATUS_COMPLETED => __('Completed', 'latepoint'), LATEPOINT_JOB_STATUS_SCHEDULED => __('Scheduled', 'latepoint'), LATEPOINT_JOB_STATUS_CANCELLED => __('Cancelled', 'latepoint')], '', ['placeholder' => __('All Statuses', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
50 <th>
51 <div class="os-form-group">
52 <div class="os-date-range-picker os-table-filter-datepicker" data-can-be-cleared="yes" data-no-value-label="<?php esc_attr_e('Filter By Date', 'latepoint'); ?>" data-clear-btn-label="<?php esc_attr_e('Reset Date Filtering', 'latepoint'); ?>">
53 <span class="range-picker-value"><?php esc_html_e('Filter By Date', 'latepoint'); ?></span>
54 <i class="latepoint-icon latepoint-icon-chevron-down"></i>
55 <input type="hidden" class="os-table-filter os-datepicker-date-from" name="filter[to_run_after_utc_from]" value=""/>
56 <input type="hidden" class="os-table-filter os-datepicker-date-to" name="filter[to_run_after_utc_to]" value=""/>
57 </div>
58 </div>
59 </th>
60 <th></th>
61 <th></th>
62 </tr>
63 </thead>
64 <tbody>
65 <?php include('_table_body.php'); ?>
66 </tbody>
67 <tfoot>
68 <tr>
69 <th><?php esc_html_e('Event', 'latepoint'); ?></th>
70 <th><?php esc_html_e('Workflow', 'latepoint'); ?></th>
71 <th><?php esc_html_e('Object ID', 'latepoint'); ?></th>
72 <th><?php esc_html_e('Actions', 'latepoint'); ?></th>
73 <th><?php esc_html_e('Status', 'latepoint'); ?></th>
74 <th><?php esc_html_e('Run Time (UTC)', 'latepoint'); ?></th>
75 <th><?php esc_html_e('Run Info', 'latepoint'); ?></th>
76 <th></th>
77 </tr>
78 </tfoot>
79 </table>
80 </div>
81 </div>
82 </div>
83 <div class="os-pagination-w">
84 <div class="pagination-info"><?php echo esc_html__('Showing jobs', 'latepoint'). ' <span class="os-pagination-from">'. esc_html($showing_from) . '</span> '.esc_html__('to', 'latepoint').' <span class="os-pagination-to">'. esc_html($showing_to) .'</span> '.esc_html__('of', 'latepoint').' <span class="os-pagination-total">'. esc_html($total_records). '</span>'; ?></div>
85 <div class="pagination-page-select-w">
86 <label for="tablePaginationPageSelector"><?php esc_html_e('Page:', 'latepoint'); ?></label>
87 <select id="tablePaginationPageSelector" name="page" class="pagination-page-select">
88 <?php
89 for($i = 1; $i <= $total_pages; $i++){
90 $selected = ($current_page_number == $i) ? 'selected' : '';
91 echo '<option '.esc_attr($selected).'>'.esc_html($i).'</option>';
92 } ?>
93 </select>
94 </div>
95 </div>
96 </div>
97 <?php }else{ ?>
98 <div class="no-results-w">
99 <div class="icon-w"><i class="latepoint-icon latepoint-icon-credit-card"></i></div>
100 <h2><?php esc_html_e('No Jobs Found', 'latepoint'); ?></h2>
101 </div>
102 <?php } ?>