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.
31 Example context (json):
33 "fullname": "Student John",
35 "enrolinstancename": "Manual enrolment",
37 "statusclass": "label label-success",
38 "timestart": "1 January 2017",
39 "timeend": "31 January 2018"
42 <table class="table user-enrol-details">
45 {{#str}}fullname{{/str}}
47 <td class="user-fullname">
53 {{#str}}course{{/str}}
55 <td class="user-course">
61 {{#str}}enrolmentmethod, enrol{{/str}}
63 <td class="user-enrol-instance">
64 {{enrolinstancename}} {{{editenrollink}}}
69 {{#str}}participationstatus, enrol{{/str}}
71 <td class="user-enrol-status">
72 <span class="{{statusclass}}">
80 {{#str}}enroltimestart, enrol{{/str}}
82 <td class="user-enrol-timestart">
90 {{#str}}enroltimeend, enrol{{/str}}
92 <td class="user-enrol-timeend">