This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
php-frs/templates/mail_train.mustache

79 lines
4.3 KiB
Plaintext

Return-Path: {{user.email}}
From: Fake Reservation System <{{user.email}}>
Subject: [FRS] {{reservationFor_trainCompany.value}} - {{reservationFor_trainNumber.value}} - {{reservationFor_departureTime.value_human}} - {{form_type_uc}} Reservation
Date: {{email_date}}
X-Mailer: FRS/1.0
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
<html>
<body>
<p>
<h1>YOUR TRAIN RESERVATION</h1>
</p>
<p>
<div itemscope itemtype="http://schema.org/TrainReservation">
Reservation number: <span itemprop="reservationNumber">{{reservationNumber.value}}</span><br/>
<link itemprop="reservationStatus" href="http://schema.org/Reservation{{reservationStatus.value}}"/>
<link itemprop="url" href="{{url.value}}"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="{{underName_name.value}}"/>
<meta itemprop="email" content="{{underName_email.value}}"/>
</div>
<div itemprop="bookingAgent" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="{{bookingAgent_name.value}}"/>
<link itemprop="url" href="{{bookingAgent_url.value}}"/>
</div>
<meta itemprop="bookingTime" content="{{bookingTime.value_iso8601}}"/>
<link itemprop="cancelReservationUrl" href="{{cancelReservationUrl.value}}"/>
<link itemprop="checkinUrl" href="{{checkinUrl.value}}"/>
<link itemprop="confirmReservationUrl" href="{{confirmReservationUrl.value}}"/>
<meta itemprop="modifiedTime" content="{{modifiedTime.value_iso8601}}"/>
<link itemprop="modifyReservationUrl" href="{{modifyReservationUrl.value}}"/>
<div itemprop="programMembership" itemscope itemtype="http://schema.org/ProgramMembership">
<meta itemprop="memberNumber" content="{{programMembership_memberNumber.value}}"/>
<meta itemprop="program" content="{{programMembership_program.value}}"/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/TrainTrip">
<meta itemprop="trainCode" content="{{reservationFor_trainCode.value}}"/>
<meta itemprop="trainName" content="{{reservationFor_trainName.value}}"/>
Train: <span itemprop="trainCompany">{{reservationFor_trainCompany.value}}</span> -
<span itemprop="trainNumber">{{reservationFor_trainNumber.value}}</span><br/>
<br/>
<meta itemprop="departureTime" content="{{reservationFor_departureTime.value_iso8601}}"/>
Departs: {{reservationFor_departureTime.value_human}} from
<div itemprop="departureStation" itemscope itemtype="http://schema.org/TrainStation">
<span itemprop="name">{{reservationFor_departureStation_name.value}}</span>
</div>
(Platform <span itemprop="departurePlatform">{{reservationFor_departurePlatform.value}}</span>)<br/>
<br/>
<meta itemprop="arrivalTime" content="{{reservationFor_arrivalTime.value_iso8601}}"/>
Arrives: {{reservationFor_arrivalTime.value_human}} at
<div itemprop="arrivalStation" itemscope itemtype="http://schema.org/TrainStation">
<span itemprop="name">{{reservationFor_arrivalStation_name.value}}</span>
</div>
(Platform <span itemprop="arrivalPlatform">{{reservationFor_arrivalPlatform.value}}</span>)<br/>
</div>
<div itemprop="reservedTicket" itemscope itemtype="http://schema.org/Ticket">
<meta itemprop="additionalTicketText" content="{{reservedTicket_additionalTicketText.value}}"/>
<link itemprop="downloadUrl" href="{{reservedTicket_downloadUrl.value}}"/>
Price: <span itemprop="price">{{reservedTicket_price.value}}</span> <span itemprop="priceCurrency">{{reservedTicket_priceCurrency.value}}</span>
<link itemprop="printUrl" href="{{reservedTicket_printUrl.value}}"/>
<div itemprop="ticketedSeat" itemscope itemtype="http://schema.org/Seat">
Seat: <span itemprop="seatingType">{{reservedTicket_ticketedSeat_seatingType.value}}</span>,
<span itemprop="seatRow">{{reservedTicket_ticketedSeat_seatRow.value}}</span>,
<span itemprop="seatNumber">{{reservedTicket_ticketedSeat_seatNumber.value}}</span>)<br/>
</div>
<meta itemprop="ticketNumber" content="{{reservedTicket_ticketNumber.value}}"/>
<meta itemprop="ticketToken" content="{{reservedTicket_ticketToken.value}}"/>
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="{{reservedTicket_underName_name.value}}"/>
</div>
</div>
</div>
</p>
</body>
</html>