Offerings: banner krijgt positie top|bottom (backend, migratie, admin-tab, OpenAPI)

- OfferingBanner.Position ('top'|'bottom'); bestaande banners worden 'bottom' (migratie AddOfferingBannerPosition)
- GET /api/v1/offerings/banner?position=top|bottom: zonder parameter bottom, 204 zonder actieve banner, 400 bij ongeldige waarde; antwoord bevat position
- Max 1 actieve banner per positie (laatst gewijzigde binnen de planning wint); top en bottom kunnen tegelijk actief zijn
- Top: tekst max 120 tekens, titel optioneel; bottom: titel verplicht
- Admin: Banner-tab met twee secties (Boven/Onder), eigen aanmaken en aan/uit per plek
- OpenAPI-snapshot met de hand bijgewerkt (geen lokale MariaDB): CI bevestigt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 12:35:20 +01:00
co-authored by Claude Sonnet 5.5
parent a349cfe475
commit 4b09089ffb
19 changed files with 781 additions and 138 deletions
+23 -1
View File
@@ -325,7 +325,29 @@
"title": "Offerings",
"addButton": "Add Offering",
"banners": {
"intro": "A banner is a wide announcement or promotion on the website. Plan ahead with a start and end time; at most one banner is shown at any time.",
"intro": "A banner is a wide announcement or promotion on the website. Plan ahead with a start and end time. At most one banner is shown per spot (top and bottom) at any time: the most recently changed active one.",
"section": {
"top": {
"title": "Top",
"description": "Narrow bar at the top of the website, one line of text.",
"addButton": "Add top banner"
},
"bottom": {
"title": "Bottom",
"description": "Large banner at the bottom of the page with title, text and button.",
"addButton": "Add bottom banner"
}
},
"liveNow": "Live now: {{title}}",
"nothingActive": "Nothing is active in this spot right now.",
"turnOffButton": "Turn banner off",
"turnOnButton": "Turn banner on",
"createTitle_top": "New banner (top)",
"createTitle_bottom": "New banner (bottom)",
"editTitle_top": "Edit banner (top)",
"editTitle_bottom": "Edit banner (bottom)",
"titleLabelOptional": "Title (optional)",
"textHintTop": "One short line, up to 120 characters.",
"addButton": "Add banner",
"empty": "No banners yet.",
"editButton": "Edit banner",
+23 -1
View File
@@ -325,7 +325,29 @@
"title": "Aanbiedingen",
"addButton": "Aanbieding toevoegen",
"banners": {
"intro": "Een banner is een brede mededeling of actie op de website. Plan vooruit met een begin- en eindtijd; er wordt altijd maximaal één banner getoond.",
"intro": "Een banner is een brede mededeling of actie op de website. Plan vooruit met een begin- en eindtijd. Per plek (boven en onder) wordt altijd maximaal één banner getoond: de laatst gewijzigde actieve.",
"section": {
"top": {
"title": "Boven",
"description": "Smalle balk bovenaan de website, één regel tekst.",
"addButton": "Banner boven toevoegen"
},
"bottom": {
"title": "Onder",
"description": "Grote banner onderaan de pagina met titel, tekst en knop.",
"addButton": "Banner onder toevoegen"
}
},
"liveNow": "Nu live: {{title}}",
"nothingActive": "Er is nu niets actief op deze plek.",
"turnOffButton": "Banner uitzetten",
"turnOnButton": "Banner aanzetten",
"createTitle_top": "Nieuwe banner (boven)",
"createTitle_bottom": "Nieuwe banner (onder)",
"editTitle_top": "Banner bewerken (boven)",
"editTitle_bottom": "Banner bewerken (onder)",
"titleLabelOptional": "Titel (optioneel)",
"textHintTop": "Eén korte regel, maximaal 120 tekens.",
"addButton": "Banner toevoegen",
"empty": "Nog geen banners.",
"editButton": "Banner bewerken",