You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
5.1 KiB
148 lines
5.1 KiB
6 years ago
|
{{!
|
||
|
This file is part of Moodle - http://moodle.org/
|
||
|
|
||
|
Moodle is free software: you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation, either version 3 of the License, or
|
||
|
(at your option) any later version.
|
||
|
|
||
|
Moodle is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
GNU General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||
|
}}
|
||
|
{{!
|
||
|
@template mod_attendance/mobile_view_page
|
||
|
|
||
|
The main page to view the attendance activity
|
||
|
|
||
|
Classes required for JS:
|
||
|
* None
|
||
|
|
||
|
Data attibutes required for JS:
|
||
|
* All data attributes are required
|
||
|
|
||
|
Context variables required for this template:
|
||
|
* attendance
|
||
|
* summary
|
||
|
* cmid
|
||
|
|
||
|
Example context (json):
|
||
|
{
|
||
|
"attendance": {
|
||
|
"id": "1",
|
||
|
"course": "2",
|
||
|
"name": "Class Attendance",
|
||
|
"intro": "Intro"
|
||
|
},
|
||
|
"summary": {
|
||
|
"numtakensessions": "1",
|
||
|
"pointssessionscompleted": "2",
|
||
|
"percentagesessionscompleted": "2"
|
||
|
},
|
||
6 years ago
|
"cmid": "25",
|
||
|
"timestamp": "1234"
|
||
6 years ago
|
}
|
||
|
}}
|
||
6 years ago
|
{{=<% %>=}}
|
||
6 years ago
|
<div class="attendance_mobile_view_page">
|
||
6 years ago
|
<core-course-module-description description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"></core-course-module-description>
|
||
6 years ago
|
<%#showmessage%>
|
||
|
<%#messages%>
|
||
6 years ago
|
<span class="messages">
|
||
4 years ago
|
<ion-item class="ion-text-wrap">
|
||
|
<ion-label>{{ 'plugin.mod_attendance.<% string %>' | translate }}</ion-label>
|
||
6 years ago
|
</ion-item>
|
||
|
</span>
|
||
6 years ago
|
<%/messages%>
|
||
|
<%/showmessage%>
|
||
6 years ago
|
<%#sessions%>
|
||
|
<ion-item>
|
||
4 years ago
|
<ion-label>
|
||
|
<h2><% time %></h2>
|
||
|
<h3><% groupname %></h3>
|
||
|
<h3><% currentstatus %></h3>
|
||
|
<%#sessid%>
|
||
|
<ion-button core-site-plugins-new-content component="mod_attendance" method="<% attendancefunction %>" [args]="{cmid: <% cmid %>, courseid: <% courseid %>, sessid: <% sessid %>, timestamp: <% timestamp %>}">
|
||
|
{{ 'plugin.mod_attendance.submitattendance' | translate }}
|
||
|
</ion-button>
|
||
|
<%/sessid%>
|
||
|
</ion-label>
|
||
6 years ago
|
</ion-item>
|
||
|
<%/sessions%>
|
||
6 years ago
|
<ion-item>
|
||
4 years ago
|
<ion-label>
|
||
6 years ago
|
<ion-grid>
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.sessionscompleted' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.numtakensessions %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.pointssessionscompleted' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.pointssessionscompleted %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.percentagesessionscompleted' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.percentagesessionscompleted %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.sessionstotal' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.numallsessions %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.pointsallsessions' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.percentagesessionscompleted %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.percentageallsessions' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.allsessionspercentage %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.maxpossiblepoints' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.maxpossiblepoints %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
<ion-row>
|
||
4 years ago
|
<ion-col size="9" class="text-left ion-text-wrap">
|
||
6 years ago
|
{{ 'plugin.mod_attendance.maxpossiblepercentage' | translate }}
|
||
|
</ion-col>
|
||
4 years ago
|
<ion-col size="2" class="text-left">
|
||
6 years ago
|
<% summary.maxpossiblepercentage %>
|
||
|
</ion-col>
|
||
|
</ion-row>
|
||
|
|
||
|
</ion-grid>
|
||
4 years ago
|
</ion-label>
|
||
6 years ago
|
</ion-item>
|
||
|
</div>
|