forked from mirrors/easyappointments
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">
|
<div class="form-group">
|
||||||
<label for="provider-timezone">
|
<label for="provider-timezone">
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?= render_timezone_dropdown('id="provider-timezone" class="form-control"') ?>
|
<?= render_timezone_dropdown('id="provider-timezone" class="form-control required"') ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
@ -549,9 +549,9 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="secretary-timezone">
|
<label for="secretary-timezone">
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?= render_timezone_dropdown('id="secretary-timezone" class="form-control"') ?>
|
<?= render_timezone_dropdown('id="secretary-timezone" class="form-control required"') ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
@ -757,8 +757,9 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="admin-timezone">
|
<label for="admin-timezone">
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?= render_timezone_dropdown('id="admin-timezone" class="form-control"') ?>
|
<?= render_timezone_dropdown('id="admin-timezone" class="form-control required"') ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -308,8 +308,12 @@
|
||||||
|
|
||||||
$('#admins .add-edit-delete-group').show();
|
$('#admins .add-edit-delete-group').show();
|
||||||
$('#admins .save-cancel-group').hide();
|
$('#admins .save-cancel-group').hide();
|
||||||
$('#admins .record-details').find('input, select, textarea').prop('disabled', true);
|
$('#admins .record-details')
|
||||||
$('#admins .record-details').find('input, textarea').val('');
|
.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);
|
$('#edit-admin, #delete-admin').prop('disabled', true);
|
||||||
|
|
||||||
$('#admins .has-error').removeClass('has-error');
|
$('#admins .has-error').removeClass('has-error');
|
||||||
|
|
|
@ -350,6 +350,8 @@
|
||||||
$('#providers .record-details').find('input, select, textarea')
|
$('#providers .record-details').find('input, select, textarea')
|
||||||
.val('')
|
.val('')
|
||||||
.prop('disabled', true);
|
.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);
|
$('#providers .add-break, .add-working-plan-exception, #reset-working-plan').prop('disabled', true);
|
||||||
BackendUsers.wp.timepickers(true);
|
BackendUsers.wp.timepickers(true);
|
||||||
$('#providers .working-plan input:text').timepicker('destroy');
|
$('#providers .working-plan input:text').timepicker('destroy');
|
||||||
|
|
|
@ -324,6 +324,8 @@
|
||||||
.find('input, select, textarea')
|
.find('input, select, textarea')
|
||||||
.val('')
|
.val('')
|
||||||
.prop('disabled', true);
|
.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 .add-edit-delete-group').show();
|
||||||
$('#secretaries .save-cancel-group').hide();
|
$('#secretaries .save-cancel-group').hide();
|
||||||
$('#edit-secretary, #delete-secretary').prop('disabled', true);
|
$('#edit-secretary, #delete-secretary').prop('disabled', true);
|
||||||
|
|
Loading…
Reference in a new issue