checkbox avanzate funzionante

This commit is contained in:
Luca Trupiano 2022-11-15 17:13:59 +01:00
parent 70534a88b2
commit 1796a07f89
2 changed files with 15 additions and 11 deletions

View File

@ -241,12 +241,10 @@
<div class="row bg-lida10 border mx-0 p-2">
<div class="col-10" style="display: flex">
<div class="col-10" id="simpleSearchDiv" style="display: flex">
<div class="form-inline input-group bg-lida10 pt-1" action="" style="display: flex">
<form class="form-inline">
<input class="form-control-sm mr-sm-2" type="text" id="queryText" placeholder="Cerca">
<button class="btn btn-sm btn-lida4 my-2 my-sm-0" type="submit" id='searchcomm'>Cerca</button>
</form>
<button class="btn btn-sm btn-outline-lida4 m-2 my-sm-0" type="button" data-toggle="collapse" data-target="#collapseOptions" aria-expanded="false" aria-controls="collapseExample">
Opzioni
</button>
@ -256,10 +254,8 @@
</div>
</div>
<div class="col-10" style="display: none">
<div class="btn-group pt-1 my-2 " role="group" aria-label="Bottoni menu clausole">
<label class="input-group-text"><ion-icon name="filter-circle"></ion-icon></label>
<div class="col-10" id="advancedSearchDiv" style="display: none">
<div class="btn-group pt-1 mx-2 " role="group" aria-label="Bottoni menu clausole">
<div class="btn-group dropright" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-sm btn-outline-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Aggiungi clausola di tipo: </button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
@ -269,8 +265,7 @@
</div>
</div>
</div>
<div class="btn-group pt-1 my-2" role="group" aria-label="Bottoni menu logiche">
<label class="input-group-text"><ion-icon name="cog"></ion-icon></label>
<div class="btn-group pt-1 mx-2" role="group" aria-label="Bottoni menu logiche">
<div class="btn-group dropright" role="group">
<button id="btnGroupDrop2" type="button" class="btn btn-sm btn-outline-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Aggiungi condizione logica: </button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop2" style="">
@ -279,9 +274,7 @@
</div>
</div>
</div>
<form class="form-inline">
<button class="btn btn-sm btn-lida4 m-2 my-sm-0" type="submit" id='searchcomm2'>Cerca</button>
</form>
<button class="btn btn-sm btn-outline-lida4 m-2 my-sm-0" type="submit" id='cleanresult2' aria-expanded="false" aria-controls="collapseExample">
Reset
</button>

View File

@ -10,6 +10,17 @@ require("../node_modules/bootstrap/dist/js/bootstrap.bundle.min.js");
$(document).ready(function() {
$("#advanSW").on('change', function() {
if ($(this).prop('checked')) {
$("#simpleSearchDiv").attr('style', "display: none;");
$("#collapseOptions").collapse('hide');
$("#advancedSearchDiv").attr('style', "display: flex;");
} else {
$("#simpleSearchDiv").attr('style', "display: flex;");
$("#advancedSearchDiv").attr('style', "display: none;");
}
});
$("#copiaTesto").prop("disabled", true);
// Evento: click sul bottone di copia dei risultati testuali