Dan Marsden
6 years ago
6 changed files with 185 additions and 16 deletions
@ -0,0 +1,4 @@ |
|||||
|
.attendance_teacher_form .item-radio { |
||||
|
display: inline-block; |
||||
|
width: 70px; |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
{{! |
||||
|
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", |
||||
|
"sessid": "43" |
||||
|
} |
||||
|
}} |
||||
|
{{=<% %>=}} |
||||
|
<div class="attendance_teacher_form"> |
||||
|
<core-course-module-description description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"></core-course-module-description> |
||||
|
<%#showmessage%> |
||||
|
<%#messages%> |
||||
|
<ion-item> |
||||
|
{{ 'plugin.mod_attendance.<% string %>' | translate }} |
||||
|
</ion-item> |
||||
|
<%/messages%> |
||||
|
<%/showmessage%> |
||||
|
<%#users%> |
||||
|
<ion-item> |
||||
|
<h2><% fullname %></h2> |
||||
|
</ion-item> |
||||
|
|
||||
|
<ion-list radio-group [(ngModel)]="status<% userid %>"> |
||||
|
<%#statuses%> |
||||
|
<ion-item> |
||||
|
<ion-label><% acronym %></ion-label> |
||||
|
<ion-radio value="<% stid %>"></ion-radio> |
||||
|
</ion-item> |
||||
|
<%/statuses%> |
||||
|
</ion-list> |
||||
|
<%/users%> |
||||
|
<button ion-button core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: <% cmid %>, courseid: <% courseid %>, sessid: <% sessid %> <% args %>}"> |
||||
|
{{ 'plugin.mod_attendance.submitattendance' | translate }} |
||||
|
</button> |
||||
|
|
||||
|
</div> |
Loading…
Reference in new issue