2020-03-27 12:29:38 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('/assets/ext/jquery-fullcalendar/fullcalendar.min.css') ?>">
|
2017-09-14 16:18:20 +03:00
|
|
|
|
2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/ext/moment/moment.min.js') ?>"></script>
|
2020-03-27 12:29:38 +03:00
|
|
|
<script src="<?= asset_url('assets/ext/jquery-fullcalendar/fullcalendar.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/ext/jquery-ui/jquery-ui-timepicker-addon.min.js') ?>"></script>
|
2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar_default_view.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar_table_view.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar_google_sync.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar_appointments_modal.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar_unavailabilities_modal.js') ?>"></script>
|
2018-04-12 16:03:46 +03:00
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar_extra_periods_modal.js') ?>"></script>
|
2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/js/backend_calendar_api.js') ?>"></script>
|
2017-09-05 15:58:34 +03:00
|
|
|
<script>
|
2015-11-28 12:52:42 +02:00
|
|
|
var GlobalVariables = {
|
2020-09-07 13:34:52 +03:00
|
|
|
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,
|
|
|
|
availableProviders: <?= json_encode($available_providers) ?>,
|
|
|
|
availableServices: <?= json_encode($available_services) ?>,
|
|
|
|
baseUrl: <?= json_encode($base_url) ?>,
|
|
|
|
bookAdvanceTimeout: <?= $book_advance_timeout ?>,
|
|
|
|
dateFormat: <?= json_encode($date_format) ?>,
|
|
|
|
timeFormat: <?= json_encode($time_format) ?>,
|
|
|
|
firstWeekday: <?= json_encode($first_weekday) ?>,
|
|
|
|
editAppointment: <?= json_encode($edit_appointment) ?>,
|
|
|
|
customers: <?= json_encode($customers) ?>,
|
|
|
|
secretaryProviders: <?= json_encode($secretary_providers) ?>,
|
|
|
|
calendarView: <?= json_encode($calendar_view) ?>,
|
|
|
|
timezones: <?= json_encode($timezones) ?>,
|
|
|
|
user: {
|
|
|
|
id: <?= $user_id ?>,
|
|
|
|
email: <?= json_encode($user_email) ?>,
|
|
|
|
timezone: <?= json_encode($timezone) ?>,
|
|
|
|
role_slug: <?= json_encode($role_slug) ?>,
|
|
|
|
privileges: <?= json_encode($privileges) ?>,
|
2015-11-28 12:52:42 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-09-07 13:30:24 +03:00
|
|
|
$(function () {
|
2016-07-17 14:46:38 +03:00
|
|
|
BackendCalendar.initialize(GlobalVariables.calendarView);
|
2015-11-28 12:52:42 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2020-09-03 14:35:58 +03:00
|
|
|
<div class="container-fluid backend-page" id="calendar-page">
|
2020-08-31 20:11:02 +03:00
|
|
|
<div class="row" id="calendar-toolbar">
|
|
|
|
<div id="calendar-filter" class="col-12 col-sm-5">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="form-group calendar-filter-items">
|
2020-08-31 20:11:02 +03:00
|
|
|
<select id="select-filter-item" class="form-control col"
|
|
|
|
title="<?= lang('select_filter_item_hint') ?>">
|
2016-07-12 23:02:59 +03:00
|
|
|
</select>
|
|
|
|
</div>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
2020-08-31 20:11:02 +03:00
|
|
|
<div id="calendar-actions" class="col-12 col-sm-7">
|
2016-07-13 23:56:05 +03:00
|
|
|
<?php if (($role_slug == DB_SLUG_ADMIN || $role_slug == DB_SLUG_PROVIDER)
|
2020-08-31 13:23:10 +03:00
|
|
|
&& config('google_sync_feature') == TRUE): ?>
|
|
|
|
<button id="google-sync" class="btn btn-primary"
|
2017-09-14 16:18:20 +03:00
|
|
|
title="<?= lang('trigger_google_sync_hint') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="fas fa-sync-alt"></i>
|
2017-09-14 16:18:20 +03:00
|
|
|
<span><?= lang('synchronize') ?></span>
|
2016-07-13 23:56:05 +03:00
|
|
|
</button>
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<button id="enable-sync" class="btn btn-light" data-toggle="button"
|
2017-09-14 16:18:20 +03:00
|
|
|
title="<?= lang('enable_appointment_sync_hint') ?>">
|
2020-05-05 20:35:33 +03:00
|
|
|
<i class="far fa-calendar-alt"></i>
|
2017-09-14 16:18:20 +03:00
|
|
|
<span><?= lang('enable_sync') ?></span>
|
2015-11-28 12:52:42 +02:00
|
|
|
</button>
|
2016-07-13 23:56:05 +03:00
|
|
|
<?php endif ?>
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2016-07-12 23:02:59 +03:00
|
|
|
<?php if ($privileges[PRIV_APPOINTMENTS]['add'] == TRUE): ?>
|
2020-08-31 13:23:10 +03:00
|
|
|
<div class="btn-group">
|
|
|
|
<button class="btn btn-light" id="insert-appointment">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2020-08-31 13:23:10 +03:00
|
|
|
<?= lang('appointment') ?>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button class="btn btn-light dropdown-toggle" id="insert-dropdown" data-toggle="dropdown">
|
|
|
|
<span class="caret"></span>
|
|
|
|
<span class="sr-only">Toggle Dropdown</span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
<a class="dropdown-item" href="#" id="insert-unavailable">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2020-08-31 13:23:10 +03:00
|
|
|
<?= lang('unavailable') ?>
|
|
|
|
</a>
|
|
|
|
<a class="dropdown-item" href="#" id="insert-extra-period">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2020-08-31 13:23:10 +03:00
|
|
|
<?= lang('extra_period') ?>
|
|
|
|
</a>
|
2020-05-04 14:56:23 +03:00
|
|
|
</div>
|
2020-08-31 13:23:10 +03:00
|
|
|
</div>
|
2016-07-12 23:02:59 +03:00
|
|
|
<?php endif ?>
|
2016-07-13 23:56:05 +03:00
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<button id="reload-appointments" class="btn btn-light" title="<?= lang('reload_appointments_hint') ?>">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="fas fa-sync-alt"></i>
|
2016-07-13 23:56:05 +03:00
|
|
|
</button>
|
2016-07-24 14:26:20 +03:00
|
|
|
|
2020-05-04 14:38:28 +03:00
|
|
|
<?php if($calendar_view === 'default'): ?>
|
2020-05-05 20:35:33 +03:00
|
|
|
<a class="btn btn-light" href="<?= site_url('backend?view=table') ?>"
|
2020-05-04 14:38:28 +03:00
|
|
|
title="<?= lang('table') ?>">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="fas fa-table"></i>
|
2020-05-04 14:38:28 +03:00
|
|
|
</a>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if($calendar_view === 'table'): ?>
|
2020-06-09 17:36:54 +03:00
|
|
|
<a class="btn btn-light" href="<?= site_url('backend?view=default') ?>"
|
2020-05-04 14:38:28 +03:00
|
|
|
title="<?= lang('default') ?>">
|
2020-06-18 21:23:16 +03:00
|
|
|
<i class="fas fa-calendar-alt"></i>
|
2020-05-04 14:38:28 +03:00
|
|
|
</a>
|
|
|
|
<?php endif ?>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div id="calendar"><!-- Dynamically Generated Content --></div>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
2020-08-31 13:23:10 +03:00
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- MANAGE APPOINTMENT MODAL -->
|
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div id="manage-appointment" class="modal fade" data-keyboard="true" tabindex="-1">
|
|
|
|
<div class="modal-dialog modal-lg">
|
2015-11-28 12:52:42 +02:00
|
|
|
<div class="modal-content">
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title"><?= lang('edit_appointment_title') ?></h3>
|
2020-09-03 14:48:58 +03:00
|
|
|
<button class="close" data-dismiss="modal">×</button>
|
2017-09-22 23:31:32 +03:00
|
|
|
</div>
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="modal-body">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="modal-message alert d-none"></div>
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<legend><?= lang('appointment_details_title') ?></legend>
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<input id="appointment-id" type="hidden">
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="row">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="col-12 col-sm-6">
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="select-service" class="control-label"><?= lang('service') ?> *</label>
|
2015-11-28 12:52:42 +02:00
|
|
|
<select id="select-service" class="required form-control">
|
|
|
|
<?php
|
2017-09-22 23:31:32 +03:00
|
|
|
// Group services by category, only if there is at least one service
|
|
|
|
// with a parent category.
|
|
|
|
$has_category = FALSE;
|
2020-08-31 13:23:10 +03:00
|
|
|
foreach ($available_services as $service)
|
|
|
|
{
|
|
|
|
if ($service['category_id'] != NULL)
|
|
|
|
{
|
2017-09-22 23:31:32 +03:00
|
|
|
$has_category = TRUE;
|
|
|
|
break;
|
2015-11-28 12:52:42 +02:00
|
|
|
}
|
2017-09-22 23:31:32 +03:00
|
|
|
}
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2020-08-31 13:23:10 +03:00
|
|
|
if ($has_category)
|
|
|
|
{
|
|
|
|
$grouped_services = [];
|
|
|
|
|
|
|
|
foreach ($available_services as $service)
|
|
|
|
{
|
|
|
|
if ($service['category_id'] != NULL)
|
|
|
|
{
|
|
|
|
if ( ! isset($grouped_services[$service['category_name']]))
|
|
|
|
{
|
|
|
|
$grouped_services[$service['category_name']] = [];
|
2015-11-28 12:52:42 +02:00
|
|
|
}
|
2017-09-22 23:31:32 +03:00
|
|
|
|
|
|
|
$grouped_services[$service['category_name']][] = $service;
|
2015-11-28 12:52:42 +02:00
|
|
|
}
|
2017-09-22 23:31:32 +03:00
|
|
|
}
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2020-08-31 13:32:58 +03:00
|
|
|
// We need the uncategorized services at the end of the list so we will use
|
|
|
|
// another iteration only for the uncategorized services.
|
2020-08-31 13:23:10 +03:00
|
|
|
$grouped_services['uncategorized'] = [];
|
|
|
|
foreach ($available_services as $service)
|
|
|
|
{
|
|
|
|
if ($service['category_id'] == NULL)
|
|
|
|
{
|
2017-09-22 23:31:32 +03:00
|
|
|
$grouped_services['uncategorized'][] = $service;
|
2015-11-28 12:52:42 +02:00
|
|
|
}
|
2017-09-22 23:31:32 +03:00
|
|
|
}
|
|
|
|
|
2020-08-31 13:23:10 +03:00
|
|
|
foreach ($grouped_services as $key => $group)
|
|
|
|
{
|
2017-09-22 23:31:32 +03:00
|
|
|
$group_label = ($key != 'uncategorized')
|
|
|
|
? $group[0]['category_name'] : 'Uncategorized';
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2020-08-31 13:23:10 +03:00
|
|
|
if (count($group) > 0)
|
|
|
|
{
|
2017-09-22 23:31:32 +03:00
|
|
|
echo '<optgroup label="' . $group_label . '">';
|
2020-08-31 13:23:10 +03:00
|
|
|
foreach ($group as $service)
|
|
|
|
{
|
2017-09-22 23:31:32 +03:00
|
|
|
echo '<option value="' . $service['id'] . '">'
|
|
|
|
. $service['name'] . '</option>';
|
2015-11-28 12:52:42 +02:00
|
|
|
}
|
2017-09-22 23:31:32 +03:00
|
|
|
echo '</optgroup>';
|
2015-11-28 12:52:42 +02:00
|
|
|
}
|
|
|
|
}
|
2020-08-31 13:23:10 +03:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
foreach ($available_services as $service)
|
|
|
|
{
|
2017-09-22 23:31:32 +03:00
|
|
|
echo '<option value="' . $service['id'] . '">'
|
|
|
|
. $service['name'] . '</option>';
|
|
|
|
}
|
|
|
|
}
|
2015-11-28 12:52:42 +02:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="select-provider" class="control-label"><?= lang('provider') ?> *</label>
|
2015-11-28 12:52:42 +02:00
|
|
|
<select id="select-provider" class="required form-control"></select>
|
|
|
|
</div>
|
2019-06-08 17:43:21 +03:00
|
|
|
|
|
|
|
<div class="form-group">
|
2020-08-31 13:23:10 +03:00
|
|
|
<label for="appointment-location"
|
|
|
|
class="control-label"><?= lang('location') ?></label>
|
2019-06-08 17:43:21 +03:00
|
|
|
<input id="appointment-location" class="form-control">
|
|
|
|
</div>
|
2020-03-29 16:08:07 +03:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="appointment-notes" class="control-label"><?= lang('notes') ?></label>
|
|
|
|
<textarea id="appointment-notes" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="col-12 col-sm-6">
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
2020-08-31 13:23:10 +03:00
|
|
|
<label for="start-datetime"
|
|
|
|
class="control-label"><?= lang('start_date_time') ?></label>
|
2017-11-14 15:52:59 +03:00
|
|
|
<input id="start-datetime" class="required form-control">
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="end-datetime" class="control-label"><?= lang('end_date_time') ?></label>
|
2017-11-14 15:52:59 +03:00
|
|
|
<input id="end-datetime" class="required form-control">
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
2020-03-29 16:08:07 +03:00
|
|
|
<label class="control-label"><?= lang('timezone') ?></label>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<?= lang('provider') ?>:
|
|
|
|
<span class="provider-timezone">
|
|
|
|
-
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?= lang('current_user') ?>:
|
|
|
|
<span>
|
|
|
|
<?= $timezones[$timezone] ?>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-22 23:31:32 +03:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>
|
|
|
|
<?= lang('customer_details_title') ?>
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="new-customer" class="btn btn-light btn-sm" type="button"
|
|
|
|
title="<?= lang('clear_fields_add_existing_customer_hint') ?>">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-plus-square mr-2"></i>
|
2020-08-31 13:23:10 +03:00
|
|
|
<?= lang('new') ?>
|
2017-09-22 23:31:32 +03:00
|
|
|
</button>
|
2020-08-31 13:23:10 +03:00
|
|
|
<button id="select-customer" class="btn btn-primary btn-sm" type="button"
|
|
|
|
title="<?= lang('pick_existing_customer_hint') ?>">
|
2020-09-07 12:21:16 +03:00
|
|
|
<i class="far fa-hand-pointer mr-2"></i>
|
|
|
|
<span>
|
|
|
|
<?= lang('select') ?>
|
|
|
|
</span>
|
2017-09-22 23:31:32 +03:00
|
|
|
</button>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="filter-existing-customers"
|
2017-09-22 23:31:32 +03:00
|
|
|
placeholder="<?= lang('type_to_filter_customers') ?>"
|
2017-10-31 12:37:00 +03:00
|
|
|
style="display: none;" class="input-sm form-control">
|
2017-09-22 23:31:32 +03:00
|
|
|
<div id="existing-customers-list" style="display: none;"></div>
|
|
|
|
</legend>
|
|
|
|
|
|
|
|
<input id="customer-id" type="hidden">
|
|
|
|
|
|
|
|
<div class="row">
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="col-12 col-sm-6">
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="first-name" class="control-label"><?= lang('first_name') ?> *</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="first-name" class="required form-control">
|
2017-09-22 23:31:32 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="last-name" class="control-label"><?= lang('last_name') ?> *</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="last-name" class="required form-control">
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
2017-09-22 23:31:32 +03:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="email" class="control-label"><?= lang('email') ?> *</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="email" class="required form-control">
|
2017-09-22 23:31:32 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2020-08-31 13:23:10 +03:00
|
|
|
<label for="phone-number" class="control-label"><?= lang('phone_number') ?>
|
|
|
|
*</label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="phone-number" class="required form-control">
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-05 20:35:33 +03:00
|
|
|
<div class="col-12 col-sm-6">
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="address" class="control-label"><?= lang('address') ?></label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="address" class="form-control">
|
2017-09-22 23:31:32 +03:00
|
|
|
</div>
|
2016-03-22 23:36:48 +02:00
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="city" class="control-label"><?= lang('city') ?></label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="city" class="form-control">
|
2017-09-22 23:31:32 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="zip-code" class="control-label"><?= lang('zip_code') ?></label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="zip-code" class="form-control">
|
2017-09-22 23:31:32 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="customer-notes" class="control-label"><?= lang('notes') ?></label>
|
|
|
|
<textarea id="customer-notes" rows="2" class="form-control"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="modal-footer">
|
2020-09-07 12:21:16 +03:00
|
|
|
<button id="cancel-appointment" class="btn btn-light" data-dismiss="modal">
|
|
|
|
<i class="fas fa-ban"></i>
|
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
<button id="save-appointment" class="btn btn-primary">
|
|
|
|
<i class="far fa-check-circle mr-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2016-03-22 23:36:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- MANAGE UNAVAILABLE MODAL -->
|
|
|
|
|
2015-11-28 12:52:42 +02:00
|
|
|
<div id="manage-unavailable" class="modal fade">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2017-09-14 16:18:20 +03:00
|
|
|
<h3 class="modal-title"><?= lang('new_unavailable_title') ?></h3>
|
2020-09-03 14:48:58 +03:00
|
|
|
<button class="close" data-dismiss="modal">×</button>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2020-06-18 21:23:16 +03:00
|
|
|
<div class="modal-message alert d-none"></div>
|
2015-11-28 12:52:42 +02:00
|
|
|
|
2017-09-22 23:31:32 +03:00
|
|
|
<form>
|
2015-11-28 12:52:42 +02:00
|
|
|
<fieldset>
|
2017-09-22 23:31:32 +03:00
|
|
|
<input id="unavailable-id" type="hidden">
|
2020-03-27 12:29:38 +03:00
|
|
|
|
2016-07-18 23:55:05 +03:00
|
|
|
<div class="form-group">
|
2017-09-22 23:31:32 +03:00
|
|
|
<label for="unavailable-provider" class="control-label"><?= lang('provider') ?></label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<select id="unavailable-provider" class="form-control"></select>
|
2016-07-18 23:55:05 +03:00
|
|
|
</div>
|
2015-11-28 12:52:42 +02:00
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-22 23:31:32 +03:00
|
|
|
<label for="unavailable-start" class="control-label"><?= lang('start') ?></label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="unavailable-start" class="form-control">
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2017-09-22 23:31:32 +03:00
|
|
|
<label for="unavailable-end" class="control-label"><?= lang('end') ?></label>
|
2017-09-23 04:42:14 +03:00
|
|
|
<input id="unavailable-end" class="form-control">
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
|
2020-03-29 16:08:07 +03:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label"><?= lang('timezone') ?></label>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<?= lang('provider') ?>:
|
|
|
|
<span class="provider-timezone">
|
|
|
|
-
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?= lang('current_user') ?>:
|
|
|
|
<span>
|
|
|
|
<?= $timezones[$timezone] ?>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2015-11-28 12:52:42 +02:00
|
|
|
<div class="form-group">
|
2017-09-22 23:31:32 +03:00
|
|
|
<label for="unavailable-notes" class="control-label"><?= lang('notes') ?></label>
|
|
|
|
<textarea id="unavailable-notes" rows="3" class="form-control"></textarea>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2020-09-07 12:21:16 +03:00
|
|
|
<button id="cancel-unavailable" class="btn btn-light" data-dismiss="modal">
|
|
|
|
<i class="fas fa-ban"></i>
|
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
<button id="save-unavailable" class="btn btn-primary">
|
|
|
|
<i class="far fa-check-circle mr-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-04-12 16:03:46 +03:00
|
|
|
<!-- MANAGE EXTRA PERIOD MODAL -->
|
|
|
|
|
|
|
|
<div id="manage-extra" class="modal fade">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h3 class="modal-title"><?= lang('new_extra_period_title') ?></h3>
|
2020-09-03 14:48:58 +03:00
|
|
|
<button class="close" data-dismiss="modal">×</button>
|
2018-04-12 16:03:46 +03:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2020-06-18 21:23:16 +03:00
|
|
|
<div class="modal-message alert d-none"></div>
|
2018-04-12 16:03:46 +03:00
|
|
|
|
|
|
|
<form>
|
|
|
|
<fieldset>
|
|
|
|
<input id="extra-id" type="hidden">
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="extra-provider" class="control-label"><?= lang('provider') ?></label>
|
|
|
|
<select id="extra-provider" class="form-control"></select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="extra-start" class="control-label"><?= lang('start') ?></label>
|
|
|
|
<input id="extra-start" class="form-control">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="extra-end" class="control-label"><?= lang('end') ?></label>
|
|
|
|
<input id="extra-end" class="form-control">
|
|
|
|
</div>
|
2020-03-29 16:08:07 +03:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label"><?= lang('timezone') ?></label>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<?= lang('provider') ?>:
|
|
|
|
<span class="provider-timezone">
|
|
|
|
-
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?= lang('current_user') ?>:
|
|
|
|
<span>
|
|
|
|
<?= $timezones[$timezone] ?>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-04-12 16:03:46 +03:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2020-09-07 12:21:16 +03:00
|
|
|
<button id="cancel-extra" class="btn btn-light" data-dismiss="modal">
|
|
|
|
<i class="fas fa-ban"></i>
|
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
<button id="save-extra" class="btn btn-primary">
|
|
|
|
<i class="far fa-check-circle mr-2"></i>
|
|
|
|
<?= lang('save') ?>
|
|
|
|
</button>
|
2018-04-12 16:03:46 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- SELECT GOOGLE CALENDAR MODAL -->
|
|
|
|
|
2015-11-28 12:52:42 +02:00
|
|
|
<div id="select-google-calendar" class="modal fade">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2020-09-03 14:48:58 +03:00
|
|
|
<button class="close" data-dismiss="modal">×</button>
|
2017-09-14 16:18:20 +03:00
|
|
|
<h3 class="modal-title"><?= lang('select_google_calendar') ?></h3>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2017-09-22 23:31:32 +03:00
|
|
|
<div class="form-group">
|
2020-08-31 13:23:10 +03:00
|
|
|
<label for="google-calendar"
|
|
|
|
class="control-label"><?= lang('select_google_calendar_prompt') ?></label>
|
2017-09-22 23:31:32 +03:00
|
|
|
<select id="google-calendar" class="form-control"></select>
|
|
|
|
</div>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2020-09-07 12:21:16 +03:00
|
|
|
<button id="close-calendar" class="btn btn-light" data-dismiss="modal">
|
|
|
|
<i class="fas fa-ban"></i>
|
|
|
|
<?= lang('cancel') ?>
|
|
|
|
</button>
|
|
|
|
<button id="select-calendar" class="btn btn-primary">
|
|
|
|
<i class="far fa-check-circle"></i>
|
|
|
|
<?= lang('select') ?>
|
|
|
|
</button>
|
2015-11-28 12:52:42 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|