mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-25 16:13:17 +03:00
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'),
|
||||
'active_menu' => PRIV_SYSTEM_SETTINGS,
|
||||
'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());
|
||||
|
|
|
@ -136,7 +136,9 @@
|
|||
<label class="form-label" for="timezone">
|
||||
<?= lang('timezone') ?>
|
||||
</label>
|
||||
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
|
||||
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
||||
'timezones' => vars('timezones')
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
<div class="form-check form-switch">
|
||||
|
|
Loading…
Reference in a new issue