This commit is contained in:
2026-03-04 19:17:46 +00:00
parent 3610011eaa
commit 39c80a0253
7 changed files with 71 additions and 1 deletions

View File

@@ -79,6 +79,12 @@ DEFAULT_INVITATION_GROUPS = [
"role": "guest",
"members": ["Marcel", "Kathrin"],
},
{
"name": "Marie & Kai",
"password": "Mari&Kai24!#",
"role": "guest",
"members": ["Marie", "Kai"],
},
{
"name": "Familie Olsem",
"password": "Olse!Fam24#?",
@@ -239,6 +245,7 @@ TEXTS = {
"hotels": "Hotels",
"taxi": "Taxi",
"location": "Location",
"gifts": "Geschenke",
"visit_location": "Zur Location-Webseite",
"maps_privacy_notice": "Zur Anzeige der Karte werden Daten an Google übertragen.",
"maps_load_button": "Google Maps anzeigen",
@@ -250,6 +257,7 @@ TEXTS = {
"schedule_text": "15:00 Trauung, 17:00 Empfang, 19:00 Dinner.",
"hotels_text": "Empfehlungen folgen. Bitte frühzeitig buchen.",
"taxi_text": "Taxi-Service: 01234 / 567890 (24/7).",
"gifts_text": "Eure Anwesenheit ist unser schönstes Geschenk. Falls ihr uns trotzdem etwas schenken möchtet, freuen wir uns über einen Beitrag zu unserer Reise nach der Hochzeit.",
"gallery_uploaded_by": "von {name}",
"gallery_empty": "Noch keine Bilder vorhanden.",
"gallery_image_alt": "Upload von {name}",
@@ -328,6 +336,7 @@ TEXTS = {
"hotels": "Hotels",
"taxi": "Taxi",
"location": "Location",
"gifts": "Gifts",
"visit_location": "Visit location website",
"maps_privacy_notice": "To display the map, data will be transferred to Google.",
"maps_load_button": "Show Google Maps",
@@ -339,6 +348,7 @@ TEXTS = {
"schedule_text": "3:00 PM ceremony, 5:00 PM reception, 7:00 PM dinner.",
"hotels_text": "Recommendations will follow. Please book early.",
"taxi_text": "Taxi service: 01234 / 567890 (24/7).",
"gifts_text": "Your presence is the greatest gift to us. If you would still like to give something, we would appreciate a contribution to our post-wedding trip.",
"gallery_uploaded_by": "by {name}",
"gallery_empty": "No photos available yet.",
"gallery_image_alt": "Uploaded by {name}",
@@ -903,9 +913,11 @@ def serve_upload(filename: str):
@app.get("/info/<page>")
@login_required
def info(page: str):
allowed = {"schedule", "hotels", "taxi", "location"}
allowed = {"schedule", "hotels", "taxi", "location", "gifts"}
if page not in allowed:
return redirect(url_for("guest_area"))
if page == "gifts" and session.get("role") == "admin":
return redirect(url_for("guest_area"))
return render_template("info.html", page=page)