Browse Source

Improve css tags, and make sure messages wrap correctly.

MOODLE_36_STABLE
Dan Marsden 6 years ago
parent
commit
381cbeac29
  1. 2
      db/mobile.php
  2. 18
      mobilestyles.css
  3. 2
      templates/mobile_teacher_form.mustache
  4. 4
      templates/mobile_user_form.mustache
  5. 4
      templates/mobile_view_page.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' => 19 'version' => 21
] ]
] ]
], ],

18
mobilestyles.css

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

2
templates/mobile_teacher_form.mustache

@ -45,7 +45,7 @@
} }
}} }}
{{=<% %>=}} {{=<% %>=}}
<div class="attendance_teacher_form"> <div class="attendance_mobile_teacher_form">
<span class="description"> <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> </span>

4
templates/mobile_user_form.mustache

@ -44,13 +44,15 @@
} }
}} }}
{{=<% %>=}} {{=<% %>=}}
<div> <div class="attendance_mobile_user_form">
<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>
<%#showmessage%> <%#showmessage%>
<%#messages%> <%#messages%>
<span class="messages">
<ion-item> <ion-item>
{{ 'plugin.mod_attendance.<% string %>' | translate }} {{ 'plugin.mod_attendance.<% string %>' | translate }}
</ion-item> </ion-item>
</span>
<%/messages%> <%/messages%>
<%/showmessage%> <%/showmessage%>
<%#showpassword%> <%#showpassword%>

4
templates/mobile_view_page.mustache

@ -48,13 +48,15 @@
} }
}} }}
{{=<% %>=}} {{=<% %>=}}
<div> <div class="attendance_mobile_view_page">
<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>
<%#showmessage%> <%#showmessage%>
<%#messages%> <%#messages%>
<span class="messages">
<ion-item> <ion-item>
{{ 'plugin.mod_attendance.<% string %>' | translate }} {{ 'plugin.mod_attendance.<% string %>' | translate }}
</ion-item> </ion-item>
</span>
<%/messages%> <%/messages%>
<%/showmessage%> <%/showmessage%>
<%#sessions%> <%#sessions%>

Loading…
Cancel
Save