Skip to content

Commit 2bc0c82

Browse files
committed
MAGETWO-69668: [#7291] Change the default contact form email template to HTML #9786
1 parent 9beb464 commit 2bc0c82

File tree

2 files changed

+29
-6
lines changed

2 files changed

+29
-6
lines changed

app/code/Magento/Contact/view/frontend/email/submitted_form.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,21 @@
1414

1515
{{template config_path="design/email/header_template"}}
1616

17-
<ul>
18-
<li>{{trans "Name: %name" name=$data.name}}</li>
19-
<li>{{trans "Email: %email" email=$data.email}}</li>
20-
<li>{{trans "Phone Number: %telephone" telephone=$data.telephone}}</li>
21-
<li>{{trans "Comment: %comment" comment=$data.comment}}</li>
22-
</ul>
17+
<table class="message-details">
18+
<tr>
19+
<th>{{trans "Name"}}</th>
20+
<td>{{var data.name}}</td>
21+
</tr>
22+
<tr>
23+
<th>{{trans "Email"}}</th>
24+
<td>{{var data.email}}</td>
25+
</tr>
26+
<tr>
27+
<th>{{trans "Phone"}}</th>
28+
<td>{{var data.telephone}}</td>
29+
</tr>
30+
</table>
31+
<p><strong>{{trans "Message"}}</strong></p>
32+
<p>{{var data.comment}}</p>
2333

2434
{{template config_path="design/email/footer_template"}}

app/design/frontend/Magento/blank/web/css/source/_email-base.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,16 @@ body {
287287
}
288288
}
289289
}
290+
291+
.message-details {
292+
margin-bottom: @indent__s;
293+
294+
th,
295+
td {
296+
padding-bottom: @indent__xs;
297+
298+
& + td {
299+
padding-left: @indent__s;
300+
}
301+
}
302+
}

0 commit comments

Comments
 (0)