forked from mirrors/easyappointments
Replaced the render function with the new component function
This commit is contained in:
parent
5fb2fcdf71
commit
ca8f3524ef
2 changed files with 9 additions and 1 deletions
|
@ -81,6 +81,7 @@ class Appointments extends EA_Controller {
|
|||
$privacy_policy_content = setting('privacy_policy_content');
|
||||
$display_any_provider = setting('display_any_provider');
|
||||
$timezones = $this->timezones->to_array();
|
||||
$grouped_timezones = $this->timezones->to_grouped_array();
|
||||
|
||||
// Remove the data that are not needed inside the $available_providers array.
|
||||
foreach ($available_providers as &$available_provider)
|
||||
|
@ -180,6 +181,7 @@ class Appointments extends EA_Controller {
|
|||
'display_privacy_policy' => $display_privacy_policy,
|
||||
'privacy_policy_content' => $privacy_policy_content,
|
||||
'timezones' => $timezones,
|
||||
'grouped_timezones' => $grouped_timezones,
|
||||
'display_any_provider' => $display_any_provider,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
<?php
|
||||
/**
|
||||
* @var array $grouped_timezones
|
||||
*/
|
||||
?>
|
||||
|
||||
<div id="wizard-frame-2" class="wizard-frame" style="display:none;">
|
||||
<div class="frame-container">
|
||||
|
||||
|
@ -12,7 +18,7 @@
|
|||
<div id="select-time">
|
||||
<div class="form-group">
|
||||
<label for="select-timezone"><?= lang('timezone') ?></label>
|
||||
<?= render_timezone_dropdown('id="select-timezone" class="form-control" value="UTC"'); ?>
|
||||
<?php component('timezone_dropdown','id="select-timezone" class="form-control" value="UTC"', ['timezones' => $grouped_timezones]) ?>
|
||||
</div>
|
||||
|
||||
<div id="available-hours"></div>
|
||||
|
|
Loading…
Reference in a new issue