Skip to content

feat: add email booking mail templates - #999

Merged
MoritzWeber0 merged 16 commits into
mainfrom
feat/email-booking-mail-templates
Aug 17, 2026
Merged

feat: add email booking mail templates#999
MoritzWeber0 merged 16 commits into
mainfrom
feat/email-booking-mail-templates

Conversation

@lenderom

@lenderom lenderom commented Jun 13, 2026

Copy link
Copy Markdown
Member

Fixes #994

What

  • add reusable mail buttons for all email booking ways, including:
    • Send email (FIP 50 Ticket)
    • Send email (Reservation), where applicable
  • use per-page frontmatter templates via params.mail_templates so each booking way has its own subject/body/recipient
  • add a leading mail icon to mail buttons
  • fix mailto encoding to keep spaces in message text (%20 instead of +)
  • align all email templates for multi-traveler bookings with nested passenger blocks
  • align placeholders and wording consistency across de/en/fr content

Included booking pages

  • content/booking/attica-email/index.de.md
  • content/booking/attica-email/index.en.md
  • content/booking/attica-email/index.fr.md
  • content/booking/ffestiniogtravel-email/index.de.md
  • content/booking/ffestiniogtravel-email/index.en.md
  • content/booking/ffestiniogtravel-email/index.fr.md
  • content/booking/internationalrail-email/index.de.md
  • content/booking/internationalrail-email/index.en.md
  • content/booking/internationalrail-email/index.fr.md
  • content/booking/stena-line-bv-email/index.de.md
  • content/booking/stena-line-bv-email/index.en.md
  • content/booking/stena-line-bv-email/index.fr.md
  • content/booking/stena-line-limited-email/index.de.md
  • content/booking/stena-line-limited-email/index.en.md
  • content/booking/stena-line-limited-email/index.fr.md

Template/i18n changes

  • layouts/partials/booking-links.html
  • layouts/partials/button.html
  • i18n/de.yaml
  • i18n/en.yaml
  • i18n/fr.yaml

Depends on #998

Fixes #995

@lenderom lenderom added content Improvements or additions to the content (countries, news, operators, general content) technical Technical issues, e.g. related to Hugo, HTML, CSS, deployment, etc. labels Jun 13, 2026
@netlify

netlify Bot commented Jun 13, 2026

Copy link
Copy Markdown

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit c0ee128
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/6a837c1a762ab5000820bce1
😎 Deploy Preview https://deploy-preview-999--fipguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread content/booking/attica-email/index.de.md Outdated
Comment thread content/booking/ffestiniogtravel-email/index.de.md
Comment thread content/booking/stena-line-bv-email/index.fr.md
Comment thread layouts/partials/booking-links.html Outdated

@MoritzWeber0 MoritzWeber0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool idea! In the future we could even try to build a form where users can fill the placeholder fields and then send it via email :)

@lenderom
lenderom requested a review from MoritzWeber0 June 14, 2026 15:53
Comment thread layouts/partials/booking-links.html Outdated
Comment thread layouts/partials/booking-links.html Outdated
Base automatically changed from fix/stena-line-booking-requirements-995 to main June 16, 2026 06:34
@lenderom
lenderom requested a review from MoritzWeber0 June 22, 2026 17:02
Comment thread layouts/partials/booking-links.html Outdated
@lenderom
lenderom requested a review from MoritzWeber0 July 26, 2026 15:14
@lenderom
lenderom requested review from MoritzWeber0 and removed request for MoritzWeber0 August 15, 2026 10:43
@MoritzWeber0

Copy link
Copy Markdown
Member

I simplified the implementation slightly and added support for DecapCMS for the email templates. Thanks for implementation ❤️

@MoritzWeber0
MoritzWeber0 merged commit 366c760 into main Aug 17, 2026
3 checks passed
@MoritzWeber0
MoritzWeber0 deleted the feat/email-booking-mail-templates branch August 17, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Improvements or additions to the content (countries, news, operators, general content) technical Technical issues, e.g. related to Hugo, HTML, CSS, deployment, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stena Line BV Feedback Mail booking link default text

2 participants