1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
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.
|
|
|
8 |
|
|
|
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.
|
|
|
13 |
|
|
|
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/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template theme_boost/login
|
|
|
19 |
|
|
|
20 |
Login page template
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"output": {
|
|
|
25 |
"doctype": "<!DOCTYPE html>",
|
|
|
26 |
"page_title": "Login page",
|
|
|
27 |
"favicon": "favicon.ico",
|
|
|
28 |
"main_content": "<h1>Headers keep HTML validators happy</h1>"
|
|
|
29 |
}
|
|
|
30 |
}
|
|
|
31 |
}}
|
|
|
32 |
{{> theme_boost/head }}
|
|
|
33 |
|
|
|
34 |
<body {{{ bodyattributes }}}>
|
|
|
35 |
{{> core/local/toast/wrapper}}
|
|
|
36 |
|
|
|
37 |
<div id="page-wrapper">
|
|
|
38 |
|
|
|
39 |
{{{ output.standard_top_of_body_html }}}
|
|
|
40 |
|
|
|
41 |
<div id="page" class="container-fluid pt-5 mt-0">
|
|
|
42 |
<div id="page-content" class="row">
|
|
|
43 |
<div id="region-main-box" class="col-12">
|
|
|
44 |
<section id="region-main" class="col-12 h-100" aria-label="{{#str}}content{{/str}}">
|
|
|
45 |
<div class="login-wrapper">
|
|
|
46 |
<div class="login-container">
|
|
|
47 |
{{{ output.main_content }}}
|
|
|
48 |
</div>
|
|
|
49 |
</div>
|
|
|
50 |
</section>
|
|
|
51 |
</div>
|
|
|
52 |
</div>
|
|
|
53 |
</div>
|
|
|
54 |
{{> theme_boost/footer }}
|
|
|
55 |
</div>
|
|
|
56 |
|
|
|
57 |
</body>
|
|
|
58 |
</html>
|
|
|
59 |
{{#js}}
|
|
|
60 |
M.util.js_pending('theme_boost/loader');
|
|
|
61 |
require(['theme_boost/loader'], function() {
|
|
|
62 |
M.util.js_complete('theme_boost/loader');
|
|
|
63 |
});
|
|
|
64 |
{{/js}}
|