_booking_data.php
1 year ago
_full_summary.php
1 year ago
_table_body.php
1 year ago
customize_table.php
1 year ago
grouped_bookings_quick_view.php
1 year ago
index.php
1 year ago
pending_approval.php
1 year ago
quick_availability.php
1 year ago
view_booking_log.php
1 year ago
customize_table.php
32 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | <form class="latepoint-lightbox-wrapper-form" action="" data-os-success-action="reload" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('settings', 'save_columns_for_bookings_table')); ?>"> |
| 7 | <div class="latepoint-lightbox-heading"> |
| 8 | <h2><?php esc_html_e('Show Additional Columns', 'latepoint'); ?></h2> |
| 9 | </div> |
| 10 | <div class="latepoint-lightbox-content"> |
| 11 | <div class="table-fields-selector-w"> |
| 12 | <h3><span><?php esc_html_e('Customer Fields', 'latepoint'); ?></span><span></span></h3> |
| 13 | <div class="table-fields-selector-column"> |
| 14 | <?php foreach($available_columns['customer'] as $column_key => $column_label){ |
| 15 | $selected = isset($selected_columns['customer']) ? in_array($column_key, $selected_columns['customer']) : false; |
| 16 | echo OsFormHelper::toggler_field('selected_columns[customer]['.$column_key.']', $column_label, $selected); |
| 17 | } ?> |
| 18 | </div> |
| 19 | <h3><span><?php esc_html_e('Booking Fields', 'latepoint'); ?></span><span></span></h3> |
| 20 | <div class="table-fields-selector-column"> |
| 21 | <?php foreach($available_columns['booking'] as $column_key => $column_label){ |
| 22 | $selected = isset($selected_columns['booking']) ? in_array($column_key, $selected_columns['booking']) : false; |
| 23 | echo OsFormHelper::toggler_field('selected_columns[booking]['.$column_key.']', $column_label, $selected); |
| 24 | } ?> |
| 25 | </div> |
| 26 | </div> |
| 27 | </div> |
| 28 | <div class="latepoint-lightbox-footer"> |
| 29 | <button type="submit" class="latepoint-btn latepoint-btn-block latepoint-btn-lg latepoint-btn-outline"><?php esc_html_e('Save Table Columns', 'latepoint'); ?></button> |
| 30 | </div> |
| 31 | </form> |
| 32 |