_business_variables.php
1 year ago
_template_variables.php
1 year ago
access_not_allowed.php
1 year ago
print_booking_info.php
1 year ago
print_order_info.php
1 year ago
pro_feature.php
1 year ago
process_reschedule_request.php
1 year ago
request_reschedule_calendar.php
1 year ago
request_reschedule_calendar.php
54 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (c) 2023 LatePoint LLC. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /** @var $booking OsBookingModel */ |
| 7 | /** @var $calendar_start_date OsWpDateTime */ |
| 8 | /** @var $timeshift_minutes string */ |
| 9 | /** @var $timezone_name integer */ |
| 10 | /** @var $key string */ |
| 11 | ?> |
| 12 | <?php |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; // Exit if accessed directly |
| 15 | } |
| 16 | ?> |
| 17 | <div class="latepoint-lightbox-heading"> |
| 18 | <h2><?php esc_html_e('Select date and time', 'latepoint'); ?></h2> |
| 19 | </div> |
| 20 | <div class="latepoint-lightbox-content"> |
| 21 | <div class="reschedule-calendar-datepicker"> |
| 22 | <div class="os-dates-w"> |
| 23 | <?php OsCalendarHelper::generate_calendar_for_datepicker_step(\LatePoint\Misc\BookingRequest::create_from_booking_model($booking), $calendar_start_date, ['timezone_name' => $timezone_name, 'exclude_booking_ids' => [$booking->id]]); ?> |
| 24 | </div> |
| 25 | <div |
| 26 | class="time-selector-w <?php echo OsStepsHelper::hide_unavailable_slots() ? 'hide-not-available-slots' : ''; ?> <?php echo 'time-system-' . esc_attr(OsTimeHelper::get_time_system()); ?> <?php echo (OsSettingsHelper::is_on('show_booking_end_time')) ? 'with-end-time' : 'without-end-time'; ?> style-<?php echo esc_attr(OsStepsHelper::get_time_pick_style()); ?>"> |
| 27 | <div class="times-header"> |
| 28 | <div class="th-line"></div> |
| 29 | <div class="times-header-label"> |
| 30 | <?php esc_html_e('Pick a slot for', 'latepoint'); ?> <span></span> |
| 31 | <?php do_action('latepoint_step_datepicker_appointment_time_header_label', $booking, $timezone_name); ?> |
| 32 | </div> |
| 33 | <div class="th-line"></div> |
| 34 | </div> |
| 35 | <div class="os-times-w"> |
| 36 | <div class="timeslots"></div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <?php |
| 40 | echo OsFormHelper::hidden_field('booking_id', $booking->id, ['class' => 'latepoint_booking_id', 'skip_id' => true]); |
| 41 | if(!empty($key)) echo OsFormHelper::hidden_field('key', $key, ['class' => 'latepoint_manage_booking_key', 'skip_id' => true]); |
| 42 | |
| 43 | echo OsFormHelper::hidden_field('booking[start_date]', $booking->start_date, ['class' => 'latepoint_start_date', 'skip_id' => true]); |
| 44 | echo OsFormHelper::hidden_field('booking[start_time]', $booking->start_time, ['class' => 'latepoint_start_time', 'skip_id' => true]); |
| 45 | echo OsFormHelper::hidden_field('timeshift_minutes', $timeshift_minutes, ['class' => 'latepoint_timeshift_minutes', 'skip_id' => true]); |
| 46 | echo OsFormHelper::hidden_field('timezone_name', $timezone_name, ['class' => 'latepoint_timezone_name', 'skip_id' => true]); |
| 47 | ?> |
| 48 | </div> |
| 49 | </div> |
| 50 | <div class="latepoint-lightbox-footer reschedule-confirmation-button-wrapper" style="display: none;"> |
| 51 | <a href="#" |
| 52 | data-route-name="<?php echo esc_attr(OsRouterHelper::build_route_name((empty($key) ? 'customer_cabinet' : 'manage_booking_by_key'), 'process_reschedule_request')); ?>" |
| 53 | class="latepoint-btn latepoint-btn-primary latepoint-btn-block latepoint-request-reschedule-trigger"><?php esc_html_e('Reschedule', 'latepoint'); ?></a> |
| 54 | </div> |