diff --git a/TODO.md b/TODO.md index cfdac34..3e2a15c 100644 --- a/TODO.md +++ b/TODO.md @@ -50,3 +50,4 @@ - [x] Fix: locked_year cleared on edit — edit dialog didn't populate the field, so any edit cleared the locked academic year - [x] Fix repertoire Années column: sort reverse chronological (newest first) instead of ascending alpha - [x] TFE website embed: wrap iframe + button in overlay-style div with "Site web" pill badge on left corner, clearer link text +- [x] Redirect internal metadata links on TFE page from /repertoire to /search (orientation, AP, finalité, year, keywords); add query= for search bar prefill; fix filter
visibility on desktop; add keyword to filterKeys badge; add hidden keyword input + visible chip to filter form so keyword filter survives form submission diff --git a/app/public/assets/css/repertoire.css b/app/public/assets/css/repertoire.css index 4df4760..49a5ba3 100644 --- a/app/public/assets/css/repertoire.css +++ b/app/public/assets/css/repertoire.css @@ -537,6 +537,38 @@ cursor: default; } +/* Active keyword chip in filter bar */ +.search-active-keyword { + display: inline-flex; + align-items: center; + gap: var(--space-3xs); + background: var(--surface-secondary); + border: 1px solid var(--border-secondary); + border-radius: var(--radius-sm); + padding: var(--space-3xs) var(--space-xs); + font-size: var(--step--2); + color: var(--text-secondary); + white-space: nowrap; +} + +.search-active-keyword strong { + color: var(--text-primary); + font-weight: 500; +} + +.search-keyword-remove { + color: var(--text-secondary); + text-decoration: none; + font-size: 1.1em; + line-height: 1; + padding: 0 var(--space-4xs); + margin-left: var(--space-4xs); +} + +.search-keyword-remove:hover { + color: var(--accent-primary); +} + .search-filter-select { font-size: var(--step--1); padding: var(--space-3xs) var(--space-2xs); diff --git a/app/templates/public/search.php b/app/templates/public/search.php index 1966c7a..dfbdd89 100644 --- a/app/templates/public/search.php +++ b/app/templates/public/search.php @@ -4,14 +4,14 @@ -
+
Filtres 0): ?> @@ -20,6 +20,12 @@ foreach ($filterKeys as $k) {
+ + + Mot-clé : + × + +