2021-12-06 11:00:02 +03:00
|
|
|
<?php extend('layouts/backend_layout') ?>
|
2021-11-15 11:49:08 +03:00
|
|
|
|
|
|
|
<?php section('content') ?>
|
|
|
|
|
2020-09-03 14:35:58 +03:00
|
|
|
<div class="container-fluid backend-page" id="services-page">
|
2021-11-18 07:32:46 +03:00
|
|
|
<div class="row" id="services">
|
|
|
|
<div id="filter-services" class="filter-records col col-12 col-md-5">
|
|
|
|
<form class="mb-4">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="key form-control">
|
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 07:32:46 +03:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-18 07:32:46 +03:00
|
|
|
<h3><?= lang('services') ?></h3>
|
|
|
|
<div class="results"></div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-18 07:32:46 +03:00
|
|
|
<div class="record-details column col-12 col-md-5">
|
|
|
|
<div class="btn-toolbar mb-4">
|
|
|
|
<div class="add-edit-delete-group btn-group">
|
|
|
|
<button id="add-service" class="btn btn-primary">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-plus-square me-2"></i>
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('add') ?>
|
|
|
|
</button>
|
|
|
|
<button id="edit-service" 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 07:32:46 +03:00
|
|
|
<?= lang('edit') ?>
|
|
|
|
</button>
|
|
|
|
<button id="delete-service" 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 07:32:46 +03:00
|
|
|
<?= lang('delete') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-09-30 14:32:42 +03:00
|
|
|
|
2021-11-18 07:32:46 +03:00
|
|
|
<div class="save-cancel-group btn-group" style="display:none;">
|
|
|
|
<button id="save-service" class="btn btn-primary">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-check-square me-2"></i>
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<button id="cancel-service" class="btn btn-outline-secondary">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-ban me-2"></i>
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-18 07:32:46 +03:00
|
|
|
<h3><?= lang('details') ?></h3>
|
2016-07-20 22:19:52 +03:00
|
|
|
|
2021-11-18 07:32:46 +03:00
|
|
|
<div class="form-message alert" style="display:none;"></div>
|
2020-09-30 14:32:42 +03:00
|
|
|
|
2022-01-18 11:29:56 +03:00
|
|
|
<input type="hidden" id="id">
|
2019-06-08 18:03:32 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="name">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('name') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 07:32:46 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="name" class="form-control required" maxlength="128" disabled>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
2017-09-22 15:53:41 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="duration">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('duration_minutes') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 07:32:46 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="duration" class="form-control required" type="number" min="<?= EVENT_MINIMUM_DURATION ?>" disabled>
|
2021-11-18 07:32:46 +03:00
|
|
|
</div>
|
2017-10-31 13:52:25 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="price">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('price') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 07:32:46 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="price" class="form-control required" disabled>
|
2021-11-18 07:32:46 +03:00
|
|
|
</div>
|
2017-09-22 15:53:41 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="currency">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('currency') ?>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-18 07:32:46 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="currency" class="form-control" maxlength="32" disabled>
|
2021-11-18 07:32:46 +03:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="category">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('category') ?>
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<select id="category" class="form-control" disabled></select>
|
2021-11-18 07:32:46 +03:00
|
|
|
</div>
|
2017-09-23 04:42:14 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="availabilities-type">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('availabilities_type') ?>
|
|
|
|
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<select id="availabilities-type" class="form-control" disabled>
|
2021-11-18 07:32:46 +03:00
|
|
|
<option value="<?= AVAILABILITIES_TYPE_FLEXIBLE ?>">
|
|
|
|
<?= lang('flexible') ?>
|
|
|
|
</option>
|
|
|
|
<option value="<?= AVAILABILITIES_TYPE_FIXED ?>">
|
|
|
|
<?= lang('fixed') ?>
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-19 11:39:13 +03:00
|
|
|
<label class="form-label" for="attendants-number" disabled>
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('attendants_number') ?>
|
2022-01-19 11:39:13 +03:00
|
|
|
<span class="text-danger" hidden>*</span>
|
2021-11-18 07:32:46 +03:00
|
|
|
</label>
|
2022-01-18 11:29:56 +03:00
|
|
|
<input id="attendants-number" class="form-control required" type="number" min="1">
|
2021-11-18 07:32:46 +03:00
|
|
|
</div>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="location">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('location') ?>
|
2015-10-05 01:31:06 +03:00
|
|
|
|
2021-11-18 07:32:46 +03:00
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<input id="location" class="form-control" disabled>
|
2021-11-18 07:32:46 +03:00
|
|
|
</div>
|
2022-01-18 20:54:44 +03:00
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<?php component('color_selection', ['attributes' => 'id="color"']) ?>
|
|
|
|
</div>
|
2020-09-30 14:32:42 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-18 11:29:56 +03:00
|
|
|
<label class="form-label" for="description">
|
2021-11-18 07:32:46 +03:00
|
|
|
<?= lang('description') ?>
|
|
|
|
</label>
|
2022-01-19 11:39:13 +03:00
|
|
|
<textarea id="description" rows="4" class="form-control" disabled></textarea>
|
2015-10-05 01:31:06 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-15 11:49:08 +03:00
|
|
|
|
|
|
|
<?php section('content') ?>
|
2021-12-15 09:59:54 +03:00
|
|
|
|
|
|
|
<?php section('scripts') ?>
|
|
|
|
|
2022-01-10 11:09:49 +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/services_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/http/categories_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/pages/services.js') ?>"></script>
|
2021-12-15 09:59:54 +03:00
|
|
|
|
|
|
|
<?php section('scripts') ?>
|