Made the timezone and language fields required, in the backend customers page

This commit is contained in:
Alex Tselegidis 2020-12-14 20:40:10 +02:00
parent 1a1deb28c2
commit 5df1bd4902
2 changed files with 6 additions and 4 deletions

View File

@ -154,16 +154,17 @@
<div class="form-group">
<label for="language">
<?= lang('language') ?>
<span class="text-danger">*</span>
</label>
<select id="language" class="form-control"></select>
<select id="language" class="form-control required"></select>
</div>
<div class="form-group">
<label for="timezone">
<?= lang('timezone') ?>
<span class="text-danger">*</span>
</label>
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
<?= render_timezone_dropdown('id="timezone" class="form-control required"') ?>
</div>
<div class="form-group">

View File

@ -259,6 +259,7 @@
.find('input, select, textarea')
.val('')
.prop('disabled', true);
$('.record-details #timezone').val('UTC');
$('#language').val('english');
@ -350,7 +351,7 @@
// Timezone
$('<small/>', {
'text': GlobalVariables.timezones[GlobalVariables.user.timezone]
'text': GlobalVariables.timezones[appointment.provider.timezone]
})
]
})