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
            <h2>{{title}}</h2>
52
        {{/title}}
53
        {{{settings}}}
54
        {{#showsave}}
55
            <div class="row">
56
                <div class="offset-sm-3 col-sm-3">
57
                    <button type="submit" class="btn btn-primary">{{#str}}savechanges, admin{{/str}}</button>
58
                </div>
59
            </div>
60
        {{/showsave}}
61
    </div>
62
</form>