Browse Source

Tidy up radio buttons used in teacher view.

MOODLE_36_STABLE
Dan Marsden 6 years ago
parent
commit
372d142c55
  1. 2
      db/mobile.php
  2. 16
      mobilestyles.css
  3. 16
      templates/mobile_teacher_form.mustache

2
db/mobile.php

@ -36,7 +36,7 @@ $addons = [
'method' => 'mobile_view_activity', 'method' => 'mobile_view_activity',
'styles' => [ 'styles' => [
'url' => '/mod/attendance/mobilestyles.css', 'url' => '/mod/attendance/mobilestyles.css',
'version' => 7 'version' => 19
] ]
] ]
], ],

16
mobilestyles.css

@ -1,4 +1,20 @@
.attendance_teacher_form .item-radio { .attendance_teacher_form .item-radio {
display: inline-block; display: inline-block;
margin-top: 10px;
margin-left: 5px;
padding: 0;
width: 70px; width: 70px;
} }
.attendance_teacher_form .item-inner {
padding: 0;
}
.attendance_teacher_form .radiolabel .item-inner {
text-align: center;
}
.attendance_teacher_form .item-inner .input-wrapper label,
.attendance_teacher_form .radio {
margin: 0;
}
.attendance_teacher_form .radio .radio-icon {
display: none;
}

16
templates/mobile_teacher_form.mustache

@ -45,25 +45,33 @@
}} }}
{{=<% %>=}} {{=<% %>=}}
<div class="attendance_teacher_form"> <div class="attendance_teacher_form">
<span class="description">
<core-course-module-description description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"></core-course-module-description> <core-course-module-description description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"></core-course-module-description>
</span>
<%#showmessage%> <%#showmessage%>
<%#messages%> <%#messages%>
<ion-item> <span class="messages">
{{ 'plugin.mod_attendance.<% string %>' | translate }} <ion-item>
</ion-item> {{ 'plugin.mod_attendance.<% string %>' | translate }}
</ion-item>
</span>
<%/messages%> <%/messages%>
<%/showmessage%> <%/showmessage%>
<%#users%> <%#users%>
<ion-item> <ion-item>
<h2><% fullname %></h2> <span class="studentname">
<h2><% fullname %></h2>
</span>
</ion-item> </ion-item>
<ion-list radio-group [(ngModel)]="status<% userid %>"> <ion-list radio-group [(ngModel)]="status<% userid %>">
<%#statuses%> <%#statuses%>
<span class="radiolabel">
<ion-item> <ion-item>
<ion-label><% acronym %></ion-label> <ion-label><% acronym %></ion-label>
<ion-radio value="<% stid %>"></ion-radio> <ion-radio value="<% stid %>"></ion-radio>
</ion-item> </ion-item>
</span>
<%/statuses%> <%/statuses%>
</ion-list> </ion-list>
<%/users%> <%/users%>

Loading…
Cancel
Save