mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
Added timezone handling for users in the backend section.
This commit is contained in:
parent
5847728fd2
commit
1e5a1e59ea
6 changed files with 29 additions and 1 deletions
|
@ -130,6 +130,11 @@
|
||||||
<input id="zip-code" class="form-control">
|
<input id="zip-code" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="timezone"><?= lang('timezone') ?></label>
|
||||||
|
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label" for="notes"><?= lang('notes') ?></label>
|
<label class="control-label" for="notes"><?= lang('notes') ?></label>
|
||||||
<textarea id="notes" rows="4" class="form-control"></textarea>
|
<textarea id="notes" rows="4" class="form-control"></textarea>
|
||||||
|
|
|
@ -181,6 +181,11 @@
|
||||||
<input type="password" id="provider-password-confirm" class="form-control required" maxlength="512">
|
<input type="password" id="provider-password-confirm" class="form-control required" maxlength="512">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="provider-timezone"><?= lang('timezone') ?></label>
|
||||||
|
<?= render_timezone_dropdown('id="provider-timezone" class="form-control"') ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="provider-calendar-view"><?= lang('calendar') ?> *</label>
|
<label for="provider-calendar-view"><?= lang('calendar') ?> *</label>
|
||||||
<select id="provider-calendar-view" class="form-control required">
|
<select id="provider-calendar-view" class="form-control required">
|
||||||
|
@ -413,6 +418,11 @@
|
||||||
<input type="password" id="secretary-password-confirm" class="form-control required" maxlength="512">
|
<input type="password" id="secretary-password-confirm" class="form-control required" maxlength="512">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="secretary-timezone"><?= lang('timezone') ?></label>
|
||||||
|
<?= render_timezone_dropdown('id="secretary-timezone" class="form-control"') ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="secretary-calendar-view"><?= lang('calendar') ?> *</label>
|
<label for="secretary-calendar-view"><?= lang('calendar') ?> *</label>
|
||||||
<select id="secretary-calendar-view" class="form-control required">
|
<select id="secretary-calendar-view" class="form-control required">
|
||||||
|
@ -568,6 +578,11 @@
|
||||||
<input type="password" id="admin-password-confirm" class="form-control required" maxlength="512">
|
<input type="password" id="admin-password-confirm" class="form-control required" maxlength="512">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="admin-timezone"><?= lang('timezone') ?></label>
|
||||||
|
<?= render_timezone_dropdown('id="admin-timezone" class="form-control"') ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="admin-calendar-view"><?= lang('calendar') ?> *</label>
|
<label for="admin-calendar-view"><?= lang('calendar') ?> *</label>
|
||||||
<select id="admin-calendar-view" class="form-control required">
|
<select id="admin-calendar-view" class="form-control required">
|
||||||
|
|
|
@ -151,7 +151,8 @@
|
||||||
address: $('#address').val(),
|
address: $('#address').val(),
|
||||||
city: $('#city').val(),
|
city: $('#city').val(),
|
||||||
zip_code: $('#zip-code').val(),
|
zip_code: $('#zip-code').val(),
|
||||||
notes: $('#notes').val()
|
notes: $('#notes').val(),
|
||||||
|
timezone: $('#timezone').val()
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($('#customer-id').val() != '') {
|
if ($('#customer-id').val() != '') {
|
||||||
|
@ -314,6 +315,7 @@
|
||||||
$('#city').val(customer.city);
|
$('#city').val(customer.city);
|
||||||
$('#zip-code').val(customer.zip_code);
|
$('#zip-code').val(customer.zip_code);
|
||||||
$('#notes').val(customer.notes);
|
$('#notes').val(customer.notes);
|
||||||
|
$('#timezone').val(customer.timezone);
|
||||||
|
|
||||||
$('#customer-appointments').empty();
|
$('#customer-appointments').empty();
|
||||||
$.each(customer.appointments, function (index, appointment) {
|
$.each(customer.appointments, function (index, appointment) {
|
||||||
|
|
|
@ -147,6 +147,7 @@
|
||||||
state: $('#admin-state').val(),
|
state: $('#admin-state').val(),
|
||||||
zip_code: $('#admin-zip-code').val(),
|
zip_code: $('#admin-zip-code').val(),
|
||||||
notes: $('#admin-notes').val(),
|
notes: $('#admin-notes').val(),
|
||||||
|
timezone: $('#admin-timezone').val(),
|
||||||
settings: {
|
settings: {
|
||||||
username: $('#admin-username').val(),
|
username: $('#admin-username').val(),
|
||||||
notifications: $('#admin-notifications').hasClass('active'),
|
notifications: $('#admin-notifications').hasClass('active'),
|
||||||
|
@ -324,6 +325,7 @@
|
||||||
$('#admin-state').val(admin.state);
|
$('#admin-state').val(admin.state);
|
||||||
$('#admin-zip-code').val(admin.zip_code);
|
$('#admin-zip-code').val(admin.zip_code);
|
||||||
$('#admin-notes').val(admin.notes);
|
$('#admin-notes').val(admin.notes);
|
||||||
|
$('#admin-timezone').val(admin.timezone);
|
||||||
|
|
||||||
$('#admin-username').val(admin.settings.username);
|
$('#admin-username').val(admin.settings.username);
|
||||||
$('#admin-calendar-view').val(admin.settings.calendar_view);
|
$('#admin-calendar-view').val(admin.settings.calendar_view);
|
||||||
|
|
|
@ -159,6 +159,7 @@
|
||||||
state: $('#provider-state').val(),
|
state: $('#provider-state').val(),
|
||||||
zip_code: $('#provider-zip-code').val(),
|
zip_code: $('#provider-zip-code').val(),
|
||||||
notes: $('#provider-notes').val(),
|
notes: $('#provider-notes').val(),
|
||||||
|
timezone: $('#provider-timezone').val(),
|
||||||
settings: {
|
settings: {
|
||||||
username: $('#provider-username').val(),
|
username: $('#provider-username').val(),
|
||||||
working_plan: JSON.stringify(BackendUsers.wp.get()),
|
working_plan: JSON.stringify(BackendUsers.wp.get()),
|
||||||
|
@ -391,6 +392,7 @@
|
||||||
$('#provider-state').val(provider.state);
|
$('#provider-state').val(provider.state);
|
||||||
$('#provider-zip-code').val(provider.zip_code);
|
$('#provider-zip-code').val(provider.zip_code);
|
||||||
$('#provider-notes').val(provider.notes);
|
$('#provider-notes').val(provider.notes);
|
||||||
|
$('#provider-timezone').val(provider.timezone);
|
||||||
|
|
||||||
$('#provider-username').val(provider.settings.username);
|
$('#provider-username').val(provider.settings.username);
|
||||||
$('#provider-calendar-view').val(provider.settings.calendar_view);
|
$('#provider-calendar-view').val(provider.settings.calendar_view);
|
||||||
|
|
|
@ -152,6 +152,7 @@
|
||||||
state: $('#secretary-state').val(),
|
state: $('#secretary-state').val(),
|
||||||
zip_code: $('#secretary-zip-code').val(),
|
zip_code: $('#secretary-zip-code').val(),
|
||||||
notes: $('#secretary-notes').val(),
|
notes: $('#secretary-notes').val(),
|
||||||
|
timezone: $('#secretary-timezone').val(),
|
||||||
settings: {
|
settings: {
|
||||||
username: $('#secretary-username').val(),
|
username: $('#secretary-username').val(),
|
||||||
notifications: $('#secretary-notifications').hasClass('active'),
|
notifications: $('#secretary-notifications').hasClass('active'),
|
||||||
|
@ -340,6 +341,7 @@
|
||||||
$('#secretary-state').val(secretary.state);
|
$('#secretary-state').val(secretary.state);
|
||||||
$('#secretary-zip-code').val(secretary.zip_code);
|
$('#secretary-zip-code').val(secretary.zip_code);
|
||||||
$('#secretary-notes').val(secretary.notes);
|
$('#secretary-notes').val(secretary.notes);
|
||||||
|
$('#secretary-timezone').val(secretary.timezone);
|
||||||
|
|
||||||
$('#secretary-username').val(secretary.settings.username);
|
$('#secretary-username').val(secretary.settings.username);
|
||||||
$('#secretary-calendar-view').val(secretary.settings.calendar_view);
|
$('#secretary-calendar-view').val(secretary.settings.calendar_view);
|
||||||
|
|
Loading…
Reference in a new issue