forked from mirrors/easyappointments
Use the component helper for rendering the timezone dropdown in admins page.
This commit is contained in:
parent
8bc1f49613
commit
d2fb826f8f
2 changed files with 4 additions and 2 deletions
|
@ -70,7 +70,7 @@ class Admins extends EA_Controller {
|
||||||
'page_title' => lang('admins'),
|
'page_title' => lang('admins'),
|
||||||
'active_menu' => PRIV_USERS,
|
'active_menu' => PRIV_USERS,
|
||||||
'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(),
|
||||||
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
|
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,9 @@
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
<span class="text-danger">*</span>
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?= render_timezone_dropdown('id="timezone" class="form-control required"') ?>
|
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
||||||
|
'timezones' => vars('timezones')
|
||||||
|
]) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in a new issue