Préparer la version 1.0.0-rc.4
This commit is contained in:
parent
0a482afe9d
commit
6e3beea211
38 changed files with 388 additions and 56 deletions
|
|
@ -9,6 +9,8 @@ $quality = $quality ?? '';
|
|||
$qualityLabel = $qualityLabel ?? '';
|
||||
$species = $species ?? '';
|
||||
$speciesOptions = $speciesOptions ?? [];
|
||||
$attribute = $attribute ?? '';
|
||||
$attributeValue = $attributeValue ?? '';
|
||||
$viewMode = $viewMode ?? 'table';
|
||||
$speciesByCode = [];
|
||||
foreach ($speciesOptions as $speciesOption) {
|
||||
|
|
@ -34,12 +36,21 @@ $mosaicQs['view'] = 'mosaic';
|
|||
|
||||
?>
|
||||
|
||||
<?php if ($attribute !== ''): ?>
|
||||
<div class="alert alert-info d-flex align-items-center gap-2">
|
||||
<span><?= h(t('animals.filtered_by', ['value' => $attributeValue])) ?></span>
|
||||
<a class="btn btn-sm btn-outline-primary ms-auto" href="/animals"><?= h(t('common.clear')) ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form class="row g-2 align-items-center" method="get" action="/animals">
|
||||
<?php if ($quality !== ''): ?><input type="hidden" name="quality" value="<?= h($quality) ?>"><?php endif; ?>
|
||||
<?php if ($attribute !== ''): ?><input type="hidden" name="attribute" value="<?= h($attribute) ?>"><input
|
||||
type="hidden" name="value" value="<?= h($attributeValue) ?>"><?php endif; ?>
|
||||
<input type="hidden" name="sort" value="<?= h($sort) ?>">
|
||||
<input type="hidden" name="dir" value="<?= h(strtolower($dir)) ?>">
|
||||
<div class="col-12">
|
||||
|
|
|
|||
Loading…
Reference in a new issue