Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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 core_admin/settings
19
 
20
    Admin settings form template.
21
 
22
    Context variables required for this template:
23
    * actionurl - url to submit to
24
    * params - list of parameters containing name and value
25
    * return - page to return to
26
    * title - form title
27
    * settings - raw html for settings
28
    * showsave - true if we need save buttons
29
 
30
    Example context (json):
31
    {
32
        "actionurl": "/",
33
        "return": "/",
34
        "title": "Settings Form",
35
        "settings": "RAW HTML",
36
        "showsave": true
37
    }
38
}}
39
{{!
40
    Settings.
41
}}
42
<form action="{{actionurl}}" method="post" id="adminsettings">
43
    <div class="settingsform">
44
        {{#params}}
45
            <input type="hidden" name="{{name}}" value="{{value}}">
46
            <input type="hidden" name="action" value="save-settings">
47
        {{/params}}
48
        <input type="hidden" name="sesskey" value="{{sesskey}}">
49
        <input type="hidden" name="return" value="{{return}}">
50
        {{#title}}
51
            <h3>{{title}}</h3>
52
        {{/title}}
53
        {{{settings}}}
54
        {{#showsave}}
55
            <div class="rui-sticky-btns">
56
                <button type="submit" class="btn btn-primary">
57
                    <svg class="mr-2" width="20" height="20" fill="none" viewBox="0 0 24 24">
58
                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.75 12.8665L8.33995 16.4138C9.15171 17.5256 10.8179 17.504 11.6006 16.3715L18.25 6.75"></path>
59
                    </svg>
60
                    {{#str}}savechanges, admin{{/str}}
61
                </button>
62
            </div>
63
        {{/showsave}}
64
    </div>
65
</form>