mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-08 17:12:25 +03:00
Added quick toggle view button in backend calendar page.
This commit is contained in:
parent
397ba1dfcf
commit
4635af5094
27 changed files with 71 additions and 2 deletions
|
@ -90,6 +90,12 @@ class Backend extends CI_Controller {
|
|||
$this->load->model('secretaries_model');
|
||||
$this->load->model('timezones_model');
|
||||
|
||||
$calendar_view_query_param = $this->input->get('view');
|
||||
|
||||
$user_id = $this->session->userdata('user_id');
|
||||
|
||||
$user = $this->user_model->get_user($user_id);
|
||||
|
||||
$view['base_url'] = $this->config->item('base_url');
|
||||
$view['user_display_name'] = $this->user_model->get_user_display_name($this->session->userdata('user_id'));
|
||||
$view['active_menu'] = PRIV_APPOINTMENTS;
|
||||
|
@ -101,8 +107,7 @@ class Backend extends CI_Controller {
|
|||
$view['available_providers'] = $this->providers_model->get_available_providers();
|
||||
$view['available_services'] = $this->services_model->get_available_services();
|
||||
$view['customers'] = $this->customers_model->get_batch();
|
||||
$user = $this->user_model->get_user($this->session->userdata('user_id'));
|
||||
$view['calendar_view'] = $user['settings']['calendar_view'];
|
||||
$view['calendar_view'] = !empty($calendar_view_query_param) ? $calendar_view_query_param : $user['settings']['calendar_view'];
|
||||
$view['timezones'] = $this->timezones_model->to_array();
|
||||
$this->set_user_data($view);
|
||||
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -315,6 +315,8 @@ $lang['working_plans_got_updated'] = 'All the working plans got updated.';
|
|||
$lang['apply_to_all_providers'] = 'Apply To All Providers';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
$lang['api_token_hint'] = 'Set a secret token in order to enable the token based authentication of the Easy!Appointments API.';
|
||||
$lang['timezone'] = 'Timezone';
|
||||
$lang['overwrite_existing_working_plans'] = 'This will overwrite the existing provider working plans, are you sure that you want to continue?';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will get an additional option that allows customers to book without specifying a provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -317,3 +317,5 @@ $lang['display_any_provider'] = 'Display Any Provider Option';
|
|||
$lang['display_any_provider_hint'] = 'The booking page will display an additional option that allows customers to book without selecting a particular provider.';
|
||||
$lang['load_more'] = 'Load More';
|
||||
$lang['list'] = 'List';
|
||||
$lang['default'] = 'Default';
|
||||
$lang['table'] = 'Table';
|
||||
|
|
|
@ -89,6 +89,20 @@
|
|||
<?= lang('reload') ?>
|
||||
</button>
|
||||
|
||||
<?php if($calendar_view === 'default'): ?>
|
||||
<a class="btn btn-default" href="<?= site_url('backend?view=table') ?>"
|
||||
title="<?= lang('table') ?>">
|
||||
<span class="glyphicon glyphicon-list-alt"></span>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($calendar_view === 'table'): ?>
|
||||
<a class="btn btn-default" href="<?= site_url('backend') ?>"
|
||||
title="<?= lang('default') ?>">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
</a>
|
||||
<?php endif ?>
|
||||
|
||||
<button id="toggle-fullscreen" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-fullscreen"></span>
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue