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_course/completion_automatic
|
|
|
19 |
|
|
|
20 |
Template for displaying an automatic completion rule and its status.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"statuscomplete": 1,
|
|
|
25 |
"description": "View",
|
|
|
26 |
"istrackeduser": true,
|
|
|
27 |
"accessibledescription": "Done: View (Set by Admin User)"
|
|
|
28 |
}
|
|
|
29 |
}}
|
|
|
30 |
{{#istrackeduser}}
|
|
|
31 |
{{#statuscomplete}}
|
|
|
32 |
<span class="badge-sm badge-success my-1 mr-1" role="listitem" {{!
|
|
|
33 |
}}{{#accessibledescription}}{{!
|
|
|
34 |
}}title="{{.}}" {{!
|
|
|
35 |
}}aria-label="{{.}}" {{!
|
|
|
36 |
}}{{/accessibledescription}}>
|
|
|
37 |
<svg width="14" height="14" fill="none" viewBox="0 0 24 24">
|
|
|
38 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5.75 12.8665L8.33995 16.4138C9.15171 17.5256 10.8179 17.504 11.6006 16.3715L18.25 6.75"/>
|
|
|
39 |
</svg>
|
|
|
40 |
<strong class="mx-2">{{#str}}completion_automatic:done, core_course{{/str}}</strong> <span class="font-weight-normal">{{description}}</span>
|
|
|
41 |
</span>
|
|
|
42 |
{{/statuscomplete}}
|
|
|
43 |
{{#statuscompletefail}}
|
|
|
44 |
<span class="badge-sm badge-danger my-1 mr-1" role="listitem" {{!
|
|
|
45 |
}}{{#accessibledescription}}{{!
|
|
|
46 |
}}title="{{.}}" {{!
|
|
|
47 |
}}aria-label="{{.}}" {{!
|
|
|
48 |
}}{{/accessibledescription}}>
|
|
|
49 |
<strong class="mr-2">{{#str}}completion_automatic:failed, core_course{{/str}}</strong> <span class="font-weight-normal">{{description}}</span>
|
|
|
50 |
</span>
|
|
|
51 |
{{/statuscompletefail}}
|
|
|
52 |
{{#statusincomplete}}
|
|
|
53 |
<span class="badge-sm badge-secondary my-1 mr-1" role="listitem" {{!
|
|
|
54 |
}}{{#accessibledescription}}{{!
|
|
|
55 |
}}title="{{.}}" {{!
|
|
|
56 |
}}aria-label="{{.}}" {{!
|
|
|
57 |
}}{{/accessibledescription}}>
|
|
|
58 |
<strong>{{#str}}completion_automatic:todo, core_course{{/str}}</strong> <span class="ml-2 font-weight-normal">{{description}}</span>
|
|
|
59 |
</span>
|
|
|
60 |
{{/statusincomplete}}
|
|
|
61 |
{{/istrackeduser}}
|
|
|
62 |
{{^istrackeduser}}
|
|
|
63 |
<span class="badge-sm badge-secondary my-1 mr-1" role="listitem">
|
|
|
64 |
<span>{{description}}</span>
|
|
|
65 |
</span>
|
|
|
66 |
{{/istrackeduser}}
|