_agents.php
1 year ago
_complete.php
1 year ago
_default_agent.php
4 months ago
_form_agent.php
1 year ago
_form_service.php
5 months ago
_intro.php
1 year ago
_list_agents.php
1 year ago
_list_services.php
1 year ago
_personal_info.php
2 months ago
_services.php
4 months ago
_settings.php
1 year ago
_work_periods.php
4 months ago
_form_agent.php
42 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | <div class="os-form-w"> |
| 7 | <form action="" data-os-output-target=".os-wizard-step-content-i" data-os-pass-response="yes" data-os-after-call="latepoint_wizard_item_editing_cancelled" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('wizard', 'save_agent')); ?>"> |
| 8 | <div class="os-row"> |
| 9 | <div class="os-col-6"> |
| 10 | <?php echo OsFormHelper::text_field('agent[first_name]', __('First Name', 'latepoint'), $agent->first_name); ?> |
| 11 | </div> |
| 12 | <div class="os-col-6"> |
| 13 | <?php echo OsFormHelper::text_field('agent[last_name]', __('Last Name', 'latepoint'), $agent->last_name); ?> |
| 14 | </div> |
| 15 | </div> |
| 16 | <div class="os-row"> |
| 17 | <div class="os-col-lg-6"> |
| 18 | <?php echo OsFormHelper::text_field('agent[email]', __('Email Address', 'latepoint'), $agent->email); ?> |
| 19 | </div> |
| 20 | <div class="os-col-lg-6"> |
| 21 | <?php echo OsFormHelper::phone_number_field('agent[phone]', __('Phone Number', 'latepoint'), $agent->phone); ?> |
| 22 | </div> |
| 23 | </div> |
| 24 | <?php echo OsFormHelper::media_uploader_field('agent[avatar_image_id]', 0, __('Upload Agent\'s Photo', 'latepoint'), __('Remove Agent\'s Photo', 'latepoint'), $agent->avatar_image_id, false, false, true); ?> |
| 25 | <?php if(!$agent->is_new_record()) echo OsFormHelper::hidden_field('agent[id]', $agent->id); ?> |
| 26 | |
| 27 | <div class="side-by-side-buttons"> |
| 28 | <?php if($agents){ ?> |
| 29 | <button type="button" data-os-after-call="latepoint_wizard_item_editing_cancelled" data-os-pass-response="yes" data-os-output-target=".os-wizard-step-content" data-os-params="current_step_code=agents" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('wizard', 'load_step')); ?>" class="wizard-finished-editing-trigger latepoint-btn latepoint-btn-lg latepoint-btn-secondary"> |
| 30 | <i class="latepoint-icon latepoint-icon-arrow-left"></i> |
| 31 | <span><?php esc_html_e('Cancel', 'latepoint'); ?></span> |
| 32 | </button> |
| 33 | <?php }else{ ?> |
| 34 | <a href="#" data-route-name="<?php echo esc_attr(OsRouterHelper::build_route_name('wizard', 'prev_step')); ?>" class="latepoint-btn latepoint-btn-lg latepoint-btn-secondary os-wizard-trigger-prev-btn"><i class="latepoint-icon latepoint-icon-arrow-left"></i> <span><?php esc_html_e('Back', 'latepoint'); ?></span></a> |
| 35 | <?php } ?> |
| 36 | <button type="submit" class="latepoint-btn latepoint-btn-lg latepoint-btn-primary"> |
| 37 | <span><?php echo ($agent->is_new_record()) ? esc_html__('Save', 'latepoint') : esc_html__('Save', 'latepoint'); ?></span> |
| 38 | <i class="latepoint-icon latepoint-icon-check"></i> |
| 39 | </button> |
| 40 | </div> |
| 41 | </form> |
| 42 | </div> |