mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
User timezone must not be empied by default as it is required.
This commit is contained in:
parent
30381b5c86
commit
0d5f673ecf
4 changed files with 16 additions and 7 deletions
|
@ -261,9 +261,9 @@
|
|||
<div class="form-group">
|
||||
<label for="provider-timezone">
|
||||
<?= lang('timezone') ?>
|
||||
|
||||
<span class="text-danger">*</span>
|
||||
</label>
|
||||
<?= render_timezone_dropdown('id="provider-timezone" class="form-control"') ?>
|
||||
<?= render_timezone_dropdown('id="provider-timezone" class="form-control required"') ?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
@ -549,9 +549,9 @@
|
|||
<div class="form-group">
|
||||
<label for="secretary-timezone">
|
||||
<?= lang('timezone') ?>
|
||||
|
||||
<span class="text-danger">*</span>
|
||||
</label>
|
||||
<?= render_timezone_dropdown('id="secretary-timezone" class="form-control"') ?>
|
||||
<?= render_timezone_dropdown('id="secretary-timezone" class="form-control required"') ?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
@ -757,8 +757,9 @@
|
|||
<div class="form-group">
|
||||
<label for="admin-timezone">
|
||||
<?= lang('timezone') ?>
|
||||
<span class="text-danger">*</span>
|
||||
</label>
|
||||
<?= render_timezone_dropdown('id="admin-timezone" class="form-control"') ?>
|
||||
<?= render_timezone_dropdown('id="admin-timezone" class="form-control required"') ?>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
|
|
@ -308,8 +308,12 @@
|
|||
|
||||
$('#admins .add-edit-delete-group').show();
|
||||
$('#admins .save-cancel-group').hide();
|
||||
$('#admins .record-details').find('input, select, textarea').prop('disabled', true);
|
||||
$('#admins .record-details').find('input, textarea').val('');
|
||||
$('#admins .record-details')
|
||||
.find('input, select, textarea')
|
||||
.val('')
|
||||
.prop('disabled', true);
|
||||
$('#admins .record-details #admin-calendar-view').val('default');
|
||||
$('#admins .record-details #admin-timezone').val('UTC');
|
||||
$('#edit-admin, #delete-admin').prop('disabled', true);
|
||||
|
||||
$('#admins .has-error').removeClass('has-error');
|
||||
|
|
|
@ -350,6 +350,8 @@
|
|||
$('#providers .record-details').find('input, select, textarea')
|
||||
.val('')
|
||||
.prop('disabled', true);
|
||||
$('#providers .record-details #provider-calendar-view').val('default');
|
||||
$('#providers .record-details #provider-timezone').val('UTC');
|
||||
$('#providers .add-break, .add-working-plan-exception, #reset-working-plan').prop('disabled', true);
|
||||
BackendUsers.wp.timepickers(true);
|
||||
$('#providers .working-plan input:text').timepicker('destroy');
|
||||
|
|
|
@ -324,6 +324,8 @@
|
|||
.find('input, select, textarea')
|
||||
.val('')
|
||||
.prop('disabled', true);
|
||||
$('#secretaries .record-details #secretary-calendar-view').val('default');
|
||||
$('#secretaries .record-details #secretary-timezone').val('UTC');
|
||||
$('#secretaries .add-edit-delete-group').show();
|
||||
$('#secretaries .save-cancel-group').hide();
|
||||
$('#edit-secretary, #delete-secretary').prop('disabled', true);
|
||||
|
|
Loading…
Reference in a new issue