mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
start implementation of configuration via webfront
This commit is contained in:
@ -6453,3 +6453,10 @@ form *, select {
|
||||
|
||||
.mt-n2 {
|
||||
margin-top: -0.5rem !important; }
|
||||
|
||||
/* Configuration */
|
||||
.configuration-form input[type='text'], .configuration-form input[type='number'] {
|
||||
border: 1px solid #fd7e14; }
|
||||
|
||||
.hide {
|
||||
display: none; }
|
||||
|
@ -265,3 +265,12 @@ form *, select {
|
||||
.mt-n2 {
|
||||
margin-top: -0.5rem !important;
|
||||
}
|
||||
|
||||
/* Configuration */
|
||||
.configuration-form input[type='text'], .configuration-form input[type='number'] {
|
||||
border: 1px solid $orange;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
13
WebfrontCore/wwwroot/js/configuration.js
Normal file
13
WebfrontCore/wwwroot/js/configuration.js
Normal file
@ -0,0 +1,13 @@
|
||||
$(document).ready(function() {
|
||||
$.each($('.has-related-content'), function (key, value) {
|
||||
value = $(value);
|
||||
if (value.attr('checked').length > 0) {
|
||||
$(value.data('related-content')).slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
$('input:checkbox').change(function () {
|
||||
var isChecked = $(this).is(':checked');
|
||||
isChecked ? $($(this).data('related-content')).slideDown() : $($(this).data('related-content')).slideUp();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user