2023-11-29 12:24:09 +03:00
|
|
|
<?php extend('layouts/backend_layout'); ?>
|
2021-11-18 08:11:18 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php section('content'); ?>
|
2021-11-18 08:11:18 +03:00
|
|
|
|
|
|
|
<div class="container-fluid backend-page" id="admins-page">
|
|
|
|
<div class="row" id="admins">
|
|
|
|
<div id="filter-admins" class="filter-records column col-12 col-md-5">
|
|
|
|
<form class="mb-4">
|
|
|
|
<div class="input-group">
|
2023-10-26 06:14:41 +03:00
|
|
|
<input type="text" class="key form-control" aria-label="keyword">
|
2022-09-14 13:02:26 +03:00
|
|
|
|
2022-01-07 10:56:46 +03:00
|
|
|
<button class="filter btn btn-outline-secondary" type="submit"
|
|
|
|
data-tippy-content="<?= lang('filter') ?>">
|
|
|
|
<i class="fas fa-search"></i>
|
|
|
|
</button>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2022-09-14 13:02:26 +03:00
|
|
|
<h4 class="text-black-50 mb-3 fw-light">
|
|
|
|
<?= lang('admins') ?>
|
|
|
|
</h4>
|
2021-11-18 08:11:18 +03:00
|
|
|
|
2022-09-14 13:02:26 +03:00
|
|
|
<div class="results">
|
|
|
|
<!-- JS -->
|
|
|
|
</div>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="record-details column col-12 col-md-7">
|
|
|
|
<div class="btn-toolbar mb-4">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
|
|
|
<button id="add-admin" class="btn btn-primary">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-plus-square me-2"></i>
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('add') ?>
|
|
|
|
</button>
|
|
|
|
<button id="edit-admin" class="btn btn-outline-secondary" disabled="disabled">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-edit me-2"></i>
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('edit') ?>
|
|
|
|
</button>
|
|
|
|
<button id="delete-admin" class="btn btn-outline-secondary" disabled="disabled">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-trash-alt me-2"></i>
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('delete') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2022-01-24 14:55:45 +03:00
|
|
|
<div class="save-cancel-group" style="display:none;">
|
2021-11-18 08:11:18 +03:00
|
|
|
<button id="save-admin" class="btn btn-primary">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-check-square me-2"></i>
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2022-01-24 14:55:45 +03:00
|
|
|
<button id="cancel-admin" class="btn btn-secondary">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-09-14 13:02:26 +03:00
|
|
|
<h4 class="text-black-50 mb-3 fw-light">
|
|
|
|
<?= lang('details') ?>
|
|
|
|
</h4>
|
2021-11-18 08:11:18 +03:00
|
|
|
|
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
|
|
|
|
2022-01-18 12:33:59 +03:00
|
|
|
<input type="hidden" id="id" class="record-id">
|
2021-11-18 08:11:18 +03:00
|
|
|
|
|
|
|
<div class="row">
|
2022-01-18 12:33:59 +03:00
|
|
|
<div class="details col-12 col-md-6">
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="first-name">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('first_name') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="first-name" class="form-control required" maxlength="256" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="last-name">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('last_name') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="last-name" class="form-control required" maxlength="512" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="email">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('email') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="email" class="form-control required" maxlength="512" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="phone-number">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('phone_number') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="phone-number" class="form-control required" maxlength="128" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="mobile-number">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('mobile_number') ?>
|
|
|
|
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="mobile-number" class="form-control" maxlength="128" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="address">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('address') ?>
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="address" class="form-control" maxlength="256" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="city">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('city') ?>
|
|
|
|
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="city" class="form-control" maxlength="256" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="state">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('state') ?>
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="state" class="form-control" maxlength="128" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="zip-code">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('zip_code') ?>
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="zip-code" class="form-control" maxlength="64" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="notes">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('notes') ?>
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<textarea id="notes" class="form-control" rows="3" disabled></textarea>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-18 12:33:59 +03:00
|
|
|
<div class="settings col-12 col-md-6">
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="username">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('username') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="username" class="form-control required" maxlength="256" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="password">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('password') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-18 12:33:59 +03:00
|
|
|
<input type="password" id="password" class="form-control required" maxlength="512"
|
2022-01-19 11:39:13 +03:00
|
|
|
autocomplete="new-password" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="password-confirm">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('retype_password') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-18 12:33:59 +03:00
|
|
|
<input type="password" id="password-confirm" class="form-control required"
|
2022-01-19 11:39:13 +03:00
|
|
|
maxlength="512" autocomplete="new-password" disabled>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="calendar-view">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('calendar') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<select id="calendar-view" class="form-control required" disabled>
|
2024-04-30 00:06:42 +03:00
|
|
|
<option value="default"><?= lang('default') ?></option>
|
|
|
|
<option value="table"><?= lang('table') ?></option>
|
2021-11-18 08:11:18 +03:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2022-05-20 19:13:26 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="language">
|
|
|
|
<?= lang('language') ?>
|
|
|
|
<span class="text-danger" hidden>*</span>
|
|
|
|
</label>
|
|
|
|
<select id="language" class="form-control required" disabled>
|
|
|
|
<?php foreach (vars('available_languages') as $available_language): ?>
|
|
|
|
<option value="<?= $available_language ?>">
|
|
|
|
<?= ucfirst($available_language) ?>
|
|
|
|
</option>
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php endforeach; ?>
|
2022-05-20 19:13:26 +03:00
|
|
|
</select>
|
|
|
|
</div>
|
2022-09-14 13:02:26 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 12:33:59 +03:00
|
|
|
<label class="form-label" for="timezone">
|
2021-11-18 08:11:18 +03:00
|
|
|
<?= lang('timezone') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-01-18 13:04:08 +03:00
|
|
|
<?php component('timezone_dropdown', [
|
2022-01-19 11:39:13 +03:00
|
|
|
'attributes' => 'id="timezone" class="form-control required" disabled',
|
2023-12-22 13:35:41 +03:00
|
|
|
'grouped_timezones' => vars('grouped_timezones'),
|
2023-11-29 12:24:09 +03:00
|
|
|
]); ?>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
2023-11-29 12:24:09 +03:00
|
|
|
|
2022-09-14 13:02:26 +03:00
|
|
|
<div>
|
2022-07-26 16:16:10 +03:00
|
|
|
<label class="form-label mb-3">
|
|
|
|
<?= lang('options') ?>
|
2021-11-18 08:11:18 +03:00
|
|
|
</label>
|
2022-09-14 13:02:26 +03:00
|
|
|
</div>
|
2022-07-26 16:16:10 +03:00
|
|
|
|
2022-09-14 13:02:26 +03:00
|
|
|
<div class="border rounded mb-3 p-3">
|
2022-07-26 16:16:10 +03:00
|
|
|
<div class="form-check form-switch">
|
|
|
|
<input class="form-check-input" type="checkbox" id="notifications" disabled>
|
|
|
|
<label class="form-check-label" for="notifications">
|
|
|
|
<?= lang('receive_notifications') ?>
|
|
|
|
</label>
|
|
|
|
</div>
|
2021-11-18 08:11:18 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php end_section('content'); ?>
|
2021-11-18 08:11:18 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php section('scripts'); ?>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
2022-01-07 11:23:21 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/message.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/utils/validation.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/http/account_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/http/admins_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/pages/admins.js') ?>"></script>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php end_section('scripts'); ?>
|
2021-12-14 10:05:22 +03:00
|
|
|
|