mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Use grouped_timezones consistently across the app controllers
This commit is contained in:
parent
669aa2f6c6
commit
efc532664a
11 changed files with 12 additions and 11 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_grouped_array(),
|
||||
'grouped_timezones' => $this->timezones->to_grouped_array(),
|
||||
]);
|
||||
|
||||
$this->load->view('pages/account');
|
||||
|
|
|
@ -70,7 +70,7 @@ class Admins extends EA_Controller {
|
|||
'page_title' => lang('admins'),
|
||||
'active_menu' => PRIV_USERS,
|
||||
'user_display_name' => $this->accounts->get_user_display_name($user_id),
|
||||
'timezones' => $this->timezones->to_grouped_array(),
|
||||
'grouped_timezones' => $this->timezones->to_grouped_array(),
|
||||
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
|
||||
]);
|
||||
|
||||
|
|
|
@ -92,7 +92,8 @@ class Customers extends EA_Controller {
|
|||
'page_title' => lang('customers'),
|
||||
'active_menu' => PRIV_CUSTOMERS,
|
||||
'user_display_name' => $this->accounts->get_user_display_name($user_id),
|
||||
'timezones' => $this->timezones->to_grouped_array(),
|
||||
'timezones' => $this->timezones->to_array(),
|
||||
'grouped_timezones' => $this->timezones->to_grouped_array(),
|
||||
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
|
||||
'require_first_name' => $require_first_name,
|
||||
'require_last_name' => $require_last_name,
|
||||
|
|
|
@ -83,7 +83,7 @@ class Providers extends EA_Controller {
|
|||
'page_title' => lang('providers'),
|
||||
'active_menu' => PRIV_USERS,
|
||||
'user_display_name' => $this->accounts->get_user_display_name($user_id),
|
||||
'timezones' => $this->timezones->to_grouped_array(),
|
||||
'grouped_timezones' => $this->timezones->to_grouped_array(),
|
||||
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
|
||||
'services' => $this->services_model->get(),
|
||||
]);
|
||||
|
|
|
@ -83,7 +83,7 @@ class Secretaries extends EA_Controller {
|
|||
'page_title' => lang('secretaries'),
|
||||
'active_menu' => PRIV_USERS,
|
||||
'user_display_name' => $this->accounts->get_user_display_name($user_id),
|
||||
'timezones' => $this->timezones->to_grouped_array(),
|
||||
'grouped_timezones' => $this->timezones->to_grouped_array(),
|
||||
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
|
||||
'providers' => $this->providers_model->get(),
|
||||
]);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<label for="select-timezone"><?= lang('timezone') ?></label>
|
||||
<?php component('timezone_dropdown', [
|
||||
'attributes' => 'id="select-timezone" class="form-control" value="UTC"',
|
||||
'timezones' => $grouped_timezones
|
||||
'grouped_timezones' => $grouped_timezones
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
</label>
|
||||
<?php component('timezone_dropdown', [
|
||||
'attributes' => 'id="timezone" class="form-control required"',
|
||||
'timezones' => vars('timezones')
|
||||
'grouped_timezones' => vars('grouped_timezones')
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@
|
|||
</label>
|
||||
<?php component('timezone_dropdown', [
|
||||
'attributes' => 'id="timezone" class="form-control required" disabled',
|
||||
'timezones' => vars('timezones')
|
||||
'grouped_timezones' => vars('grouped_timezones')
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
</label>
|
||||
<?php component('timezone_dropdown', [
|
||||
'attributes' => 'id="timezone" class="form-control required" disabled',
|
||||
'timezones' => vars('timezones')
|
||||
'grouped_timezones' => vars('grouped_timezones')
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -214,7 +214,7 @@
|
|||
</label>
|
||||
<?php component('timezone_dropdown', [
|
||||
'attributes' => 'id="timezone" class="form-control required" disabled',
|
||||
'timezones' => vars('timezones')
|
||||
'grouped_timezones' => vars('grouped_timezones')
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@
|
|||
</label>
|
||||
<?php component('timezone_dropdown', [
|
||||
'attributes' => 'id="timezone" class="form-control required" disabled',
|
||||
'timezones' => vars('timezones')
|
||||
'grouped_timezones' => vars('grouped_timezones')
|
||||
]) ?>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue