Merge branch 'feat/pagination'
This commit is contained in:
commit
2c04ac6d95
@ -159,7 +159,6 @@ h4 {
|
|||||||
.main__content {
|
.main__content {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
z-index: 0;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
> .container {
|
> .container {
|
||||||
@ -291,7 +290,7 @@ a.btn.btn-info:hover,
|
|||||||
|
|
||||||
.table__td {
|
.table__td {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #808080;
|
color: var(--color-font);
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
.alerts {
|
.alerts {
|
||||||
top: 150px;
|
top: 150px;
|
||||||
|
bottom: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,12 @@
|
|||||||
if (requireds.length == 0) {
|
if (requireds.length == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (typeof button.dataset.formnorequired !== 'undefined' && button.dataset.formnorequired !== null) {
|
||||||
|
button.addEventListener('click', function() {
|
||||||
|
form.submit();
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
}
|
||||||
updateButtonState();
|
updateButtonState();
|
||||||
|
|
||||||
requireds.forEach(function(el) {
|
requireds.forEach(function(el) {
|
||||||
@ -66,10 +72,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
var forms = document.querySelectorAll('form');
|
var forms = document.querySelectorAll('form');
|
||||||
Array.from(forms).forEach(function(form) {
|
Array.from(forms).forEach(function(form) {
|
||||||
// auto reactiveButton submit-buttons with required fields
|
// auto reactiveButton submit-buttons with required fields
|
||||||
var submitBtn = form.querySelector('[type=submit]');
|
var submitBtns = Array.from(form.querySelectorAll('[type=submit]'));
|
||||||
if (submitBtn) {
|
submitBtns.forEach(function(submitBtn) {
|
||||||
window.utils.reactiveButton(form, submitBtn, validateForm);
|
window.utils.reactiveButton(form, submitBtn, validateForm);
|
||||||
}
|
});
|
||||||
|
|
||||||
// auto conditonal fieldsets
|
// auto conditonal fieldsets
|
||||||
var fieldSets = Array.from(form.querySelectorAll('fieldset[data-conditional-id][data-conditional-value]'));
|
var fieldSets = Array.from(form.querySelectorAll('fieldset[data-conditional-id][data-conditional-value]'));
|
||||||
|
|||||||
@ -1,3 +1,15 @@
|
|||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
visibility: hidden;
|
||||||
|
height: 0;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
border: 0;
|
||||||
|
margin: 20px 0 30px;
|
||||||
|
|
||||||
|
legend {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user