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.
104 lines
3.4 KiB
104 lines
3.4 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_user_form
|
||
|
|
||
|
The page to take attendance
|
||
|
|
||
|
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"
|
||
|
},
|
||
|
"cmid": "25",
|
||
|
"courseid": "4",
|
||
6 years ago
|
"sessid": "43",
|
||
|
"btnargs" : ""
|
||
6 years ago
|
}
|
||
|
}}
|
||
|
{{=<% %>=}}
|
||
6 years ago
|
<div class="attendance_mobile_teacher_form">
|
||
6 years ago
|
<span class="description">
|
||
6 years ago
|
<core-course-module-description description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"></core-course-module-description>
|
||
6 years ago
|
</span>
|
||
6 years ago
|
<%#showmessage%>
|
||
|
<%#messages%>
|
||
6 years ago
|
<span class="messages">
|
||
|
<ion-item>
|
||
|
{{ 'plugin.mod_attendance.<% string %>' | translate }}
|
||
|
</ion-item>
|
||
|
</span>
|
||
6 years ago
|
<%/messages%>
|
||
|
<%/showmessage%>
|
||
6 years ago
|
<span class="attendance_selectall">
|
||
|
<ion-item>
|
||
|
{{ 'plugin.mod_attendance.setallstatuses' | translate }}
|
||
|
</ion-item>
|
||
4 years ago
|
<ion-list radio-group [(ngModel)]="CONTENT_OTHERDATA.statusall" (ionChange)="<% selectall %>">
|
||
6 years ago
|
<%#statuses%>
|
||
|
|
||
|
<span class="radiolabel">
|
||
|
<ion-item>
|
||
|
<ion-label><% acronym %></ion-label>
|
||
4 years ago
|
<ion-radio value="<% stid %>"></ion-radio>
|
||
6 years ago
|
</ion-item>
|
||
|
</span>
|
||
|
<%/statuses%>
|
||
|
</ion-list>
|
||
|
</span>
|
||
6 years ago
|
<%#users%>
|
||
6 years ago
|
<span class="attendance_user_row">
|
||
|
<!-- User and status of the submission. -->
|
||
|
<span ion-item text-wrap title="<% fullname %>">
|
||
|
<ion-avatar item-start>
|
||
|
<img src="<% profileimageurl %>" core-external-content role="presentation" onError="this.src='assets/img/user-avatar.png'">
|
||
|
</ion-avatar>
|
||
|
<h2><% fullname %></h2>
|
||
|
</span>
|
||
|
<ion-list radio-group [(ngModel)]="CONTENT_OTHERDATA.status<% userid %>">
|
||
|
<%#statuses%>
|
||
|
<span class="radiolabel">
|
||
6 years ago
|
<ion-item>
|
||
|
<ion-label><% acronym %></ion-label>
|
||
|
<ion-radio value="<% stid %>"></ion-radio>
|
||
|
</ion-item>
|
||
|
</span>
|
||
6 years ago
|
<%/statuses%>
|
||
|
</ion-list>
|
||
|
</span>
|
||
6 years ago
|
<%/users%>
|
||
6 years ago
|
<ion-item>
|
||
|
<button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: <% cmid %>, courseid: <% courseid %>, sessid: <% sessid %><% btnargs %>}">
|
||
|
{{ 'plugin.mod_attendance.submitattendance' | translate }}
|
||
|
</button>
|
||
|
</ion-item>
|
||
6 years ago
|
|
||
|
</div>
|