feat: Implement dynamic Oscar year selection
This commit introduces the ability to select and manage the active Oscar year. This change affects page titles, API requests, and data filtering across the application, ensuring that all views and statistics are relevant to the chosen year. Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
co-authored by
mathieumoran1
parent
dda483b757
commit
7ff02207f6
+19
-1
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Pool Oscars 2026 - Admin</title>
|
||||
<title>Pool Oscars - Admin</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="./css/app.css" rel="stylesheet">
|
||||
<style>
|
||||
@@ -52,6 +52,24 @@
|
||||
</nav>
|
||||
|
||||
<div class="container mt-5" style="max-width: 720px;">
|
||||
<h2>Admin - Année active</h2>
|
||||
<p class="text-muted mb-3">
|
||||
Cette année pilote tout le site (films affichés, checklist et statistiques).
|
||||
</p>
|
||||
|
||||
<div class="card p-3 mb-4">
|
||||
<div class="row g-2 align-items-end">
|
||||
<div class="col-md-6">
|
||||
<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>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<button type="button" id="save-active-year" class="btn btn-warning w-100">Appliquer l’année</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Admin - Ajouter un film</h2>
|
||||
<p class="text-muted mb-4">
|
||||
Ajoute un film via l’API (<code>/api/movies/add</code>). Le serveur récupère automatiquement le titre/plot/affiche depuis OMDb avec l’<code>imdb_id</code>.
|
||||
|
||||
Reference in New Issue
Block a user