From 0d93017a771699f85662b6a2df5343c8379c30a2 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Sat, 21 Mar 2026 12:54:47 +0100 Subject: [PATCH 01/10] feat: added select to contact-form.html --- assets/sass/fonts.scss | 4 +- assets/sass/form.scss | 4 ++ content/contact/index.de.md | 2 - content/contact/index.en.md | 2 - content/contact/index.fr.md | 2 - layouts/shortcodes/contact-form.html | 62 +++++++++++++++++++++++++++- 6 files changed, 68 insertions(+), 8 deletions(-) diff --git a/assets/sass/fonts.scss b/assets/sass/fonts.scss index 8b5202314..6395b99c5 100644 --- a/assets/sass/fonts.scss +++ b/assets/sass/fonts.scss @@ -122,7 +122,9 @@ } body, -button { +input, +select, +.a-button { font-family: "Roboto", Arial, Helvetica, sans-serif; word-wrap: break-word; hyphens: auto; diff --git a/assets/sass/form.scss b/assets/sass/form.scss index e81128a28..da32e8599 100644 --- a/assets/sass/form.scss +++ b/assets/sass/form.scss @@ -31,6 +31,10 @@ @include focus-indicator(0.2rem); } + + select { + width: calc(50% + 2.8rem); + } } #success { diff --git a/content/contact/index.de.md b/content/contact/index.de.md index d3c46dabf..32777ca34 100644 --- a/content/contact/index.de.md +++ b/content/contact/index.de.md @@ -18,5 +18,3 @@ Die FIP Guide Community ist über die Online-Plattform _Discord_ erreichbar und Kontaktiere das Team hinter dem FIP Guide – wir sind für Fragen und Anmerkungen erreichbar und freuen uns auf deinen Inhaltsbeitrag. {{< contact-form >}} - -Oder schreibe uns eine Mail: [nextstop@fipguide.org](mailto:nextstop@fipguide.org) diff --git a/content/contact/index.en.md b/content/contact/index.en.md index 071cf3c44..f0795dbf0 100644 --- a/content/contact/index.en.md +++ b/content/contact/index.en.md @@ -18,5 +18,3 @@ The FIP Guide Community is available on the online platform _Discord_ and suppor Contact the team behind the FIP Guide – we are here for questions and comments and look forward to your content contribution. {{< contact-form >}} - -Or write us an email: [nextstop@fipguide.org](mailto:nextstop@fipguide.org) diff --git a/content/contact/index.fr.md b/content/contact/index.fr.md index b1a6b4fe3..1add91886 100644 --- a/content/contact/index.fr.md +++ b/content/contact/index.fr.md @@ -18,5 +18,3 @@ La communauté FIP Guide est accessible via la plateforme en ligne _Discord_ et Contactez l'équipe derrière le FIP Guide – nous sommes à votre disposition pour vos questions, remarques ou contributions de contenu. {{< contact-form >}} - -Ou écrivez-nous un e-mail : [nextstop@fipguide.org](mailto:nextstop@fipguide.org) diff --git a/layouts/shortcodes/contact-form.html b/layouts/shortcodes/contact-form.html index 23e3f251a..41df2e7af 100644 --- a/layouts/shortcodes/contact-form.html +++ b/layouts/shortcodes/contact-form.html @@ -32,7 +32,48 @@ - + + + + + + + + @@ -104,17 +105,21 @@ }); document.getElementById("topic").addEventListener("change", function () { - // Alle Gruppen verstecken - document - .querySelectorAll("[data-field]") - .forEach((field) => (field.style.display = "none")); + document.querySelectorAll("[data-field]").forEach((field) => { + field.style.display = "none"; + field + .querySelectorAll("input, textarea, select") + .forEach((el) => el.removeAttribute("required")); + }); - // Ausgewählte Gruppe anzeigen const value = this.value; if (value) { document.querySelectorAll("[data-field]").forEach((el) => { if (el.dataset.field.split(",").includes(value)) { el.style.display = "flex"; + el.querySelectorAll("input, textarea, select").forEach((input) => + input.setAttribute("required", "required"), + ); } }); } From b38cd31423f14bbde0a2e0a9ed8ee336b65acb18 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Fri, 3 Apr 2026 15:34:54 +0200 Subject: [PATCH 03/10] feat: add i11n --- i18n/en.yaml | 15 +++++++++++++++ i18n/fr.yaml | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/i18n/en.yaml b/i18n/en.yaml index f39268855..8c1c544f6 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -25,6 +25,21 @@ contact: successMessage: >- Thank you! Your message has been sent successfully. We'll get back to you as soon as possible. + topic: + accessibility: Report an accessibility barrier + accessibility-note: 'Please describe how we can improve:' + accessibility-webpage: Affected page (URL) + empty: Please select … + feedback: Feedback on the website + general: General question + general-note: >- + Before submitting your request, please check whether the answer is already + available in the FIP Guide. Have a look at the appropriate + [country](/country) or [operator](/operator) page. You can also use the + search for this. + label: 'Topic:' + others: Other + request: Suggest a content addition or correction contentNavigation: button: Open and close content overview relatedCountries: Countries in which the operator is active diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 33c82f0aa..6e49648d4 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -25,6 +25,21 @@ contact: successMessage: >- Merci ! Votre message a été envoyé avec succès. Nous vous répondrons dès que possible. + topic: + accessibility: Signaler une barrière d'accessibilité + accessibility-note: 'Veuillez décrire comment nous pouvons nous améliorer :' + accessibility-webpage: Page concernée (URL) + empty: Veuillez sélectionner … + feedback: Commentaires sur le site Web + general: Question générale + general-note: >- + Avant d'envoyer votre demande, veuillez vérifier si la réponse est déjà + disponible dans le FIP Guide. Consultez la page du [pays](/country) ou de + l'[opérateur](/operator) appropriée. Vous pouvez également utiliser la + recherche à cet effet. + label: 'Sujet :' + others: Autre + request: Proposer un ajout ou une correction de contenu contentNavigation: button: Ouvrir et fermer l’aperçu du contenu relatedCountries: Pays dans lesquels l'opérateur est actif @@ -81,6 +96,7 @@ fipValidity: footer-love: aria-label: Fait avec amour en Europe text: Fait avec ♥️ en Europe +general: Général highlight: confusion: Risque de confusion important: Informations importantes From edd08337ddad7bab082fc53cb465ef8bcdb07d8d Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Sat, 4 Apr 2026 15:44:54 +0200 Subject: [PATCH 04/10] feat: add options --- layouts/shortcodes/contact-form.html | 63 +++++++++++++++++++++------- 1 file changed, 47 insertions(+), 16 deletions(-) diff --git a/layouts/shortcodes/contact-form.html b/layouts/shortcodes/contact-form.html index c7bc69478..23e3f381f 100644 --- a/layouts/shortcodes/contact-form.html +++ b/layouts/shortcodes/contact-form.html @@ -22,23 +22,16 @@ value="{{ ref . "contact" }}?success=true" /> - - - - + + + + From a8807c33b458dd0dffd76528ff119978a719043c Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Sat, 4 Apr 2026 20:23:27 +0200 Subject: [PATCH 05/10] feat: finalized german version --- i18n/de.yaml | 74 ++++++++++++++++++++++------ layouts/shortcodes/contact-form.html | 48 +++++++++++------- 2 files changed, 89 insertions(+), 33 deletions(-) diff --git a/i18n/de.yaml b/i18n/de.yaml index 4fcefd32e..37442f753 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -16,29 +16,75 @@ booking: visit-additional-information-website: Weitere Informationen visit-booking-website: Zur Buchungsseite contact: + accessibility: + label: 'Feedback zur Website: Barrierefreiheit' + message: 'Beschreibe bitte, wie wir uns verbessern können:' + webpage: Betroffene Seite (URL) + content: + label: 'Feedback zur Website: Inhaltliche Ergänzung oder Korrektur' emailLabel: 'E-Mail-Adresse:' emailSubject: Neue Nachricht vom FIP Guide + empty: Bitte wählen … + feedback: + label: 'Feedback zur Website: Lob und Kritik' + note: >- + Wir freuen uns über jedes Feedback, um die Website für unsere Kolleginnen + und Kollege der FIP-Mitglieder zu verbessern. + fipcard: + label: Beantragung von FIP Ausweis und FIP Freifahrtschein + note: >- + Leider können wir in diesem Fall nicht weiterhelfen. Wir sind ein + unabhängiges Community-Projekt und können daher die Ausstellung von FIP + Ausweisen und Freifahrtscheinen nicht beeinflussen. + + + Bitte wende dich an deine zuständige Personalabteilung. formAriaLabel: Kontaktformular + general: + label: Allgemeine Frage zur FIP-Nutzung + note: >- + Allgemeine Fragen beantworten wir auf der Seite [Übergreifende + Informationen](/generalinformation). Nutze auch gern die Suche für + konkrete Suchbegriffe. + + Detaillierte Informationen sind auf [Landesseiten](/country) und + [Betreiberseiten](/operator) zu finden. + + + Konkrete Fragen beantwortet die Community und das FIP Guide Team auf + [Discord](https://discord.gg/5nWS9Eu9zz). messageLabel: 'Nachricht:' nameLabel: 'Name:' + others: + label: Sonstiges + topicLabel: 'Zusammenfassung:' + routes: + label: Frage zu Reiserouten und Zügen + note: >- + Nutze die Suche, um passende Informationen zu deiner Reise zu finden. + + Detaillierte Informationen sind auf [Landesseiten](/country) und + [Betreiberseiten](/operator) zu lesen. + + + Konkrete Fragen beantwortet die Community und das FIP Guide Team auf + [Discord](https://discord.gg/5nWS9Eu9zz). submitButton: Absenden successMessage: >- Vielen Dank! Deine Nachricht wurde erfolgreich gesendet. Wir melden uns schnellstmöglich zurück. - topic: - accessibility: Barriere melden - accessibility-note: 'Beschreibe bitte, wie wir uns verbessern können:' - accessibility-webpage: Betroffene Seite (URL) - empty: Bitte wählen … - feedback: Feedback zur Website - general: Allgemeine Frage - general-note: >- - Bitte prüfe vor Absenden deiner Anfrage, ob die Antwort bereits im FIP - Guide vorhanden ist. Schaue auf der passenden Seite des [Landes](/country) - oder [Betreibers](/operator). Du kannst hierfür auch die Suche nutzen. - label: 'Thema:' - others: Sonstiges - request: Inhaltliche Ergänzung oder Korrektur vorschlagen + tickets: + label: Frage zum Ticketkauf und zu Reservierungen + note: >- + Wir können keine Tickets und Reservierungen für Züge verkaufen. + + Informationen zu den Buchungsmöglichkeiten findest du auf der + [Betreiberseite](/operator) des jeweiligen Unternehmens. + + + Konkrete Fragen beantwortet die Community und das FIP Guide Team auf + [Discord](https://discord.gg/5nWS9Eu9zz). + topicLabel: 'Thema:' contentNavigation: button: Inhaltsübersicht öffnen und schließen relatedCountries: Länder, in den der Betreibers aktiv ist diff --git a/layouts/shortcodes/contact-form.html b/layouts/shortcodes/contact-form.html index 23e3f381f..c2095bb18 100644 --- a/layouts/shortcodes/contact-form.html +++ b/layouts/shortcodes/contact-form.html @@ -23,55 +23,55 @@ />
{{- partial "highlight" - (dict "Content" (T "contact.topic.general-note" | .Page.RenderString) "Type" "important") + (dict "Content" (T "contact.general.note" | .Page.RenderString) "Type" "important") -}}
{{- partial "highlight" - (dict "Content" (T "contact.topic.routes-note" | .Page.RenderString) "Type" "important") + (dict "Content" (T "contact.routes.note" | .Page.RenderString) "Type" "important") -}}
{{- partial "highlight" - (dict "Content" (T "contact.topic.tickets-note" | .Page.RenderString) "Type" "important") + (dict "Content" (T "contact.tickets.note" | .Page.RenderString) "Type" "important") -}}
{{- partial "highlight" - (dict "Content" (T "contact.topic.fipcard-note" | .Page.RenderString) "Type" "important") + (dict "Content" (T "contact.fipcard.note" | .Page.RenderString) "Type" "important") -}}
-
- {{ T "contact.topic.feedback-note" }} -
+

+ {{ T "contact.feedback.note" }} +

+ + +
+