mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 19:03:21 +03:00
324 lines
14 KiB
PHP
Executable file
324 lines
14 KiB
PHP
Executable file
<?php extend('layouts/backend_layout') ?>
|
|
|
|
<?php section('content') ?>
|
|
|
|
<div class="container-fluid backend-page" id="providers-page">
|
|
<div class="row" id="providers">
|
|
<div id="filter-providers" class="filter-records column col-12 col-md-5">
|
|
<form class="mb-4">
|
|
<div class="input-group">
|
|
<input type="text" class="key form-control">
|
|
|
|
<button class="filter btn btn-outline-secondary" type="submit"
|
|
data-tippy-content="<?= lang('filter') ?>">
|
|
<i class="fas fa-search"></i>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
|
|
<h3><?= lang('providers') ?></h3>
|
|
<div class="results"></div>
|
|
</div>
|
|
|
|
<div class="record-details column col-12 col-md-7">
|
|
<div class="float-md-start mb-4 me-4">
|
|
<div class="add-edit-delete-group btn-group">
|
|
<button id="add-provider" class="btn btn-primary">
|
|
<i class="fas fa-plus-square me-2"></i>
|
|
<?= lang('add') ?>
|
|
</button>
|
|
<button id="edit-provider" class="btn btn-outline-secondary" disabled="disabled">
|
|
<i class="fas fa-edit me-2"></i>
|
|
<?= lang('edit') ?>
|
|
</button>
|
|
<button id="delete-provider" class="btn btn-outline-secondary" disabled="disabled">
|
|
<i class="fas fa-trash-alt me-2"></i>
|
|
<?= lang('delete') ?>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
<button id="save-provider" class="btn btn-primary">
|
|
<i class="fas fa-check-square me-2"></i>
|
|
<?= lang('save') ?>
|
|
</button>
|
|
<button id="cancel-provider" class="btn btn-outline-secondary">
|
|
<i class="fas fa-ban me-2"></i>
|
|
<?= lang('cancel') ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="nav nav-pills switch-view">
|
|
<li class="nav-item">
|
|
<a class="nav-link active" href="#details" data-bs-toggle="tab">
|
|
<?= lang('details') ?>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="#working-plan" data-bs-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.
|
|
?>
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
<div class="tab-content">
|
|
<div class="details-view tab-pane fade show active clearfix" id="details">
|
|
<h3><?= lang('details') ?></h3>
|
|
|
|
<input type="hidden" id="id" class="record-id">
|
|
|
|
<div class="row">
|
|
<div class="details col-12 col-md-6">
|
|
<div class="mb-3">
|
|
<label class="form-label" for="first-name">
|
|
<?= lang('first_name') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<input id="first-name" class="form-control required" maxlength="256">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="last-name">
|
|
<?= lang('last_name') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<input id="last-name" class="form-control required" maxlength="512">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="email">
|
|
<?= lang('email') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<input id="email" class="form-control required" max="512">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="phone-number">
|
|
<?= lang('phone_number') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<input id="phone-number" class="form-control required" max="128">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="mobile-number">
|
|
<?= lang('mobile_number') ?>
|
|
|
|
</label>
|
|
<input id="mobile-number" class="form-control" maxlength="128">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="address">
|
|
<?= lang('address') ?>
|
|
</label>
|
|
<input id="address" class="form-control" maxlength="256">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="city">
|
|
<?= lang('city') ?>
|
|
|
|
</label>
|
|
<input id="city" class="form-control" maxlength="256">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="state">
|
|
<?= lang('state') ?>
|
|
</label>
|
|
<input id="state" class="form-control" maxlength="256">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="zip-code">
|
|
<?= lang('zip_code') ?>
|
|
|
|
</label>
|
|
<input id="zip-code" class="form-control" maxlength="64">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="notes">
|
|
<?= lang('notes') ?>
|
|
</label>
|
|
<textarea id="notes" class="form-control" rows="3"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="settings col-12 col-md-6">
|
|
<div class="mb-3">
|
|
<label class="form-label" for="username">
|
|
<?= lang('username') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<input id="username" class="form-control required" maxlength="256">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="password">
|
|
<?= lang('password') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<input type="password" id="password" class="form-control required"
|
|
maxlength="512" autocomplete="new-password">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="password-confirm">
|
|
<?= lang('retype_password') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<input type="password" id="password-confirm"
|
|
class="form-control required" maxlength="512"
|
|
autocomplete="new-password">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="calendar-view">
|
|
<?= lang('calendar') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<select id="calendar-view" class="form-control required">
|
|
<option value="default">Default</option>
|
|
<option value="table">Table</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label" for="timezone">
|
|
<?= lang('timezone') ?>
|
|
<span class="text-danger">*</span>
|
|
</label>
|
|
<?php component('timezone_dropdown', 'id="timezone" class="form-control required"', [
|
|
'timezones' => vars('timezones')
|
|
]) ?>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<div class="form-check form-switch me-4">
|
|
<input class="form-check-input" type="checkbox" id="notifications">
|
|
<label class="form-check-label" for="notifications">
|
|
<?= lang('receive_notifications') ?>
|
|
</label>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<h4><?= lang('services') ?></h4>
|
|
<div id="provider-services" class="card card-body bg-light border-light"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<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"
|
|
data-tippy-content="<?= lang('reset_working_plan') ?>">
|
|
<i class="fas fa-redo-alt me-2"></i>
|
|
<?= lang('reset_plan') ?></button>
|
|
<table class="working-plan table table-striped mt-2">
|
|
<thead>
|
|
<tr>
|
|
<th><?= lang('day') ?></th>
|
|
<th><?= lang('start') ?></th>
|
|
<th><?= lang('end') ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><!-- Dynamic Content --></tbody>
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<h3><?= lang('breaks') ?></h3>
|
|
|
|
<p>
|
|
<?= lang('add_breaks_during_each_day') ?>
|
|
</p>
|
|
|
|
<div>
|
|
<button type="button" class="add-break btn btn-primary">
|
|
<i class="fas fa-plus-square me-2"></i>
|
|
<?= lang('add_break') ?>
|
|
</button>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<table class="breaks table table-striped">
|
|
<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>
|
|
|
|
<br>
|
|
|
|
<h3><?= lang('working_plan_exceptions') ?></h3>
|
|
|
|
<p>
|
|
<?= lang('add_working_plan_exceptions_during_each_day') ?>
|
|
</p>
|
|
|
|
<div>
|
|
<button type="button" class="add-working-plan-exception btn btn-primary me-2">
|
|
<i class="fas fa-plus-square"></i>
|
|
<?= lang('add_working_plan_exception') ?>
|
|
</button>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<table class="working-plan-exceptions table table-striped">
|
|
<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>
|
|
|
|
<?php component('working_plan_exceptions_modal') ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php section('content') ?>
|
|
|
|
<?php section('scripts') ?>
|
|
|
|
<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>
|
|
<script src="<?= asset_url('assets/js/utils/date.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/utils/message.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/utils/string.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/utils/working_plan.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/http/account_http_client.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/http/providers_http_client.js') ?>"></script>
|
|
<script src="<?= asset_url('assets/js/pages/providers.js') ?>"></script>
|
|
|
|
<?php section('scripts') ?>
|
|
|
|
|
|
|