Refactor: Use select for active year and clean year data

Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
Cursor Agent
2025-12-21 19:16:13 +00:00
co-authored by mathieumoran1
parent 9234c2ed1e
commit 19e5f1d522
2 changed files with 48 additions and 9 deletions
+2 -2
View File
@@ -93,8 +93,8 @@
</p>
<div class="mb-3">
<label for="active_oscar_year" class="form-label">Année active</label>
<input type="number" class="form-control" id="active_oscar_year" placeholder="2026" min="1900" max="3000">
<div class="form-text">Ex: mets 2025 → tout le monde voit les stats/films 2025.</div>
<select class="form-select" id="active_oscar_year"></select>
<div class="form-text">La liste est basée sur les années présentes dans les films.</div>
</div>
<div class="d-flex justify-content-end">
<button type="button" id="save-active-year" class="btn btn-warning">Appliquer l’année</button>