forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact_site_support_email_body.mustache
102 lines (95 loc) · 3.08 KB
/
contact_site_support_email_body.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_user/contact_site_support_email_body
Support email email body.
Example context (json):
{
"subject": "email subject",
"notloggedinuser": true,
"name": "Sender name",
"email": "[email protected]",
"description": "Support request message"
}
}}
<head>
<style>
.table {
font-size: 18px;
margin-bottom: 20px;
width: 40%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.alert {
position: relative;
padding: 0.75rem 1.25rem;
margin-bottom: 1rem;
border: 0 solid transparent;
border-radius: 0.5rem;
}
.alert-warning {
color: #7d5a29;
background-color: #fcefdc;
border-color: #fbe8cd;
}
.subject {
background-color: #f8f9fa;
}
</style>
</head>
<body>
<table class="table">
<tr>
<td class="subject"><br /><b>{{#str}}subject{{/str}}:</b> {{subject}}<br /><br /></td>
</tr>
<tr>
<td>
<table style="width: 100%;">
<thead>
<tr>
{{#notloggedinuser}}
<td class="alert alert-warning" colspan="2">
{{#str}}supportmessagesentforloggedoutuser, user{{/str}}
</td>
{{/notloggedinuser}}
</tr>
</thead>
<tbody>
<tr>
<td colspan="2"><br /></td>
</tr>
<tr>
<td> <b>{{#str}}name{{/str}}</b></td>
<td>{{name}}</td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<tr style="border-top: 10px" >
<td > <b>{{#str}}email{{/str}}</b></td>
<td>{{email}}</td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<tr>
<td> <b>{{#str}}description{{/str}}</b></td>
<td>{{message}}</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</body>