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 mod_forum/local/grades/local/grader/grading
19
 
20
    Classes required for JS:
21
    * none
22
 
23
    Data attributes required for JS:
24
    * data-region="user_picker"
25
    * data-region="grade"
26
    * data-region="grade-errors"
27
 
28
    Context variables required for this template:
29
    * none
30
 
31
    Example context (json):
32
    {
33
    }
34
}}
35
{{<core/drawer}}
36
    {{$drawerid}}grading-drawer-{{uniqid}}{{/drawerid}}
37
    {{$drawerclasses}}grader-grading-panel flex-shrink-0 {{/drawerclasses}}
38
    {{$drawercontent}}
39
        <div class="h-100 w-100 bg-white d-flex flex-column" role="region" aria-label="{{#str}} forumgradingpanel, mod_forum {{/str}}">
40
            <div class="flex-shrink-0 d-flex flex-column">
41
                <div class="header-container">
42
                    <div class="info-container d-flex align-items-center" data-region="grading-info-container">
43
                        <button
44
                            class="btn btn-icon btn-secondary"
45
                            data-action="collapse-grading-drawer"
46
                            aria-controls="grading-drawer-{{uniqid}}"
47
                            aria-expanded="true"
48
                            title="{{#str}} closebuttontitle, core {{/str}}"
49
                            aria-label="{{#str}} hidegraderpanel, mod_forum {{/str}}"
50
                        >
51
                            <span class="dir-ltr-hide">{{#pix}} t/left, core {{/pix}}</span>
52
                            <span class="dir-rtl-hide">{{#pix}} t/right, core {{/pix}}</span>
53
                        </button>
54
                        <div class="ml-3 text-left" data-region="status-container">
55
                            {{> mod_forum/local/grades/local/grader/status_placeholder }}
56
                        </div>
57
                    </div>
58
                    <div
59
                        id="searchbox-{{uniqid}}"
60
                        class="user-search-container d-flex flex-grow-1 align-items-center collapsed"
61
                        data-region="user-search-container"
62
                    >
63
                        <div class="search-input-container w-100">
64
                            <span class="search-icon d-flex justify-content-center align-items-center">
65
                                <span class="search-input-icon">
66
                                    <svg width="20" height="20" fill="none" viewBox="0 0 24 24">
67
                                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 19.25L15.5 15.5M4.75 11C4.75 7.54822 7.54822 4.75 11 4.75C14.4518 4.75 17.25 7.54822 17.25 11C17.25 14.4518 14.4518 17.25 11 17.25C7.54822 17.25 4.75 14.4518 4.75 11Z"></path>
68
                                    </svg>
69
                                </span>
70
                            </span>
71
                            <input
72
                                type="text"
73
                                data-region="user-search-input"
74
                                class="form-control"
75
                                placeholder="{{#str}} searchusers, mod_forum {{/str}}"
76
                                aria-labelledby="user-search-input-{{uniqid}}-label"
77
                            >
78
                            <span id="user-search-input-{{uniqid}}-label" class="sr-only">{{#str}}searchusers, mod_forum{{/str}}</span>
79
                            <button
80
                                class="toggle-search-button d-flex align-items-center justify-content-center"
81
                                aria-expanded="false"
82
                                aria-controls="searchbox-{{uniqid}}"
83
                                data-action="toggle-search"
84
                            >
85
                                <div class="expanded-icon" data-region="user-search-icon-hide">
86
                                    <svg width="18" height="18" fill="none" viewBox="0 0 24 24">
87
                                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M17.25 6.75L6.75 17.25"></path>
88
                                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M6.75 6.75L17.25 17.25"></path>
89
                                    </svg>
90
                                </div>
91
                                <div class="collapsed-icon" data-region="user-search-icon-show">
92
                                    <svg width="18" height="18" fill="none" viewBox="0 0 24 24">
93
                                        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 19.25L15.5 15.5M4.75 11C4.75 7.54822 7.54822 4.75 11 4.75C14.4518 4.75 17.25 7.54822 17.25 11C17.25 14.4518 14.4518 17.25 11 17.25C7.54822 17.25 4.75 14.4518 4.75 11Z"></path>
94
                                    </svg>
95
                                </div>
96
                            </button>
97
 
98
                        </div>
99
                    </div>
100
                </div>
101
                <div class="border-bottom px-3 pt-2" data-region="user_picker">
102
                    {{> mod_forum/local/grades/local/grader/user_picker_placeholder }}
103
                </div>
104
            </div>
105
            <div class="body-container position-relative d-flex flex-column overflow-auto" data-region="body-container">
106
                <div class="grader-grading-panel-display pt-3 overflow-auto" data-region="grading-panel-container">
107
 
108
                    <div class="grade-grade-box">
109
                        <h4 class="mb-3 d-inline-flex w-100 align-items-center">
110
                            <svg class="mr-2" width="20" height="20" fill="none" viewBox="0 0 24 24">
111
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.75 19.25L9 18.25L18.2929 8.95711C18.6834 8.56658 18.6834 7.93342 18.2929 7.54289L16.4571 5.70711C16.0666 5.31658 15.4334 5.31658 15.0429 5.70711L5.75 15L4.75 19.25Z"></path>
112
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 19.25H13.75"></path>
113
                            </svg>
114
                            {{#str}} gradingmodulename, core_grades, {{moduleName}} {{/str}}
115
                        </h4>
116
                        <div data-region="grade" class="grade-form">
117
                            {{> mod_forum/local/grades/local/grader/grade_placeholder }}
118
                        </div>
119
                    </div>
120
 
121
                    <div class="grade-notifications-box mt-2">
122
                        <h4 class="mb-3 d-inline-flex w-100 align-items-center">
123
                            {{#str}}notifications, core{{/str}}
124
                        </h4>
125
                        <div data-region="notification" role="radiogroup" aria-labelledby="send-student-notifications-setting">
126
                        <label class="form-check d-inline-flex align-items-center justify-content-start w-100 mr-2">
127
                            <input class="form-check-input" type="radio" name="sendstudentnotifications" value="1"{{#defaultsendnotifications}} checked{{/defaultsendnotifications}}/>
128
                            {{#str}}sendstudentnotificationsyes, mod_forum{{/str}}
129
                        </label>
130
                        <label class="form-check d-inline-flex align-items-center justify-content-start w-100">
131
                            <input class="form-check-input" type="radio" name="sendstudentnotifications" value="0"{{^defaultsendnotifications}} checked{{/defaultsendnotifications}}/>
132
                            {{#str}}sendstudentnotificationsno, mod_forum{{/str}}
133
                        </label>
134
                        {{#helpicon}}
135
                            {{>core/help_icon}}
136
                        {{/helpicon}}
137
                    </div>
138
                    <div data-region="grade-errors" role="alert" aria-live="assertive"></div>
139
                    </div>
140
                    <div data-region="grade-errors" role="alert" aria-live="assertive"></div>
141
                </div>
142
            </div>
143
            <div class="hidden overflow-auto" data-region="search-results-container"></div>
144
        </div>
145
        <div data-region="grade-errors" role="alert" aria-live="assertive"></div>
146
        <hr/>
147
    {{/drawercontent}}
148
{{/core/drawer}}