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