2021-11-10 10:32:46 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @var string $first_weekday
|
|
|
|
* @var array $system_settings
|
|
|
|
* @var array $user_settings
|
|
|
|
* @var string $date_format
|
|
|
|
* @var string $time_format
|
|
|
|
* @var string $base_url
|
|
|
|
* @var string $timezones
|
|
|
|
* @var string $user_id
|
|
|
|
* @var string $user_email
|
|
|
|
* @var string $timezone
|
|
|
|
* @var string $role_slug
|
|
|
|
* @var array $privileges
|
|
|
|
*/
|
|
|
|
?>
|
2021-11-15 11:49:08 +03:00
|
|
|
|
|
|
|
<?php extend('layouts/backend/backend_layout') ?>
|
|
|
|
|
|
|
|
<?php section('content') ?>
|
|
|
|
|
2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/js/backend_settings_system.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_settings_user.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_settings.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/working_plan.js') ?>"></script>
|
2021-11-08 12:57:03 +03:00
|
|
|
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/vendor/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
2017-09-05 15:58:34 +03:00
|
|
|
<script>
|
2015-10-05 00:50:44 +03:00
|
|
|
var GlobalVariables = {
|
2020-09-07 13:34:52 +03:00
|
|
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
|
|
|
baseUrl: <?= json_encode($base_url) ?>,
|
|
|
|
dateFormat: <?= json_encode($date_format) ?>,
|
|
|
|
firstWeekday: <?= json_encode($first_weekday); ?>,
|
|
|
|
timeFormat: <?= json_encode($time_format) ?>,
|
|
|
|
userSlug: <?= json_encode($role_slug) ?>,
|
|
|
|
timezones: <?= json_encode($timezones) ?>,
|
|
|
|
settings: {
|
|
|
|
system: <?= json_encode($system_settings) ?>,
|
|
|
|
user: <?= json_encode($user_settings) ?>
|
2015-10-05 00:50:44 +03:00
|
|
|
},
|
2020-09-07 13:34:52 +03:00
|
|
|
user: {
|
|
|
|
id: <?= $user_id ?>,
|
|
|
|
email: <?= json_encode($user_email) ?>,
|
|
|
|
timezone: <?= json_encode($timezone) ?>,
|
|
|
|
role_slug: <?= json_encode($role_slug) ?>,
|
|
|
|
privileges: <?= json_encode($privileges) ?>
|
2015-10-05 00:50:44 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-09-07 14:40:59 +03:00
|
|
|
$(function () {
|
2015-10-05 00:50:44 +03:00
|
|
|
BackendSettings.initialize(true);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2020-09-03 14:35:58 +03:00
|
|
|
<div id="settings-page" class="container-fluid backend-page">
|
2020-09-03 14:48:58 +03:00
|
|
|
<ul class="nav nav-pills">
|
2016-07-11 23:59:38 +03:00
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#general" data-toggle="tab"><?= lang('general') ?></a>
|
2017-09-23 04:42:14 +03:00
|
|
|
</li>
|
2016-07-11 23:59:38 +03:00
|
|
|
<?php endif ?>
|
2021-05-29 21:58:08 +03:00
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#client-form" data-toggle="tab"><?= lang('client_form') ?></a>
|
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
2016-07-11 23:59:38 +03:00
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#business-logic" data-toggle="tab"><?= lang('business_logic') ?></a>
|
2017-09-23 04:42:14 +03:00
|
|
|
</li>
|
2016-07-11 23:59:38 +03:00
|
|
|
<?php endif ?>
|
2018-06-24 16:46:58 +03:00
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE): ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#legal-contents" data-toggle="tab"><?= lang('legal_contents') ?></a>
|
2018-06-24 16:46:58 +03:00
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
2016-07-11 23:59:38 +03:00
|
|
|
<?php if ($privileges[PRIV_USER_SETTINGS]['view'] == TRUE): ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#current-user" data-toggle="tab"><?= lang('current_user') ?></a>
|
2017-09-23 04:42:14 +03:00
|
|
|
</li>
|
2016-07-11 23:59:38 +03:00
|
|
|
<?php endif ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#about-app" data-toggle="tab"><?= lang('about_app') ?></a>
|
2017-09-21 15:49:13 +03:00
|
|
|
</li>
|
2015-10-05 00:50:44 +03:00
|
|
|
</ul>
|
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="tab-content">
|
|
|
|
|
|
|
|
<!-- GENERAL TAB -->
|
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'd-none' ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane active <?= $hidden ?>" id="general">
|
2017-09-21 15:49:13 +03:00
|
|
|
<form>
|
|
|
|
<fieldset>
|
2020-05-05 20:35:33 +03:00
|
|
|
<legend class="border-bottom mb-4">
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('general_settings') ?>
|
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
2020-08-31 13:23:10 +03:00
|
|
|
<button type="button" class="save-settings btn btn-primary btn-sm mb-2"
|
2020-10-22 12:29:09 +03:00
|
|
|
data-tippy-content="<?= lang('save') ?>">
|
2020-12-08 01:10:49 +03:00
|
|
|
<i class="fas fa-check-square mr-2"></i>
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<?php endif ?>
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<div class="wrapper row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="col-12 col-sm-6">
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="company-name">
|
|
|
|
<?= lang('company_name') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="company-name" data-field="company_name" class="required form-control">
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="form-text text-muted">
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('company_name_hint') ?>
|
|
|
|
</span>
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="company-email">
|
|
|
|
<?= lang('company_email') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="company-email" data-field="company_email" class="required form-control">
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="form-text text-muted">
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('company_email_hint') ?>
|
|
|
|
</span>
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="company-link">
|
|
|
|
<?= lang('company_link') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="company-link" data-field="company_link" class="required form-control">
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="form-text text-muted">
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('company_link_hint') ?>
|
|
|
|
</span>
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="date-format">
|
|
|
|
<?= lang('date_format') ?>
|
|
|
|
</label>
|
|
|
|
<select class="form-control" id="date-format" data-field="date_format">
|
|
|
|
<option value="DMY">DMY</option>
|
|
|
|
<option value="MDY">MDY</option>
|
|
|
|
<option value="YMD">YMD</option>
|
|
|
|
</select>
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="form-text text-muted">
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('date_format_hint') ?>
|
|
|
|
</span>
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2018-03-06 14:20:47 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="time-format">
|
|
|
|
<?= lang('time_format') ?>
|
|
|
|
</label>
|
|
|
|
<select class="form-control" id="time-format" data-field="time_format">
|
2018-03-07 00:50:31 +03:00
|
|
|
<option value="<?= TIME_FORMAT_REGULAR ?>">H:MM AM/PM</option>
|
|
|
|
<option value="<?= TIME_FORMAT_MILITARY ?>">HH:MM</option>
|
2018-03-06 14:20:47 +03:00
|
|
|
</select>
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="form-text text-muted">
|
2018-03-06 14:20:47 +03:00
|
|
|
<?= lang('time_format_hint') ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-06-29 01:41:17 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="first-weekday">
|
|
|
|
<?= lang('first_weekday') ?>
|
|
|
|
</label>
|
|
|
|
<select class="form-control" id="first-weekday" data-field="first_weekday">
|
|
|
|
<option value="sunday"><?= lang('sunday') ?></option>
|
|
|
|
<option value="monday"><?= lang('monday') ?></option>
|
|
|
|
<option value="tuesday"><?= lang('tuesday') ?></option>
|
|
|
|
<option value="wednesday"><?= lang('wednesday') ?></option>
|
|
|
|
<option value="thursday"><?= lang('thursday') ?></option>
|
|
|
|
<option value="friday"><?= lang('friday') ?></option>
|
|
|
|
<option value="saturday"><?= lang('saturday') ?></option>
|
|
|
|
</select>
|
2021-08-24 16:01:44 +03:00
|
|
|
<span class="form-text text-muted">
|
2018-06-29 01:41:17 +03:00
|
|
|
<?= lang('first_weekday_hint') ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-03-27 13:02:06 +03:00
|
|
|
</div>
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="col-12 col-sm-6">
|
2020-03-27 13:02:06 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="google-analytics-code">
|
|
|
|
Google Analytics ID</label>
|
2021-03-30 22:02:53 +03:00
|
|
|
<input id="google-analytics-code" placeholder="UA-XXXXXXXX-XX or G-XXXXXXXXXX"
|
2020-03-27 13:02:06 +03:00
|
|
|
data-field="google_analytics_code" class="form-control">
|
2021-08-24 16:01:44 +03:00
|
|
|
<span class="form-text text-muted">
|
2020-03-27 13:02:06 +03:00
|
|
|
<?= lang('google_analytics_code_hint') ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2020-09-07 11:36:36 +03:00
|
|
|
<label for="api-token">API Token</label>
|
|
|
|
<input id="api-token" data-field="api_token" class="form-control">
|
2021-08-24 16:01:44 +03:00
|
|
|
<span class="form-text text-muted">
|
2020-03-27 13:02:06 +03:00
|
|
|
<?= lang('api_token_hint') ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2021-05-30 14:27:39 +03:00
|
|
|
|
2015-12-30 13:34:18 +02:00
|
|
|
</div>
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
2017-09-21 15:49:13 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2021-05-29 21:58:08 +03:00
|
|
|
<!-- CLIENT FORM TAB -->
|
|
|
|
|
|
|
|
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'd-none' ?>
|
|
|
|
<div class="tab-pane <?= $hidden ?>" id="client-form">
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<legend class="border-bottom mb-4">
|
|
|
|
<?= lang('client_form') ?>
|
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
|
|
|
<button type="button" class="save-settings btn btn-primary btn-sm mb-2"
|
|
|
|
data-tippy-content="<?= lang('save') ?>">
|
|
|
|
<i class="fas fa-check-square mr-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<?php endif ?>
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<div class="wrapper row">
|
2021-10-20 23:18:40 +03:00
|
|
|
<div class="col-12 col-sm-3">
|
2021-05-29 21:58:08 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="show-phone-number"><?= lang('phone_number') ?></label>
|
2021-05-30 14:27:39 +03:00
|
|
|
<button id="show-phone-number" data-field="show_phone_number" type="button" class="hide-toggle form-control form-sub-button">
|
2021-11-10 10:32:46 +03:00
|
|
|
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
|
|
|
|
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
|
2021-05-30 14:27:39 +03:00
|
|
|
</button>
|
2021-05-29 21:58:08 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="show-address"><?= lang('address') ?></label>
|
2021-05-30 14:27:39 +03:00
|
|
|
<button id="show-address" data-field="show_address" type="button" class="hide-toggle form-control form-sub-button">
|
2021-11-10 10:32:46 +03:00
|
|
|
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
|
|
|
|
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
|
2021-05-30 14:27:39 +03:00
|
|
|
</button>
|
2021-05-29 21:58:08 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="show-city"><?= lang('city') ?></label>
|
2021-05-30 14:27:39 +03:00
|
|
|
<button id="show-city" data-field="show_city" type="button" class="hide-toggle form-control form-sub-button">
|
2021-11-10 10:32:46 +03:00
|
|
|
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
|
|
|
|
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
|
2021-05-30 14:27:39 +03:00
|
|
|
</button>
|
2021-05-29 21:58:08 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="show-zip-code"><?= lang('zip_code') ?></label>
|
2021-05-30 14:27:39 +03:00
|
|
|
<button id="show-zip-code" data-field="show_zip_code" type="button" class="hide-toggle form-control form-sub-button">
|
2021-11-10 10:32:46 +03:00
|
|
|
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
|
|
|
|
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
|
2021-05-30 14:27:39 +03:00
|
|
|
</button>
|
2021-05-29 21:58:08 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="show-notes"><?= lang('notes') ?></label>
|
2021-05-30 14:27:39 +03:00
|
|
|
<button id="show-notes" data-field="show_notes" type="button" class="hide-toggle form-control form-sub-button">
|
2021-11-10 10:32:46 +03:00
|
|
|
<span class="hide-toggle-visible hidden"><img src="<?= base_url('assets/img/eye.svg') ?>"/> <?= lang('visible') ?></span>
|
|
|
|
<span class="hide-toggle-hidden"><img src="<?= base_url('assets/img/eye-hidden.svg') ?>"/> <?= lang('hidden') ?></span>
|
2021-05-30 14:27:39 +03:00
|
|
|
</button>
|
2021-05-29 21:58:08 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-10-20 23:18:40 +03:00
|
|
|
<div class="col-12 col-sm-9">
|
2021-05-30 14:27:39 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="customer-notifications">
|
|
|
|
<label class="custom-control-label" for="customer-notifications">
|
|
|
|
<?= lang('customer_notifications') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-05-29 21:58:08 +03:00
|
|
|
<span class="form-text text-muted">
|
2021-05-30 14:27:39 +03:00
|
|
|
<?= lang('customer_notifications_hint') ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="require-captcha">
|
|
|
|
<label class="custom-control-label" for="require-captcha">
|
|
|
|
CAPTCHA
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<span class="form-text text-muted">
|
|
|
|
<?= lang('require_captcha_hint') ?>
|
2021-05-29 21:58:08 +03:00
|
|
|
</span>
|
|
|
|
</div>
|
2021-05-30 14:27:39 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="require-phone-number">
|
|
|
|
<label class="custom-control-label" for="require-phone-number">
|
|
|
|
<?= lang('phone_number') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-08-24 16:01:44 +03:00
|
|
|
<span class="form-text text-muted">
|
2021-05-30 14:27:39 +03:00
|
|
|
<?= lang('require_phone_number_hint') ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="display-any-provider">
|
|
|
|
<label class="custom-control-label" for="display-any-provider">
|
|
|
|
<?= lang('any_provider') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-08-24 16:01:44 +03:00
|
|
|
<span class="form-text text-muted">
|
2021-05-30 14:27:39 +03:00
|
|
|
<?= lang('display_any_provider_hint') ?>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-29 21:58:08 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<!-- BUSINESS LOGIC TAB -->
|
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'd-none' ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane <?= $hidden ?>" id="business-logic">
|
2017-09-21 15:49:13 +03:00
|
|
|
<form>
|
|
|
|
<fieldset>
|
2020-05-05 20:35:33 +03:00
|
|
|
<legend class="border-bottom mb-4">
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('business_logic') ?>
|
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
2020-08-31 13:23:10 +03:00
|
|
|
<button type="button" class="save-settings btn btn-primary btn-sm mb-2"
|
2020-10-22 12:29:09 +03:00
|
|
|
data-tippy-content="<?= lang('save') ?>">
|
2020-12-08 01:10:49 +03:00
|
|
|
<i class="fas fa-check-square mr-2"></i>
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<?php endif ?>
|
|
|
|
</legend>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="col-12 col-sm-7 working-plan-wrapper">
|
2017-09-21 15:49:13 +03:00
|
|
|
<h4><?= lang('working_plan') ?></h4>
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="form-text text-muted mb-4">
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('edit_working_plan_hint') ?>
|
|
|
|
</span>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<table class="working-plan table table-striped">
|
|
|
|
<thead>
|
2020-09-07 14:40:59 +03:00
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
</tr>
|
2017-09-21 15:49:13 +03:00
|
|
|
</thead>
|
2018-07-06 02:21:24 +03:00
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
2017-09-21 15:49:13 +03:00
|
|
|
</table>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-03-29 20:25:23 +03:00
|
|
|
<div class="text-right">
|
2020-09-30 14:32:42 +03:00
|
|
|
<button class="btn btn-outline-secondary" id="apply-global-working-plan" type="button">
|
2020-06-29 16:23:51 +03:00
|
|
|
<i class="fas fa-check"></i>
|
2020-03-29 20:25:23 +03:00
|
|
|
<?= lang('apply_to_all_providers') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<br>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<h4><?= lang('book_advance_timeout') ?></h4>
|
|
|
|
<div class="form-group">
|
2020-09-07 14:40:59 +03:00
|
|
|
<label for="book-advance-timeout"
|
|
|
|
class="control-label"><?= lang('timeout_minutes') ?></label>
|
|
|
|
<input id="book-advance-timeout" data-field="book_advance_timeout" class="form-control"
|
|
|
|
type="number" min="15">
|
2020-05-05 20:35:33 +03:00
|
|
|
<p class="form-text text-muted">
|
2017-11-28 17:42:12 +03:00
|
|
|
<?= lang('book_advance_timeout_hint') ?>
|
|
|
|
</p>
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
</div>
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="col-12 col-sm-5 breaks-wrapper">
|
2017-09-21 15:49:13 +03:00
|
|
|
<h4><?= lang('breaks') ?></h4>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<span class="form-text text-muted">
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('edit_breaks_hint') ?>
|
|
|
|
</span>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="mt-2">
|
2020-08-31 13:23:10 +03:00
|
|
|
<button type="button" class="add-break btn btn-primary">
|
2020-12-08 01:10:49 +03:00
|
|
|
<i class="fas fa-plus-square"></i>
|
2020-09-07 14:40:59 +03:00
|
|
|
<?= lang('add_break'); ?>
|
2017-09-21 15:49:13 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<br>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<table class="breaks table table-striped">
|
|
|
|
<thead>
|
2020-09-07 14:40:59 +03:00
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
<th><?= lang('actions') ?></th>
|
|
|
|
</tr>
|
2017-09-21 15:49:13 +03:00
|
|
|
</thead>
|
2017-09-23 04:42:14 +03:00
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
2017-09-21 15:49:13 +03:00
|
|
|
</table>
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
</div>
|
2017-09-21 15:49:13 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2018-06-24 16:46:58 +03:00
|
|
|
<!-- LEGAL CONTENTS TAB -->
|
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE) ? '' : 'd-none' ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane <?= $hidden ?>" id="legal-contents">
|
2018-06-24 16:46:58 +03:00
|
|
|
<form>
|
|
|
|
<fieldset>
|
2020-05-05 20:35:33 +03:00
|
|
|
<legend class="border-bottom mb-4">
|
2018-06-24 16:46:58 +03:00
|
|
|
<?= lang('legal_contents') ?>
|
|
|
|
<?php if ($privileges[PRIV_SYSTEM_SETTINGS]['edit'] == TRUE): ?>
|
2020-08-31 13:23:10 +03:00
|
|
|
<button type="button" class="save-settings btn btn-primary btn-sm mb-2"
|
2020-10-22 12:29:09 +03:00
|
|
|
data-tippy-content="<?= lang('save') ?>">
|
2020-12-08 01:10:49 +03:00
|
|
|
<i class="fas fa-check-square mr-2"></i>
|
2018-06-24 16:46:58 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<?php endif ?>
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="col-12 col-sm-11 col-md-10 col-lg-9">
|
2018-06-24 16:46:58 +03:00
|
|
|
<h4><?= lang('cookie_notice') ?></h4>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="custom-control custom-checkbox">
|
|
|
|
<input class="custom-control-input" type="checkbox" id="display-cookie-notice">
|
|
|
|
<label class="custom-control-label" for="display-cookie-notice">
|
2018-06-24 16:46:58 +03:00
|
|
|
<?= lang('display_cookie_notice') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label><?= lang('cookie_notice_content') ?></label>
|
|
|
|
<textarea id="cookie-notice-content" cols="30" rows="10" class="form-group"></textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<h4><?= lang('terms_and_conditions') ?></h4>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control custom-checkbox">
|
2020-09-07 14:40:59 +03:00
|
|
|
<input class="custom-control-input" type="checkbox"
|
|
|
|
id="display-terms-and-conditions">
|
2020-05-05 20:35:33 +03:00
|
|
|
<label class="custom-control-label" for="display-terms-and-conditions">
|
|
|
|
<?= lang('display_terms_and_conditions') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2018-06-24 16:46:58 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label><?= lang('terms_and_conditions_content') ?></label>
|
2020-09-07 14:40:59 +03:00
|
|
|
<textarea id="terms-and-conditions-content" cols="30" rows="10"
|
|
|
|
class="form-group"></textarea>
|
2018-06-24 16:46:58 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4><?= lang('privacy_policy') ?></h4>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="custom-control custom-checkbox">
|
|
|
|
<input class="custom-control-input" type="checkbox" id="display-privacy-policy">
|
|
|
|
<label class="custom-control-label" for="display-privacy-policy">
|
|
|
|
<?= lang('display_privacy_policy') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2018-06-24 16:46:58 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label><?= lang('privacy_policy_content') ?></label>
|
|
|
|
<textarea id="privacy-policy-content" cols="30" rows="10" class="form-group"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<!-- CURRENT USER TAB -->
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<?php $hidden = ($privileges[PRIV_USER_SETTINGS]['view'] == TRUE) ? '' : 'd-none' ?>
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane <?= $hidden ?>" id="current-user">
|
2017-09-21 15:49:13 +03:00
|
|
|
<form>
|
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<fieldset class="col-12 col-sm-6 personal-info-wrapper">
|
2020-09-07 14:40:59 +03:00
|
|
|
<legend class="border-bottom mb-4">
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('personal_information') ?>
|
|
|
|
<?php if ($privileges[PRIV_USER_SETTINGS]['edit'] == TRUE): ?>
|
2020-08-31 13:23:10 +03:00
|
|
|
<button type="button" class="save-settings btn btn-primary btn-sm mb-2"
|
2020-10-22 12:29:09 +03:00
|
|
|
data-tippy-content="<?= lang('save') ?>">
|
2020-12-08 01:10:49 +03:00
|
|
|
<i class="fas fa-check-square mr-2"></i>
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<?php endif ?>
|
|
|
|
</legend>
|
|
|
|
|
2017-09-23 04:42:14 +03:00
|
|
|
<input type="hidden" id="user-id">
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="first-name">
|
|
|
|
<?= lang('first_name') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="first-name" class="form-control required">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="last-name">
|
|
|
|
<?= lang('last_name') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="last-name" class="form-control required">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="email">
|
|
|
|
<?= lang('email') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="email" class="form-control required">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="phone-number">
|
|
|
|
<?= lang('phone_number') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="phone-number" class="form-control required">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="mobile-number">
|
|
|
|
<?= lang('mobile_number') ?>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="mobile-number" class="form-control">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="address">
|
|
|
|
<?= lang('address') ?>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="address" class="form-control">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="city">
|
|
|
|
<?= lang('city') ?>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="city" class="form-control">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="state">
|
|
|
|
<?= lang('state') ?>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="state" class="form-control">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="zip-code">
|
|
|
|
<?= lang('zip_code') ?>
|
|
|
|
</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="zip-code" class="form-control">
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="notes">
|
|
|
|
<?= lang('notes') ?>
|
|
|
|
</label>
|
2017-09-21 15:49:13 +03:00
|
|
|
<textarea id="notes" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-08-31 17:02:54 +03:00
|
|
|
<fieldset class="col-12 col-sm-6 miscellaneous-wrapper">
|
2021-10-04 10:27:50 +03:00
|
|
|
<legend class="border-bottom mb-4">
|
|
|
|
<?= lang('system_login') ?>
|
|
|
|
</legend>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-09-07 14:40:59 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="username">
|
|
|
|
<?= lang('username') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2020-09-07 14:40:59 +03:00
|
|
|
<input id="username" class="form-control required">
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-09-07 14:40:59 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="password">
|
|
|
|
<?= lang('password') ?>
|
|
|
|
</label>
|
2020-09-07 14:40:59 +03:00
|
|
|
<input type="password" id="password" class="form-control" autocomplete="new-password">
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-09-07 14:40:59 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="retype-password">
|
|
|
|
<?= lang('retype_password') ?>
|
|
|
|
</label>
|
2020-09-07 14:40:59 +03:00
|
|
|
<input type="password" id="retype-password" class="form-control"
|
|
|
|
autocomplete="new-password">
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2020-09-07 14:40:59 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="calendar-view"><?= lang('calendar') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2020-09-07 14:40:59 +03:00
|
|
|
<select id="calendar-view" class="form-control required">
|
|
|
|
<option value="default">Default</option>
|
|
|
|
<option value="table">Table</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2016-07-19 00:46:15 +03:00
|
|
|
|
2020-09-07 14:40:59 +03:00
|
|
|
<div class="form-group">
|
2021-10-04 10:27:50 +03:00
|
|
|
<label for="timezone">
|
|
|
|
<?= lang('timezone') ?>
|
|
|
|
</label>
|
2020-09-07 14:40:59 +03:00
|
|
|
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
|
|
|
|
</div>
|
2020-03-29 16:12:44 +03:00
|
|
|
|
2020-09-07 14:51:52 +03:00
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="user-notifications">
|
|
|
|
<label class="custom-control-label" for="user-notifications">
|
|
|
|
<?= lang('receive_notifications') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2020-09-07 14:40:59 +03:00
|
|
|
</fieldset>
|
2017-09-21 15:49:13 +03:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-10-05 00:50:44 +03:00
|
|
|
|
2017-09-23 04:42:14 +03:00
|
|
|
<!-- ABOUT TAB -->
|
2017-09-21 15:49:13 +03:00
|
|
|
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane" id="about-app">
|
2017-09-21 15:49:13 +03:00
|
|
|
<h3>Easy!Appointments</h3>
|
2017-09-23 04:42:14 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<p>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('about_app_info') ?>
|
2017-09-21 15:49:13 +03:00
|
|
|
</p>
|
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="current-version card card-body bg-light border-light mb-3">
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('current_version') ?>
|
2020-04-22 22:48:56 +03:00
|
|
|
<?= config('version') ?>
|
|
|
|
<?php if (config('release_label')): ?>
|
|
|
|
- <?= config('release_label') ?>
|
2017-09-21 15:49:13 +03:00
|
|
|
<?php endif ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3><?= lang('support') ?></h3>
|
|
|
|
<p>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('about_app_support') ?>
|
2017-09-21 15:49:13 +03:00
|
|
|
|
|
|
|
<br><br>
|
|
|
|
|
2020-03-27 12:31:07 +03:00
|
|
|
<a href="https://easyappointments.org">
|
2017-09-21 15:49:13 +03:00
|
|
|
<?= lang('official_website') ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
<a href="https://groups.google.com/forum/#!forum/easy-appointments">
|
|
|
|
<?= lang('support_group') ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
<a href="https://github.com/alextselegidis/easyappointments/issues">
|
|
|
|
<?= lang('project_issues') ?>
|
|
|
|
</a>
|
|
|
|
|
|
2020-12-11 10:55:54 +03:00
|
|
|
<a href="https://facebook.com/easyappts">
|
2017-09-21 15:49:13 +03:00
|
|
|
Facebook
|
|
|
|
</a>
|
|
|
|
|
|
2020-09-07 13:23:26 +03:00
|
|
|
<a href="https://twitter.com/easyappts">
|
2017-09-21 15:49:13 +03:00
|
|
|
Twitter
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<h3><?= lang('license') ?></h3>
|
2017-09-23 04:42:14 +03:00
|
|
|
|
2017-09-21 15:49:13 +03:00
|
|
|
<p>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('about_app_license') ?>
|
2017-09-21 15:49:13 +03:00
|
|
|
<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>
|
|
|
|
</p>
|
2015-10-05 00:50:44 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-15 11:49:08 +03:00
|
|
|
|
|
|
|
<?php section('content') ?>
|