Bugfixes with missing form_type variable and wrong mail subject. Also
added proper status page after mail sending.
This commit is contained in:
17
templates/mail_failed_html.mustache
Normal file
17
templates/mail_failed_html.mustache
Normal file
@@ -0,0 +1,17 @@
|
||||
{{> html_head}}
|
||||
{{> mdl_head}}
|
||||
{{> mdl_content_head}}
|
||||
|
||||
<div class="frs-crumbs mdl-color-text--grey-500">
|
||||
<a href="./">Fake Reservation System</a> > Send Reservation
|
||||
</div>
|
||||
|
||||
<h3>Mail sending FAILED</h3>
|
||||
|
||||
<p>
|
||||
There was an error sending the mail.
|
||||
</p>
|
||||
|
||||
{{> mdl_content_foot}}
|
||||
{{> mdl_foot}}
|
||||
{{> html_foot}}
|
||||
@@ -1,5 +1,5 @@
|
||||
From: Fake Reservation System <{{user.email}}>
|
||||
Subject: [FRS] {{action_uc}} Reservation
|
||||
Subject: [FRS] {{form_type_uc}} Reservation
|
||||
Date: {{email_date}}
|
||||
X-Mailer: FRS/1.0
|
||||
MIME-Version: 1.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
From: Fake Reservation System <{{user.email}}>
|
||||
Subject: [FRS] {{action_uc}} Reservation
|
||||
Subject: [FRS] {{form_type_uc}} Reservation
|
||||
Date: {{email_date}}
|
||||
X-Mailer: FRS/1.0
|
||||
MIME-Version: 1.0
|
||||
@@ -19,11 +19,11 @@ Content-Type: text/html; charset=utf-8
|
||||
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/LodgingBusiness">
|
||||
Hotel: <span itemprop="name">{{reservationFor_name.value}}</span><br/>
|
||||
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
<meta itemprop="streetAddress" content="{{reservationFor_address_streetAddress.value}}"/>
|
||||
<meta itemprop="addressLocality" content="{{reservationFor_address_addressLocality.value}}"/>
|
||||
<meta itemprop="addressRegion" content="{{reservationFor_address_addressRegion.value}}"/>
|
||||
<meta itemprop="postalCode" content="{{reservationFor_address_postalCode.value}}"/>
|
||||
<meta itemprop="addressCountry" content="{{reservationFor_address_addressCountry.value}}"/>
|
||||
<span itemprop="streetAddress">{{reservationFor_address_streetAddress.value}}</span><br/>
|
||||
<span itemprop="addressLocality">{{reservationFor_address_addressLocality.value}}</span><br/>
|
||||
<span itemprop="addressRegion">{{reservationFor_address_addressRegion.value}}</span><br/>
|
||||
<span itemprop="postalCode">{{reservationFor_address_postalCode.value}}</span>
|
||||
<span itemprop="addressCountry">{{reservationFor_address_addressCountry.value}}</span><br/>
|
||||
</div>
|
||||
Tel.: <span itemprop="telephone">{{reservationFor_telephone.value}}</span><br/>
|
||||
<a itemprop="url" href="{{reservationFor_url.value}}">Homepage</a><br/>
|
||||
|
||||
17
templates/mail_sent_html.mustache
Normal file
17
templates/mail_sent_html.mustache
Normal file
@@ -0,0 +1,17 @@
|
||||
{{> html_head}}
|
||||
{{> mdl_head}}
|
||||
{{> mdl_content_head}}
|
||||
|
||||
<div class="frs-crumbs mdl-color-text--grey-500">
|
||||
<a href="./">Fake Reservation System</a> > Send Reservation
|
||||
</div>
|
||||
|
||||
<h3>Mail sent</h3>
|
||||
|
||||
<p>
|
||||
Check your inbox.
|
||||
</p>
|
||||
|
||||
{{> mdl_content_foot}}
|
||||
{{> mdl_foot}}
|
||||
{{> html_foot}}
|
||||
Reference in New Issue
Block a user