Update search.tpl

This commit is contained in:
Bess1k 2026-02-24 13:10:04 +01:00 committed by GitHub
parent 6c0475d26c
commit 4d9703fdec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
{extends file="views/layout.tpl"} {extends file="views/layout.tpl"}
{block name="title" append} - Rechercher{/block}
{block name="content"} {block name="content"}
<section aria-label="Blog"> <section aria-label="Blog">
@ -41,7 +42,7 @@
</select> </select>
</div> </div>
<div class="col-6">
<div class="col-6"> <div class="col-6">
<fieldset> <fieldset>
<legend class="form-label">Recherche par date</legend> <legend class="form-label">Recherche par date</legend>
@ -73,27 +74,9 @@
</div> </div>
</fieldset> </fieldset>
</div> </div>
<!-- AJOUT RECHERCHE PAR CATEGORIE -->
<div class="col-6">
<fieldset>
<legend class="form-label">Recherche par catégories</legend>
<div class="col-md-6">
<label for="author" class="form-label">Catégorie</label>
<select class="form-select" id="category" name="category">
<option value="0" {if $intCategory == 0}selected{/if}>Toutes les catégories</option>
{foreach $arrCategory as $arrDetCategory}
<option value="{$arrDetCategory['category_id']}"
{if $intCategory == $arrDetCategory['category_id']}selected{/if}
>
{$arrDetCategory['category_name']}
</option>
{/foreach}
</select>
</div>
</fieldset>
</div>
<div class="col-md-6" id="date-exact">
<div class="col-12" id="date-exact">
<label for="date" class="form-label">Date</label> <label for="date" class="form-label">Date</label>
<input <input
type="date" type="date"
@ -129,7 +112,26 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<!-- AJOUT RECHERCHE PAR CATEGORIE -->
<div class="col-6">
<fieldset>
<legend class="form-label">Recherche par catégories</legend>
<div class="col-md-6">
<label for="author" class="form-label">Catégorie</label>
<select class="form-select" id="category" name="category">
<option value="0" {if $intCategory == 0}selected{/if}>Toutes les catégories</option>
{foreach $arrCategory as $arrDetCategory}
<option value="{$arrDetCategory['category_id']}"
{if $intCategory == $arrDetCategory['category_id']}selected{/if}
>
{$arrDetCategory['category_name']}
</option>
{/foreach}
</select>
</div>
</fieldset>
</div>
<div class="col-12"> <div class="col-12">
<button type="submit" class="btn btn-primary"> <button type="submit" class="btn btn-primary">
<i class="fas fa-search me-2" aria-hidden="true"></i> <i class="fas fa-search me-2" aria-hidden="true"></i>
@ -185,4 +187,4 @@
// Initialisation au chargement // Initialisation au chargement
toggleDateFields(); toggleDateFields();
</script> </script>
{/block} {/block}