hhh
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -8,6 +8,9 @@
|
||||
<a class="card link-card dashboard-link-card" href="{{ url_for('info', page='hotels') }}">{{ t('hotels') }}</a>
|
||||
<a class="card link-card dashboard-link-card" href="{{ url_for('info', page='taxi') }}">{{ t('taxi') }}</a>
|
||||
<a class="card link-card dashboard-link-card" href="{{ url_for('info', page='location') }}">{{ t('location') }}</a>
|
||||
{% if not is_admin %}
|
||||
<a class="card link-card dashboard-link-card" href="{{ url_for('info', page='gifts') }}">{{ t('gifts') }}</a>
|
||||
{% endif %}
|
||||
{% if is_admin %}
|
||||
<a class="card link-card dashboard-link-card" href="{{ url_for('host_area') }}">{{ t('host_area') }}</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
{% if page == 'hotels' %}{{ t('hotels') }}{% endif %}
|
||||
{% if page == 'taxi' %}{{ t('taxi') }}{% endif %}
|
||||
{% if page == 'location' %}{{ t('location') }}{% endif %}
|
||||
{% if page == 'gifts' %}{{ t('gifts') }}{% endif %}
|
||||
</h1>
|
||||
|
||||
{% if page == 'schedule' %}
|
||||
@@ -14,6 +15,8 @@
|
||||
<p>{{ t('hotels_text') }}</p>
|
||||
{% elif page == 'taxi' %}
|
||||
<p>{{ t('taxi_text') }}</p>
|
||||
{% elif page == 'gifts' %}
|
||||
<p>{{ t('gifts_text') }}</p>
|
||||
{% elif page == 'location' %}
|
||||
<p><strong>{{ location_name }}</strong></p>
|
||||
<p>{{ location_address }}</p>
|
||||
|
||||
Reference in New Issue
Block a user