2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/js/backend_users_admins.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_users_providers.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_users_secretaries.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_users.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/working_plan.js') ?>"></script>
|
2020-03-27 12:29:38 +03:00
|
|
|
<script src="<?= asset_url('assets/ext/jquery-ui/jquery-ui-timepicker-addon.min.js') ?>"></script>
|
2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/ext/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
|
2017-09-05 15:58:34 +03:00
|
|
|
<script>
|
2015-10-05 01:31:06 +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) ?>,
|
|
|
|
admins: <?= json_encode($admins) ?>,
|
|
|
|
providers: <?= json_encode($providers) ?>,
|
|
|
|
secretaries: <?= json_encode($secretaries) ?>,
|
|
|
|
services: <?= json_encode($services) ?>,
|
|
|
|
timezones: <?= json_encode($timezones) ?>,
|
|
|
|
workingPlan: <?= json_encode(json_decode($working_plan)) ?>,
|
2020-09-23 12:24:42 +03:00
|
|
|
customavailabilityperiods: <?= json_encode(json_decode($custom_availability_periods)) ?>,
|
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 01:31:06 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
$(function () {
|
2015-10-05 01:31:06 +03:00
|
|
|
BackendUsers.initialize(true);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2020-09-03 14:35:58 +03:00
|
|
|
<div class="container-fluid backend-page" id="users-page">
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- PAGE NAVIGATION -->
|
2020-09-03 14:48:58 +03:00
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" href="#providers" data-toggle="tab">
|
|
|
|
<?= lang('providers') ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#secretaries" data-toggle="tab">
|
|
|
|
<?= lang('secretaries') ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#admins" data-toggle="tab">
|
|
|
|
<?= lang('admins') ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
2015-10-05 01:31:06 +03:00
|
|
|
</ul>
|
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="tab-content">
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<!-- PROVIDERS TAB -->
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane active" id="providers">
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div id="filter-providers" class="filter-records column col-12 col-md-5">
|
2020-05-05 20:35:33 +03:00
|
|
|
<form class="mb-4">
|
2017-10-31 13:52:25 +03:00
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="key form-control">
|
|
|
|
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<div>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button class="filter btn btn-outline-secondary" type="submit" title="<?= lang('filter') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="fas fa-search"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button class="clear btn btn-outline-secondary" type="button" title="<?= lang('clear') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="fas fa-redo-alt"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2017-10-31 13:52:25 +03:00
|
|
|
</span>
|
|
|
|
</div>
|
2017-09-22 15:47:54 +03:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<h3><?= lang('providers') ?></h3>
|
|
|
|
<div class="results"></div>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="record-details column col-12 col-md-7">
|
2020-09-07 14:12:52 +03:00
|
|
|
<div class="float-md-left mb-4 mr-4">
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="add-edit-delete-group btn-group">
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="add-provider" class="btn btn-primary">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
<?= lang('add') ?>
|
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="edit-provider" class="btn btn-outline-secondary" disabled="disabled">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-edit mr-2"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
<?= lang('edit') ?>
|
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="delete-provider" class="btn btn-outline-secondary" disabled="disabled">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-trash-alt mr-2"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
<?= lang('delete') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="save-provider" class="btn btn-primary">
|
2020-09-08 09:58:10 +03:00
|
|
|
<i class="far fa-check-square mr-2"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="cancel-provider" class="btn btn-outline-secondary">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="fas fa-ban mr-2"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<ul class="nav nav-pills switch-view">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link active" href="#details" data-toggle="tab">
|
|
|
|
<?= lang('details') ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#working-plan" data-toggle="tab">
|
|
|
|
<?= lang('working_plan') ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
// This form message is outside the details view, so that it can be
|
|
|
|
// visible when the user has working plan view active.
|
|
|
|
?>
|
2017-09-22 15:47:54 +03:00
|
|
|
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<div class="tab-content">
|
|
|
|
<div class="details-view tab-pane fade show active clearfix" id="details">
|
|
|
|
<h3><?= lang('details') ?></h3>
|
|
|
|
|
|
|
|
<input type="hidden" id="provider-id" class="record-id">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="provider-details col-12 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-first-name"><?= lang('first_name') ?> *</label>
|
|
|
|
<input id="provider-first-name" class="form-control required" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-last-name"><?= lang('last_name') ?> *</label>
|
|
|
|
<input id="provider-last-name" class="form-control required" maxlength="512">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-email"><?= lang('email') ?> *</label>
|
|
|
|
<input id="provider-email" class="form-control required" max="512">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-phone-number"><?= lang('phone_number') ?> *</label>
|
|
|
|
<input id="provider-phone-number" class="form-control required" max="128">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-mobile-number"><?= lang('mobile_number') ?></label>
|
|
|
|
<input id="provider-mobile-number" class="form-control" maxlength="128">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-address"><?= lang('address') ?></label>
|
|
|
|
<input id="provider-address" class="form-control" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-city"><?= lang('city') ?></label>
|
|
|
|
<input id="provider-city" class="form-control" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-state"><?= lang('state') ?></label>
|
|
|
|
<input id="provider-state" class="form-control" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-zip-code"><?= lang('zip_code') ?></label>
|
|
|
|
<input id="provider-zip-code" class="form-control" maxlength="64">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-notes"><?= lang('notes') ?></label>
|
|
|
|
<textarea id="provider-notes" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
2020-09-07 14:40:59 +03:00
|
|
|
|
|
|
|
<p class="text-danger">
|
|
|
|
<small><?= lang('fields_are_required') ?></small>
|
|
|
|
</p>
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2020-09-07 14:12:52 +03:00
|
|
|
<div class="provider-settings col-12 col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-username"><?= lang('username') ?> *</label>
|
|
|
|
<input id="provider-username" class="form-control required" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-password"><?= lang('password') ?> *</label>
|
|
|
|
<input type="password" id="provider-password" class="form-control required"
|
|
|
|
maxlength="512" autocomplete="new-password">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-password-confirm"><?= lang('retype_password') ?> *</label>
|
|
|
|
<input type="password" id="provider-password-confirm"
|
|
|
|
class="form-control required" maxlength="512"
|
|
|
|
autocomplete="new-password">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-calendar-view"><?= lang('calendar') ?> *</label>
|
|
|
|
<select id="provider-calendar-view" class="form-control required">
|
|
|
|
<option value="default">Default</option>
|
|
|
|
<option value="table">Table</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="provider-timezone"><?= lang('timezone') ?></label>
|
|
|
|
<?= render_timezone_dropdown('id="provider-timezone" class="form-control"') ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="provider-notifications">
|
|
|
|
<label class="custom-control-label" for="provider-notifications">
|
|
|
|
<?= lang('receive_notifications') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<h4><?= lang('services') ?></h4>
|
|
|
|
<div id="provider-services" class="card card-body bg-light border-light"></div>
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<div class="working-plan-view tab-pane fade clearfix" id="working-plan">
|
|
|
|
<h3><?= lang('working_plan') ?></h3>
|
|
|
|
<button id="reset-working-plan" class="btn btn-primary"
|
|
|
|
title="<?= lang('reset_working_plan') ?>">
|
2020-09-07 14:33:02 +03:00
|
|
|
<i class="fas fa-redo-alt mr-2"></i>
|
2020-09-07 14:12:52 +03:00
|
|
|
<?= lang('reset_plan') ?></button>
|
|
|
|
<table class="working-plan table table-striped mt-2">
|
|
|
|
<thead>
|
2017-09-23 04:42:14 +03:00
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
</tr>
|
2020-09-07 14:12:52 +03:00
|
|
|
</thead>
|
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
|
|
|
</table>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<br>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<h3><?= lang('breaks') ?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<span class="help-block">
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('add_breaks_during_each_day') ?>
|
|
|
|
</span>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<div>
|
|
|
|
<button type="button" class="add-break btn btn-primary">
|
2020-09-07 14:33:02 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2020-09-07 14:12:52 +03:00
|
|
|
<?= lang('add_break') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<br>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<table class="breaks table table-striped">
|
|
|
|
<thead>
|
2017-09-23 04:42:14 +03:00
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
<th><?= lang('actions') ?></th>
|
|
|
|
</tr>
|
2020-09-07 14:12:52 +03:00
|
|
|
</thead>
|
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
|
|
|
</table>
|
2018-04-12 16:03:46 +03:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<br>
|
2018-04-12 16:03:46 +03:00
|
|
|
|
2020-09-23 12:24:42 +03:00
|
|
|
<h3><?= lang('custom_availability_periods') ?></h3>
|
2018-04-12 16:03:46 +03:00
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<span class="help-block">
|
2020-09-23 12:24:42 +03:00
|
|
|
<?= lang('add_custom_availability_periods_during_each_day') ?>
|
2018-04-12 16:03:46 +03:00
|
|
|
</span>
|
|
|
|
|
2020-09-07 14:12:52 +03:00
|
|
|
<div>
|
2020-09-23 12:24:42 +03:00
|
|
|
<button type="button" class="add-custom-availability-periods btn btn-primary mr-2">
|
2020-09-07 14:12:52 +03:00
|
|
|
<i class="far fa-plus-square"></i>
|
2020-09-23 12:24:42 +03:00
|
|
|
<?= lang('add_custom_availability_period') ?>
|
2020-09-07 14:12:52 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
2018-04-12 16:03:46 +03:00
|
|
|
|
2020-09-23 12:24:42 +03:00
|
|
|
<table class="custom-availability-periods table table-striped">
|
2020-09-07 14:12:52 +03:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
<th><?= lang('actions') ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<!-- SECRETARIES TAB -->
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane" id="secretaries">
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div id="filter-secretaries" class="filter-records column col-12 col-md-5">
|
2020-05-05 20:35:33 +03:00
|
|
|
<form class="mb-4">
|
2017-10-31 13:52:25 +03:00
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="key form-control">
|
|
|
|
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<div>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button class="filter btn btn-outline-secondary" type="submit" title="<?= lang('filter') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="fas fa-search"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button class="clear btn btn-outline-secondary" type="button" title="<?= lang('clear') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="fas fa-redo-alt"></i>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
2017-10-31 13:52:25 +03:00
|
|
|
</span>
|
|
|
|
</div>
|
2017-09-22 15:47:54 +03:00
|
|
|
</form>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-23 04:42:14 +03:00
|
|
|
<h3><?= lang('secretaries') ?></h3>
|
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="results"></div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="record-details column col-12 col-md-7">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="btn-toolbar mb-4">
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="add-edit-delete-group btn-group">
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="add-secretary" class="btn btn-primary">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('add') ?>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="edit-secretary" class="btn btn-outline-secondary" disabled="disabled">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-edit mr-2"></i>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('edit') ?>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="delete-secretary" class="btn btn-outline-secondary" disabled="disabled">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-trash-alt mr-2"></i>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('delete') ?>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="save-secretary" class="btn btn-primary">
|
2020-09-08 09:58:10 +03:00
|
|
|
<i class="far fa-check-square mr-2"></i>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('save') ?>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="cancel-secretary" class="btn btn-outline-secondary">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="fas fa-ban mr-2"></i>
|
2017-09-23 04:42:14 +03:00
|
|
|
<?= lang('cancel') ?>
|
2017-09-22 15:47:54 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
|
2017-09-23 04:42:14 +03:00
|
|
|
<h3><?= lang('details') ?></h3>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-23 04:42:14 +03:00
|
|
|
<input type="hidden" id="secretary-id" class="record-id">
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="secretary-details col-12 col-md-6">
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-first-name"><?= lang('first_name') ?> *</label>
|
|
|
|
<input id="secretary-first-name" class="form-control required" maxlength="256">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-last-name"><?= lang('last_name') ?> *</label>
|
|
|
|
<input id="secretary-last-name" class="form-control required" maxlength="512">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-email"><?= lang('email') ?> *</label>
|
|
|
|
<input id="secretary-email" class="form-control required" maxlength="512">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-phone-number"><?= lang('phone_number') ?> *</label>
|
|
|
|
<input id="secretary-phone-number" class="form-control required" maxlength="128">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-mobile-number"><?= lang('mobile_number') ?></label>
|
|
|
|
<input id="secretary-mobile-number" class="form-control" maxlength="128">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-address"><?= lang('address') ?></label>
|
|
|
|
<input id="secretary-address" class="form-control" maxlength="256">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-city"><?= lang('city') ?></label>
|
|
|
|
<input id="secretary-city" class="form-control" maxlength="256">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-state"><?= lang('state') ?></label>
|
|
|
|
<input id="secretary-state" class="form-control" maxlength="128">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-zip-code"><?= lang('zip_code') ?></label>
|
|
|
|
<input id="secretary-zip-code" class="form-control" maxlength="64">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-notes"><?= lang('notes') ?></label>
|
2017-09-22 15:47:54 +03:00
|
|
|
<textarea id="secretary-notes" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
2020-09-07 14:40:59 +03:00
|
|
|
|
|
|
|
<p class="text-danger">
|
|
|
|
<small><?= lang('fields_are_required') ?></small>
|
|
|
|
</p>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="secretary-settings col-12 col-md-6">
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-username"><?= lang('username') ?> *</label>
|
|
|
|
<input id="secretary-username" class="form-control required" maxlength="256">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-password"><?= lang('password') ?> *</label>
|
2020-09-07 14:12:52 +03:00
|
|
|
<input type="password" id="secretary-password" class="form-control required"
|
|
|
|
maxlength="512" autocomplete="new-password">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
2017-09-23 04:42:14 +03:00
|
|
|
<label for="secretary-password-confirm"><?= lang('retype_password') ?> *</label>
|
2020-09-07 14:12:52 +03:00
|
|
|
<input type="password" id="secretary-password-confirm" class="form-control required"
|
|
|
|
maxlength="512" autocomplete="new-password">
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="secretary-calendar-view"><?= lang('calendar') ?> *</label>
|
|
|
|
<select id="secretary-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-03-29 17:34:05 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="secretary-timezone"><?= lang('timezone') ?></label>
|
|
|
|
<?= render_timezone_dropdown('id="secretary-timezone" class="form-control"') ?>
|
|
|
|
</div>
|
|
|
|
|
2017-09-22 15:47:54 +03:00
|
|
|
<br>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2020-09-07 11:36:36 +03:00
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="secretary-notifications">
|
|
|
|
<label class="custom-control-label" for="secretary-notifications">
|
|
|
|
<?= lang('receive_notifications') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2020-09-07 11:36:36 +03:00
|
|
|
<br>
|
2015-12-14 00:43:18 +02:00
|
|
|
|
2017-09-23 04:42:14 +03:00
|
|
|
<h4><?= lang('providers') ?></h4>
|
2020-05-05 20:35:33 +03:00
|
|
|
<div id="secretary-providers" class="card card-body bg-light border-light"></div>
|
2017-09-22 15:47:54 +03:00
|
|
|
</div>
|
2015-12-14 00:43:18 +02:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-20 16:04:05 +03:00
|
|
|
|
|
|
|
<!-- ADMINS TAB -->
|
|
|
|
|
2020-09-03 14:48:58 +03:00
|
|
|
<div class="tab-pane" id="admins">
|
2017-11-20 16:04:05 +03:00
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div id="filter-admins" class="filter-records column col-12 col-md-5">
|
2020-05-05 20:35:33 +03:00
|
|
|
<form class="mb-4">
|
2017-11-20 16:04:05 +03:00
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="key form-control">
|
|
|
|
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<div>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button class="filter btn btn-outline-secondary" type="submit" title="<?= lang('filter') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="fas fa-search"></i>
|
2017-11-20 16:04:05 +03:00
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button class="clear btn btn-outline-secondary" type="button" title="<?= lang('clear') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="fas fa-redo-alt"></i>
|
2017-11-20 16:04:05 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<h3><?= lang('admins') ?></h3>
|
|
|
|
|
|
|
|
<div class="results"></div>
|
|
|
|
</div>
|
|
|
|
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="record-details column col-12 col-md-7">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="btn-toolbar mb-4">
|
2017-11-20 16:04:05 +03:00
|
|
|
<div class="add-edit-delete-group btn-group">
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="add-admin" class="btn btn-primary">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2017-11-20 16:04:05 +03:00
|
|
|
<?= lang('add') ?>
|
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="edit-admin" class="btn btn-outline-secondary" disabled="disabled">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-edit mr-2"></i>
|
2017-11-20 16:04:05 +03:00
|
|
|
<?= lang('edit') ?>
|
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="delete-admin" class="btn btn-outline-secondary" disabled="disabled">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-trash-alt mr-2"></i>
|
2017-11-20 16:04:05 +03:00
|
|
|
<?= lang('delete') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="save-admin" class="btn btn-primary">
|
2020-09-08 09:58:10 +03:00
|
|
|
<i class="far fa-check-square mr-2"></i>
|
2017-11-20 16:04:05 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2020-09-28 15:24:29 +03:00
|
|
|
<button id="cancel-admin" class="btn btn-outline-secondary">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="fas fa-ban mr-2"></i>
|
2017-11-20 16:04:05 +03:00
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3><?= lang('details') ?></h3>
|
|
|
|
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
|
|
|
<input type="hidden" id="admin-id" class="record-id">
|
|
|
|
|
|
|
|
<div class="row">
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="admin-details col-12 col-md-6">
|
2017-11-20 16:04:05 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="first-name"><?= lang('first_name') ?> *</label>
|
|
|
|
<input id="admin-first-name" class="form-control required" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-last-name"><?= lang('last_name') ?> *</label>
|
|
|
|
<input id="admin-last-name" class="form-control required" maxlength="512">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-email"><?= lang('email') ?> *</label>
|
|
|
|
<input id="admin-email" class="form-control required" maxlength="512">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-phone-number"><?= lang('phone_number') ?> *</label>
|
|
|
|
<input id="admin-phone-number" class="form-control required" maxlength="128">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-mobile-number"><?= lang('mobile_number') ?></label>
|
|
|
|
<input id="admin-mobile-number" class="form-control" maxlength="128">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-address"><?= lang('address') ?></label>
|
|
|
|
<input id="admin-address" class="form-control" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-city"><?= lang('city') ?></label>
|
|
|
|
<input id="admin-city" class="form-control" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-state"><?= lang('state') ?></label>
|
|
|
|
<input id="admin-state" class="form-control" maxlength="128">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-zip-code"><?= lang('zip_code') ?></label>
|
|
|
|
<input id="admin-zip-code" class="form-control" maxlength="64">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-notes"><?= lang('notes') ?></label>
|
|
|
|
<textarea id="admin-notes" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
2020-09-07 14:40:59 +03:00
|
|
|
|
|
|
|
<p class="text-danger">
|
|
|
|
<small><?= lang('fields_are_required') ?></small>
|
|
|
|
</p>
|
2017-11-20 16:04:05 +03:00
|
|
|
</div>
|
2020-08-31 17:02:54 +03:00
|
|
|
<div class="admin-settings col-12 col-md-6">
|
2017-11-20 16:04:05 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-username"><?= lang('username') ?> *</label>
|
|
|
|
<input id="admin-username" class="form-control required" maxlength="256">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-password"><?= lang('password') ?> *</label>
|
2020-09-07 14:12:52 +03:00
|
|
|
<input type="password" id="admin-password" class="form-control required" maxlength="512"
|
|
|
|
autocomplete="new-password">
|
2017-11-20 16:04:05 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-password-confirm"><?= lang('retype_password') ?> *</label>
|
2020-09-07 14:12:52 +03:00
|
|
|
<input type="password" id="admin-password-confirm" class="form-control required"
|
|
|
|
maxlength="512" autocomplete="new-password">
|
2017-11-20 16:04:05 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-calendar-view"><?= lang('calendar') ?> *</label>
|
|
|
|
<select id="admin-calendar-view" class="form-control required">
|
|
|
|
<option value="default">Default</option>
|
|
|
|
<option value="table">Table</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2020-03-29 17:34:05 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="admin-timezone"><?= lang('timezone') ?></label>
|
|
|
|
<?= render_timezone_dropdown('id="admin-timezone" class="form-control"') ?>
|
|
|
|
</div>
|
|
|
|
|
2017-11-20 16:04:05 +03:00
|
|
|
<br>
|
|
|
|
|
2020-09-07 11:36:36 +03:00
|
|
|
<div class="custom-control custom-switch">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="admin-notifications">
|
|
|
|
<label class="custom-control-label" for="admin-notifications">
|
|
|
|
<?= lang('receive_notifications') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-11-20 16:04:05 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
</div>
|