forked from mirrors/easyappointments
Use the component helper for rendering the timezone dropdown in account page.
This commit is contained in:
parent
d2fb826f8f
commit
49585d388d
2 changed files with 4 additions and 2 deletions
|
@ -71,7 +71,7 @@ class Account extends EA_Controller {
|
||||||
'page_title' => lang('settings'),
|
'page_title' => lang('settings'),
|
||||||
'active_menu' => PRIV_SYSTEM_SETTINGS,
|
'active_menu' => PRIV_SYSTEM_SETTINGS,
|
||||||
'user_display_name' => $this->accounts->get_user_display_name($user_id),
|
'user_display_name' => $this->accounts->get_user_display_name($user_id),
|
||||||
'timezones' => $this->timezones->to_array(),
|
'timezones' => $this->timezones->to_grouped_array(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->load->view('pages/account', html_vars());
|
$this->load->view('pages/account', html_vars());
|
||||||
|
|
|
@ -136,7 +136,9 @@
|
||||||
<label class="form-label" for="timezone">
|
<label class="form-label" for="timezone">
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
</label>
|
</label>
|
||||||
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
|
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
||||||
|
'timezones' => vars('timezones')
|
||||||
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-check form-switch">
|
<div class="form-check form-switch">
|
||||||
|
|
Loading…
Reference in a new issue