v0.10.10e - Made a hide show filter button, not done but works, css fix tomorrow

This commit is contained in:
Neerholt 2020-08-19 15:30:39 +02:00
parent ec4fdca414
commit 0516acba78
1 changed files with 13 additions and 1 deletions

View File

@ -15,9 +15,12 @@
<form method="post" action="{{ route("users.store") }}"> <form method="post" action="{{ route("users.store") }}">
@csrf @csrf
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg efter navn,email,tlf"></input> <input type="text" class="form-controller" id="search" name="search" placeholder="Søg efter navn,email,tlf"><br>
</form> </form>
<button id="filterButton" type="button" class="btn btn-sde-blue">Søg filter</button>
</div>
<div id="showHideCheckbox">
<input class="checkbox-inline" type="checkbox" name="checkbox" id="navn" value="navn"> <input class="checkbox-inline" type="checkbox" name="checkbox" id="navn" value="navn">
<label for="navn">Navn</label> <label for="navn">Navn</label>
<input class="checkbox-inline" type="checkbox" name="checkbox" id="efternavn" value="efternavn"> <input class="checkbox-inline" type="checkbox" name="checkbox" id="efternavn" value="efternavn">
@ -105,6 +108,15 @@
} }
}); });
}); });
//Show hide search filter
$("#filterButton").click(function(){
$('#showHideCheckbox').toggle();
});
</script> </script>