mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 17:33:19 +03:00
Made the timezone and language fields required, in the backend customers page
This commit is contained in:
parent
1a1deb28c2
commit
5df1bd4902
2 changed files with 6 additions and 4 deletions
|
@ -154,16 +154,17 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="language">
|
<label for="language">
|
||||||
<?= lang('language') ?>
|
<?= lang('language') ?>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<select id="language" class="form-control"></select>
|
<select id="language" class="form-control required"></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="timezone">
|
<label for="timezone">
|
||||||
<?= lang('timezone') ?>
|
<?= lang('timezone') ?>
|
||||||
|
<span class="text-danger">*</span>
|
||||||
</label>
|
</label>
|
||||||
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
|
<?= render_timezone_dropdown('id="timezone" class="form-control required"') ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -259,6 +259,7 @@
|
||||||
.find('input, select, textarea')
|
.find('input, select, textarea')
|
||||||
.val('')
|
.val('')
|
||||||
.prop('disabled', true);
|
.prop('disabled', true);
|
||||||
|
$('.record-details #timezone').val('UTC');
|
||||||
|
|
||||||
$('#language').val('english');
|
$('#language').val('english');
|
||||||
|
|
||||||
|
@ -350,7 +351,7 @@
|
||||||
// Timezone
|
// Timezone
|
||||||
|
|
||||||
$('<small/>', {
|
$('<small/>', {
|
||||||
'text': GlobalVariables.timezones[GlobalVariables.user.timezone]
|
'text': GlobalVariables.timezones[appointment.provider.timezone]
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue