v0.10.11a - Made hide filter, filter washing machine search semi done, and texts fixs

This commit is contained in:
2020-08-20 14:59:22 +02:00
parent 4f9cf41656
commit 89276c5af1
10 changed files with 115 additions and 14 deletions
@@ -17,10 +17,10 @@
@csrf
<input type="text" class="form-controller" id="search" name="search" placeholder="Søg efter navn,email,tlf"><br>
</form>
<button id="filterButton" type="button" class="btn btn-sde-blue">Søg filter</button>
<button id="filterButton" type="button" class="btn btn-sde-blue mb-0">Filter</button>
</div>
<div id="showHideCheckbox">
<div id="showHideCheckbox" class="mt-1 ">
<input class="checkbox-inline" type="checkbox" name="checkbox" id="navn" value="navn">
<label for="navn">Navn</label>
<input class="checkbox-inline" type="checkbox" name="checkbox" id="efternavn" value="efternavn">
@@ -32,6 +32,8 @@
<input class="checkbox-inline" type="checkbox" id="rolle" name="checkbox"value="rolle">
<label for="rolle">Rolle</label>
</div>
<div id="showHideCheckboxs" style="margin-bottom: -38px">
</div>
<table class="tbl mt-2">
<tr>
@@ -96,9 +98,10 @@
<script>
$(document).ready(function(){
var $box;
$("input:checkbox").on('click', function() {
var $box = $(this);
$box = $(this);
if ($box.is(":checked")) {
var group = "input:checkbox[name='" + $box.attr("name") + "']";
$(group).prop("checked", false);
@@ -107,16 +110,18 @@
$box.prop("checked", false);
}
});
});
//Show hide search filter
$('#showHideCheckbox').hide();
$('#showHideCheckboxs').hide();
$("#filterButton").click(function(){
$('#showHideCheckbox').toggle();
$('#showHideCheckboxs').toggle();
});
</script>