2021-12-06 11:00:02 +03:00
|
|
|
<?php extend('layouts/backend_layout') ?>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
|
|
|
<?php section('content') ?>
|
|
|
|
|
2021-12-18 23:36:25 +03:00
|
|
|
<div id="business-logic-page" class="container backend-page">
|
2021-11-18 10:49:23 +03:00
|
|
|
<div id="business-logic">
|
2021-12-18 23:36:25 +03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 offset-lg-2">
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<legend class="d-flex justify-content-between align-items-center border-bottom mb-4 py-2">
|
|
|
|
<?= lang('business_logic') ?>
|
|
|
|
|
|
|
|
<?php if (can('edit', PRIV_SYSTEM_SETTINGS)): ?>
|
2022-01-24 14:55:45 +03:00
|
|
|
<button type="button" id="save-settings" class="btn btn-primary">
|
2021-12-18 23:36:25 +03:00
|
|
|
<i class="fas fa-check-square me-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
<?php endif ?>
|
|
|
|
</legend>
|
|
|
|
|
2021-11-18 10:49:23 +03:00
|
|
|
<h4><?= lang('working_plan') ?></h4>
|
2021-12-18 23:36:25 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="form-text text-muted mb-4">
|
|
|
|
<?= lang('edit_working_plan_hint') ?>
|
|
|
|
</div>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
|
|
|
<table class="working-plan table table-striped">
|
|
|
|
<thead>
|
2022-06-27 15:14:46 +03:00
|
|
|
<tr>
|
|
|
|
<th><?= lang('day') ?></th>
|
|
|
|
<th><?= lang('start') ?></th>
|
|
|
|
<th><?= lang('end') ?></th>
|
|
|
|
</tr>
|
2021-11-18 10:49:23 +03:00
|
|
|
</thead>
|
|
|
|
<tbody><!-- Dynamic Content --></tbody>
|
|
|
|
</table>
|
|
|
|
|
2021-11-23 10:43:40 +03:00
|
|
|
<div class="text-end">
|
2021-11-18 10:49:23 +03:00
|
|
|
<button class="btn btn-outline-secondary" id="apply-global-working-plan" type="button">
|
|
|
|
<i class="fas fa-check"></i>
|
|
|
|
<?= lang('apply_to_all_providers') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h4><?= lang('breaks') ?></h4>
|
|
|
|
|
|
|
|
<span class="form-text text-muted">
|
2021-11-23 11:53:10 +03:00
|
|
|
<?= lang('edit_breaks_hint') ?>
|
|
|
|
</span>
|
2021-11-18 10:49:23 +03:00
|
|
|
|
|
|
|
<div class="mt-2">
|
|
|
|
<button type="button" class="add-break btn btn-primary">
|
|
|
|
<i class="fas fa-plus-square"></i>
|
|
|
|
<?= lang('add_break'); ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
2021-12-18 23:36:25 +03:00
|
|
|
<table class="breaks table table-striped mb-4">
|
2021-11-18 10:49:23 +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>
|
2022-06-27 15:14:46 +03:00
|
|
|
|
2022-07-26 16:51:02 +03:00
|
|
|
<h4><?= lang('allow_rescheduling_cancellation_before') ?></h4>
|
2022-06-27 15:14:46 +03:00
|
|
|
|
2021-12-18 23:36:25 +03:00
|
|
|
<div class="mb-3">
|
|
|
|
<label for="book-advance-timeout" class="form-label">
|
|
|
|
<?= lang('timeout_minutes') ?>
|
|
|
|
</label>
|
|
|
|
<input id="book-advance-timeout" data-field="book_advance_timeout" class="form-control"
|
|
|
|
type="number" min="15">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('book_advance_timeout_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-27 15:14:46 +03:00
|
|
|
|
|
|
|
<h4><?= lang('future_booking_limit') ?></h4>
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="future-booking-limit" class="form-label">
|
|
|
|
<?= lang('limit_days') ?>
|
|
|
|
</label>
|
|
|
|
<input id="future-booking-limit" data-field="future_booking_limit" class="form-control"
|
|
|
|
type="number" min="15">
|
|
|
|
<div class="form-text text-muted">
|
|
|
|
<small>
|
|
|
|
<?= lang('future_booking_limit_hint') ?>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-18 23:36:25 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-18 10:49:23 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php section('content') ?>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
|
|
|
<?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>
|
2022-01-11 12:54:14 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/date.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/utils/string.js') ?>"></script>
|
2021-12-18 23:36:25 +03:00
|
|
|
<script src="<?= asset_url('assets/js/utils/url.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/utils/working_plan.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/http/business_settings_http_client.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/pages/business_settings.js') ?>"></script>
|
2021-12-14 10:05:22 +03:00
|
|
|
|
|
|
|
<?php section('scripts') ?>
|
|
|
|
|