2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template core_user/status_details
20 Template for the user enrolment status details.
22 Context variables required for this template:
23 * fullname string - The user's full name.
24 * coursename string - The course name.
25 * enrolinstancename string - The enrolment instance name.
26 * status string - The enrolment status.
27 * statusclass string - The CSS class for the enrolment status.
28 * timestart string - Optional. The enrolment time start.
29 * timeend string - Optional. The enrolment time end.
30 * timeenrolled string - Optional. The time when the user was enrolled.
32 Example context (json):
34 "fullname": "Student John",
36 "enrolinstancename": "Manual enrolment",
38 "statusclass": "badge bg-success text-white",
39 "timestart": "1 January 2017",
40 "timeend": "31 January 2018",
41 "timeenrolled": "31 December 2016"
44 <table class="table user-enrol-details">
47 {{#str}}fullname{{/str}}
49 <td class="user-fullname">
55 {{#str}}course{{/str}}
57 <td class="user-course">
63 {{#str}}enrolmentmethod, enrol{{/str}}
65 <td class="user-enrol-instance">
66 {{enrolinstancename}} {{{editenrollink}}}
71 {{#str}}participationstatus, enrol{{/str}}
73 <td class="user-enrol-status">
74 <span class="{{statusclass}}">
82 {{#str}}enroltimestart, enrol{{/str}}
84 <td class="user-enrol-timestart">
92 {{#str}}enroltimeend, enrol{{/str}}
94 <td class="user-enrol-timeend">
102 {{#str}}enroltimecreated, enrol{{/str}}
104 <td class="user-enrol-timeenrolled">