Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
9 ariadna 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 block_openai_chat/report_page
19
 
20
    This template renders the report page form
21
 
22
    Example context (json):
23
    {
24
        "courseid": int, the ID of the course we are looking at
25
        "link": string, the URL for the form action
26
        "user": string, the value of the user field
27
        "starttime": string, the value of the starttime field
28
        "endtime": string, the value of the endtime field
29
    }
30
}}
31
 
32
<form class='block_openai_chat' method='GET' action='{{link}}'>
33
    <input type='hidden' name='courseid' value='{{courseid}}' />
34
    <div class='report_container'>
35
        <div style='display: flex; flex-direction: column'>
36
            <label for='user'>Search by user name</label>
37
            <input name='user' type='text' value='{{user}}' placeholder='User name'/>
38
        </div>
39
        <div style='display: flex; flex-direction: column'>
40
            <label for='starttime'>Start time</label>
41
            <input type='datetime-local' name='starttime' value='{{starttime}}' />
42
        </div>
43
        <div style='display: flex; flex-direction: column'>
44
            <label for='endtime'>End time</label>
45
            <input type='datetime-local' name='endtime' value='{{endtime}}' />
46
        </div>
47
    </div>
48
    <button class='btn btn-primary' type='submit'>Search</button>
49
</form>
50
<br />