2022-01-18 13:04:08 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Local variables.
|
2023-11-29 12:24:09 +03:00
|
|
|
*
|
2022-01-18 13:04:08 +03:00
|
|
|
* @var array $timezones
|
|
|
|
* @var string $timezone
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2022-01-14 10:43:53 +03:00
|
|
|
<div id="unavailabilities-modal" class="modal fade">
|
2023-02-02 10:25:10 +03:00
|
|
|
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
|
2021-11-09 10:53:09 +03:00
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2022-01-18 14:54:41 +03:00
|
|
|
<h3 class="modal-title"><?= lang('new_unavailability_title') ?></h3>
|
2021-11-23 10:35:39 +03:00
|
|
|
<button class="btn-close" data-bs-dismiss="modal"></button>
|
2021-11-09 10:53:09 +03:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="modal-message alert d-none"></div>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
2022-01-17 06:46:18 +03:00
|
|
|
<input id="unavailability-id" type="hidden">
|
2021-11-09 10:53:09 +03:00
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-17 06:46:18 +03:00
|
|
|
<label for="unavailability-provider" class="form-label">
|
2021-11-09 10:53:09 +03:00
|
|
|
<?= lang('provider') ?>
|
|
|
|
</label>
|
2022-01-17 06:46:18 +03:00
|
|
|
<select id="unavailability-provider" class="form-control"></select>
|
2021-11-09 10:53:09 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-17 06:46:18 +03:00
|
|
|
<label for="unavailability-start" class="form-label">
|
2021-11-09 10:53:09 +03:00
|
|
|
<?= lang('start') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2022-01-17 06:46:18 +03:00
|
|
|
<input id="unavailability-start" class="form-control">
|
2021-11-09 10:53:09 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-17 06:46:18 +03:00
|
|
|
<label for="unavailability-end" class="form-label">
|
2021-11-09 10:53:09 +03:00
|
|
|
<?= lang('end') ?>
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
</label>
|
2022-01-17 06:46:18 +03:00
|
|
|
<input id="unavailability-end" class="form-control">
|
2021-11-09 10:53:09 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2023-05-03 08:51:53 +03:00
|
|
|
<label class="form-label">
|
|
|
|
<?= lang('timezone') ?>
|
|
|
|
</label>
|
2021-11-09 10:53:09 +03:00
|
|
|
|
2023-05-03 08:51:53 +03:00
|
|
|
<div
|
|
|
|
class="border rounded d-flex justify-content-between align-items-center bg-light timezone-info">
|
|
|
|
<div class="border-end w-50 p-1 text-center">
|
|
|
|
<small>
|
|
|
|
<?= lang('provider') ?>:
|
|
|
|
<span class="provider-timezone">
|
|
|
|
-
|
|
|
|
</span>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
<div class="w-50 p-1 text-center">
|
|
|
|
<small>
|
|
|
|
<?= lang('current_user') ?>:
|
|
|
|
<span>
|
2024-01-01 19:58:56 +03:00
|
|
|
<?= $timezones[session('timezone', 'Istanbul (+3:00)')] ?>
|
2023-05-03 08:51:53 +03:00
|
|
|
</span>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-09 10:53:09 +03:00
|
|
|
</div>
|
|
|
|
|
2021-11-23 11:53:10 +03:00
|
|
|
<div class="mb-3">
|
2022-01-17 06:46:18 +03:00
|
|
|
<label for="unavailability-notes" class="form-label">
|
2021-11-09 10:53:09 +03:00
|
|
|
<?= lang('notes') ?>
|
|
|
|
</label>
|
2022-01-17 06:46:18 +03:00
|
|
|
<textarea id="unavailability-notes" rows="3" class="form-control"></textarea>
|
2021-11-09 10:53:09 +03:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2022-01-24 14:55:45 +03:00
|
|
|
<button class="btn btn-secondary" data-bs-dismiss="modal">
|
2021-11-09 10:53:09 +03:00
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
2022-01-17 06:46:18 +03:00
|
|
|
<button id="save-unavailability" class="btn btn-primary">
|
2021-11-23 10:41:37 +03:00
|
|
|
<i class="fas fa-check-square me-2"></i>
|
2021-11-09 10:53:09 +03:00
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-14 10:43:53 +03:00
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php section('scripts'); ?>
|
2022-01-14 10:43:53 +03:00
|
|
|
|
|
|
|
<script src="<?= asset_url('assets/js/components/unavailabilities_modal.js') ?>"></script>
|
|
|
|
|
2023-11-29 12:24:09 +03:00
|
|
|
<?php end_section('scripts'); ?>
|