_booking_data.php
1 year ago
_full_summary.php
1 year ago
_table_body.php
1 year ago
customize_table.php
4 months 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
33 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 | <?php wp_nonce_field( 'bookings_table_columns' ); ?> |
| 8 | <div class="latepoint-lightbox-heading"> |
| 9 | <h2><?php esc_html_e('Show Additional Columns', 'latepoint'); ?></h2> |
| 10 | </div> |
| 11 | <div class="latepoint-lightbox-content"> |
| 12 | <div class="table-fields-selector-w"> |
| 13 | <h3><span><?php esc_html_e('Customer Fields', 'latepoint'); ?></span><span></span></h3> |
| 14 | <div class="table-fields-selector-column"> |
| 15 | <?php foreach($available_columns['customer'] as $column_key => $column_label){ |
| 16 | $selected = isset($selected_columns['customer']) ? in_array($column_key, $selected_columns['customer']) : false; |
| 17 | echo OsFormHelper::toggler_field('selected_columns[customer]['.$column_key.']', $column_label, $selected); |
| 18 | } ?> |
| 19 | </div> |
| 20 | <h3><span><?php esc_html_e('Booking Fields', 'latepoint'); ?></span><span></span></h3> |
| 21 | <div class="table-fields-selector-column"> |
| 22 | <?php foreach($available_columns['booking'] as $column_key => $column_label){ |
| 23 | $selected = isset($selected_columns['booking']) ? in_array($column_key, $selected_columns['booking']) : false; |
| 24 | echo OsFormHelper::toggler_field('selected_columns[booking]['.$column_key.']', $column_label, $selected); |
| 25 | } ?> |
| 26 | </div> |
| 27 | </div> |
| 28 | </div> |
| 29 | <div class="latepoint-lightbox-footer"> |
| 30 | <button type="submit" class="latepoint-btn latepoint-btn-block latepoint-btn-lg latepoint-btn-outline"><?php esc_html_e('Save Table Columns', 'latepoint'); ?></button> |
| 31 | </div> |
| 32 | </form> |
| 33 |