Add new component, add flags on filter

This commit is contained in:
Ludovic CANDELLIER
2022-05-09 23:14:50 +02:00
parent a70e8c39cf
commit 352b109e87
8 changed files with 184 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<aside class="main-sidebar float-left d-none" id="sidebar" style="width: 300px;">
<section class="sidebar shadow" style="height: auto;">
<aside class="main-sidebar float-left @if (!($filter_on ?? false)) d-none" @endif id="sidebar" style="width: 200px;">
<section class="sidebar shadow mr-2" style="height: auto;">
<div class="row">
<div class="col-12">
@@ -14,8 +14,8 @@
'id' => 'tag_group_' . $tag_group_id,
])
@foreach ($group['tags'] as $tag)
<div>
@include('components.form.checkbox', [
<div class="form-inline">
@include('components.form.checkboxes.icheck', [
'name' => 'tag[]',
'val' => $tag['id'],
])
@@ -30,6 +30,7 @@
</aside>
@include('load.layout.chevron')
@include('load.form.icheck')
@push('js')
<script>

View File

@@ -2,15 +2,18 @@
<div class="col-3 form-inline">
<a href="/"><img src="/img/logo.jpg" class="img-responvive"></a>
@if (!($no_filter ?? false))
<a id="filters" href="#" class="text-white pl-3">
<span id="filter-on" class="fa-stack fa-2x">
<span id="filter-on" class="fa-stack fa-2x @if ($filter_on ?? false) d-none" @endif">
<i class="fa fa-stack-1x fa-filter"></i>
</span>
<span id="filter-off" class="fa-stack fa-2x d-none">
<span id="filter-off" class="fa-stack fa-2x @if (!($filter_on ?? false)) d-none" @endif">
<i class="fa fa-stack-1x fa-filter"></i>
<i class="fa fa-stack-2x fa-ban" style="color:Tomato"></i>
</span>
</a>
@endif
</div>
<div class="col-5 form-inline">