hidden is now d-none
This commit is contained in:
parent
a341334734
commit
1e855182bd
9 changed files with 28 additions and 28 deletions
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
<div id="header-menu" class="collapse navbar-collapse flex-row-reverse">
|
<div id="header-menu" class="collapse navbar-collapse flex-row-reverse">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<?php $hidden = ($privileges[PRIV_APPOINTMENTS]['view'] == TRUE) ? '' : 'hidden' ?>
|
<?php $hidden = ($privileges[PRIV_APPOINTMENTS]['view'] == TRUE) ? '' : 'd-none' ?>
|
||||||
<?php $active = ($active_menu == PRIV_APPOINTMENTS) ? 'active' : '' ?>
|
<?php $active = ($active_menu == PRIV_APPOINTMENTS) ? 'active' : '' ?>
|
||||||
<li class="nav-item <?= $active . $hidden ?>">
|
<li class="nav-item <?= $active . $hidden ?>">
|
||||||
<a href="<?= site_url('backend') ?>" class="nav-link"
|
<a href="<?= site_url('backend') ?>" class="nav-link"
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = ($privileges[PRIV_CUSTOMERS]['view'] == TRUE) ? '' : 'hidden' ?>
|
<?php $hidden = ($privileges[PRIV_CUSTOMERS]['view'] == TRUE) ? '' : 'd-none' ?>
|
||||||
<?php $active = ($active_menu == PRIV_CUSTOMERS) ? 'active' : '' ?>
|
<?php $active = ($active_menu == PRIV_CUSTOMERS) ? 'active' : '' ?>
|
||||||
<li class="nav-item <?= $active . $hidden ?>">
|
<li class="nav-item <?= $active . $hidden ?>">
|
||||||
<a href="<?= site_url('backend/customers') ?>" class="nav-link"
|
<a href="<?= site_url('backend/customers') ?>" class="nav-link"
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = ($privileges[PRIV_SERVICES]['view'] == TRUE) ? '' : 'hidden' ?>
|
<?php $hidden = ($privileges[PRIV_SERVICES]['view'] == TRUE) ? '' : 'd-none' ?>
|
||||||
<?php $active = ($active_menu == PRIV_SERVICES) ? 'active' : '' ?>
|
<?php $active = ($active_menu == PRIV_SERVICES) ? 'active' : '' ?>
|
||||||
<li class="nav-item <?= $active . $hidden ?>">
|
<li class="nav-item <?= $active . $hidden ?>">
|
||||||
<a href="<?= site_url('backend/services') ?>" class="nav-link"
|
<a href="<?= site_url('backend/services') ?>" class="nav-link"
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = ($privileges[PRIV_USERS]['view'] == TRUE) ? '' : 'hidden' ?>
|
<?php $hidden = ($privileges[PRIV_USERS]['view'] == TRUE) ? '' : 'd-none' ?>
|
||||||
<?php $active = ($active_menu == PRIV_USERS) ? 'active' : '' ?>
|
<?php $active = ($active_menu == PRIV_USERS) ? 'active' : '' ?>
|
||||||
<li class="nav-item <?= $active . $hidden ?>">
|
<li class="nav-item <?= $active . $hidden ?>">
|
||||||
<a href="<?= site_url('backend/users') ?>" class="nav-link"
|
<a href="<?= site_url('backend/users') ?>" class="nav-link"
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE
|
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE
|
||||||
|| $privileges[PRIV_USER_SETTINGS]['view'] == TRUE) ? '' : 'hidden' ?>
|
|| $privileges[PRIV_USER_SETTINGS]['view'] == TRUE) ? '' : 'd-none' ?>
|
||||||
<?php $active = ($active_menu == PRIV_SYSTEM_SETTINGS) ? 'active' : '' ?>
|
<?php $active = ($active_menu == PRIV_SYSTEM_SETTINGS) ? 'active' : '' ?>
|
||||||
<li class="nav-item <?= $active . $hidden ?>">
|
<li class="nav-item <?= $active . $hidden ?>">
|
||||||
<a href="<?= site_url('backend/settings') ?>" class="nav-link"
|
<a href="<?= site_url('backend/settings') ?>" class="nav-link"
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert hidden"></div>
|
<div class="alert d-none"></div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="admin-settings col-xs-12 col-sm-5">
|
<div class="admin-settings col-xs-12 col-sm-5">
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<h2><?= lang('forgot_your_password') ?></h2>
|
<h2><?= lang('forgot_your_password') ?></h2>
|
||||||
<p><?= lang('type_username_and_email_for_new_password') ?></p>
|
<p><?= lang('type_username_and_email_for_new_password') ?></p>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="alert hidden"></div>
|
<div class="alert d-none"></div>
|
||||||
<form>
|
<form>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="username"><?= lang('username') ?></label>
|
<label for="username"><?= lang('username') ?></label>
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
<h2><?= lang('backend_section') ?></h2>
|
<h2><?= lang('backend_section') ?></h2>
|
||||||
<p><?= lang('you_need_to_login') ?></p>
|
<p><?= lang('you_need_to_login') ?></p>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="alert hidden"></div>
|
<div class="alert d-none"></div>
|
||||||
<form id="login-form">
|
<form id="login-form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="username"><?= lang('username') ?></label>
|
<label for="username"><?= lang('username') ?></label>
|
||||||
|
|
|
@ -62,11 +62,11 @@ window.BackendCalendarExtraPeriodsModal = window.BackendCalendarExtraPeriodsModa
|
||||||
$dialog.find('.modal-message')
|
$dialog.find('.modal-message')
|
||||||
.text(EALang.extra_period_saved)
|
.text(EALang.extra_period_saved)
|
||||||
.addClass('alert-success')
|
.addClass('alert-success')
|
||||||
.removeClass('alert-danger hidden');
|
.removeClass('alert-danger d-none');
|
||||||
|
|
||||||
// Close the modal dialog and refresh the calendar appointments after one second.
|
// Close the modal dialog and refresh the calendar appointments after one second.
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$dialog.find('.alert').addClass('hidden');
|
$dialog.find('.alert').addClass('d-none');
|
||||||
$dialog.modal('hide');
|
$dialog.modal('hide');
|
||||||
|
|
||||||
var providerId = $('#extra-provider').val();
|
var providerId = $('#extra-provider').val();
|
||||||
|
@ -93,7 +93,7 @@ window.BackendCalendarExtraPeriodsModal = window.BackendCalendarExtraPeriodsModa
|
||||||
'the operation could not complete due to server communication errors.');
|
'the operation could not complete due to server communication errors.');
|
||||||
|
|
||||||
$dialog.find('.modal-message').txt(EALang.service_communication_error);
|
$dialog.find('.modal-message').txt(EALang.service_communication_error);
|
||||||
$dialog.find('.modal-message').addClass('alert-danger').removeClass('hidden');
|
$dialog.find('.modal-message').addClass('alert-danger').removeClass('d-none');
|
||||||
};
|
};
|
||||||
|
|
||||||
BackendCalendarApi.saveExtraPeriod(extra, successCallback, errorCallback);
|
BackendCalendarApi.saveExtraPeriod(extra, successCallback, errorCallback);
|
||||||
|
|
|
@ -39,7 +39,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
|
||||||
$dialog.find('.modal-message')
|
$dialog.find('.modal-message')
|
||||||
.text(EALang.start_date_before_end_error)
|
.text(EALang.start_date_before_end_error)
|
||||||
.addClass('alert-danger')
|
.addClass('alert-danger')
|
||||||
.removeClass('hidden');
|
.removeClass('d-none');
|
||||||
|
|
||||||
$dialog.find('#unavailable-start, #unavailable-end').closest('.form-group').addClass('has-error');
|
$dialog.find('#unavailable-start, #unavailable-end').closest('.form-group').addClass('has-error');
|
||||||
return;
|
return;
|
||||||
|
@ -63,7 +63,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
|
||||||
Backend.displayNotification(EALang.unavailable_saved);
|
Backend.displayNotification(EALang.unavailable_saved);
|
||||||
|
|
||||||
// Close the modal dialog and refresh the calendar appointments.
|
// Close the modal dialog and refresh the calendar appointments.
|
||||||
$dialog.find('.alert').addClass('hidden');
|
$dialog.find('.alert').addClass('d-none');
|
||||||
$dialog.modal('hide');
|
$dialog.modal('hide');
|
||||||
$('#select-filter-item').trigger('change');
|
$('#select-filter-item').trigger('change');
|
||||||
};
|
};
|
||||||
|
@ -73,7 +73,7 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili
|
||||||
'the operation could not complete due to server communication errors.');
|
'the operation could not complete due to server communication errors.');
|
||||||
|
|
||||||
$dialog.find('.modal-message').txt(EALang.service_communication_error);
|
$dialog.find('.modal-message').txt(EALang.service_communication_error);
|
||||||
$dialog.find('.modal-message').addClass('alert-danger').removeClass('hidden');
|
$dialog.find('.modal-message').addClass('alert-danger').removeClass('d-none');
|
||||||
};
|
};
|
||||||
|
|
||||||
BackendCalendarApi.saveUnavailable(unavailable, successCallback, errorCallback);
|
BackendCalendarApi.saveUnavailable(unavailable, successCallback, errorCallback);
|
||||||
|
|
|
@ -22,12 +22,12 @@ $(function () {
|
||||||
|
|
||||||
var $alert = $('.alert');
|
var $alert = $('.alert');
|
||||||
|
|
||||||
$alert.addClass('hidden');
|
$alert.addClass('d-none');
|
||||||
$('#get-new-password').prop('disabled', true);
|
$('#get-new-password').prop('disabled', true);
|
||||||
|
|
||||||
$.post(url, data)
|
$.post(url, data)
|
||||||
.done(function (response) {
|
.done(function (response) {
|
||||||
$alert.removeClass('hidden alert-danger alert-success');
|
$alert.removeClass('d-none alert-danger alert-success');
|
||||||
$('#get-new-password').prop('disabled', false);
|
$('#get-new-password').prop('disabled', false);
|
||||||
if (response === GlobalVariables.AJAX_SUCCESS) {
|
if (response === GlobalVariables.AJAX_SUCCESS) {
|
||||||
$alert.addClass('alert-success');
|
$alert.addClass('alert-success');
|
||||||
|
|
|
@ -22,7 +22,7 @@ $(function () {
|
||||||
|
|
||||||
var $alert = $('.alert');
|
var $alert = $('.alert');
|
||||||
|
|
||||||
$alert.addClass('hidden');
|
$alert.addClass('d-none');
|
||||||
|
|
||||||
$.post(url, data)
|
$.post(url, data)
|
||||||
.done(function (response) {
|
.done(function (response) {
|
||||||
|
@ -31,7 +31,7 @@ $(function () {
|
||||||
} else {
|
} else {
|
||||||
$alert.text(EALang['login_failed']);
|
$alert.text(EALang['login_failed']);
|
||||||
$alert
|
$alert
|
||||||
.removeClass('hidden alert-danger alert-success')
|
.removeClass('d-none alert-danger alert-success')
|
||||||
.addClass('alert-danger');
|
.addClass('alert-danger');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -241,7 +241,7 @@
|
||||||
}),
|
}),
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'type': 'button',
|
'type': 'button',
|
||||||
'class': 'btn btn-default btn-sm save-extra hidden',
|
'class': 'btn btn-default btn-sm save-extra d-none',
|
||||||
'title': EALang.save,
|
'title': EALang.save,
|
||||||
'html': [
|
'html': [
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
|
@ -251,7 +251,7 @@
|
||||||
}),
|
}),
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'type': 'button',
|
'type': 'button',
|
||||||
'class': 'btn btn-default btn-sm cancel-extra hidden',
|
'class': 'btn btn-default btn-sm cancel-extra d-none',
|
||||||
'title': EALang.cancel,
|
'title': EALang.cancel,
|
||||||
'html': [
|
'html': [
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
|
@ -600,7 +600,7 @@
|
||||||
}),
|
}),
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'type': 'button',
|
'type': 'button',
|
||||||
'class': 'btn btn-default btn-sm save-extra hidden',
|
'class': 'btn btn-default btn-sm save-extra d-none',
|
||||||
'title': EALang.save,
|
'title': EALang.save,
|
||||||
'html': [
|
'html': [
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
|
@ -610,7 +610,7 @@
|
||||||
}),
|
}),
|
||||||
$('<button/>', {
|
$('<button/>', {
|
||||||
'type': 'button',
|
'type': 'button',
|
||||||
'class': 'btn btn-default btn-sm cancel-extra hidden',
|
'class': 'btn btn-default btn-sm cancel-extra d-none',
|
||||||
'title': EALang.cancel,
|
'title': EALang.cancel,
|
||||||
'html': [
|
'html': [
|
||||||
$('<span/>', {
|
$('<span/>', {
|
||||||
|
@ -699,8 +699,8 @@
|
||||||
|
|
||||||
// Show save - cancel buttons.
|
// Show save - cancel buttons.
|
||||||
var $tr = $(this).closest('tr');
|
var $tr = $(this).closest('tr');
|
||||||
$tr.find('.edit-extra, .delete-extra').addClass('hidden');
|
$tr.find('.edit-extra, .delete-extra').addClass('d-none');
|
||||||
$tr.find('.save-extra, .cancel-extra').removeClass('hidden');
|
$tr.find('.save-extra, .cancel-extra').removeClass('d-none');
|
||||||
$tr.find('select,input:text').addClass('form-control input-sm')
|
$tr.find('select,input:text').addClass('form-control input-sm')
|
||||||
|
|
||||||
$('.add-extra-periods').prop('disabled', true);
|
$('.add-extra-periods').prop('disabled', true);
|
||||||
|
@ -729,8 +729,8 @@
|
||||||
$modifiedRow.find('.cancel-editable').trigger('click');
|
$modifiedRow.find('.cancel-editable').trigger('click');
|
||||||
this.enableCancel = false;
|
this.enableCancel = false;
|
||||||
|
|
||||||
$(element).closest('table').find('.edit-extra, .delete-extra').removeClass('hidden');
|
$(element).closest('table').find('.edit-extra, .delete-extra').removeClass('d-none');
|
||||||
$modifiedRow.find('.save-extra, .cancel-extra').addClass('hidden');
|
$modifiedRow.find('.save-extra, .cancel-extra').addClass('d-none');
|
||||||
$('.add-extra-periods').prop('disabled', false);
|
$('.add-extra-periods').prop('disabled', false);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
|
@ -756,8 +756,8 @@
|
||||||
$modifiedRow.find('.editable .submit-editable').trigger('click');
|
$modifiedRow.find('.editable .submit-editable').trigger('click');
|
||||||
this.enableSubmit = false;
|
this.enableSubmit = false;
|
||||||
|
|
||||||
$modifiedRow.find('.save-extra, .cancel-extra').addClass('hidden');
|
$modifiedRow.find('.save-extra, .cancel-extra').addClass('d-none');
|
||||||
$(element).closest('table').find('.edit-extra, .delete-extra').removeClass('hidden');
|
$(element).closest('table').find('.edit-extra, .delete-extra').removeClass('d-none');
|
||||||
$('.add-extra-periods').prop('disabled', false);
|
$('.add-extra-periods').prop('disabled', false);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue