Skip to content

Commit

Permalink
Mobile app: Stop using deprecated module-description
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalou authored and danmarsden committed Jul 24, 2024
1 parent 64d4fed commit 95f6141
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
10 changes: 9 additions & 1 deletion templates/mobile_teacher_form_latest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,17 @@
}}
{{=<% %>=}}
<div class="attendance_mobile_teacher_form">
<%#attendance.intro%>
<span class="description">
<core-course-module-description description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"></core-course-module-description>
<ion-card>
<ion-item class="ion-text-wrap">
<ion-label>
<core-format-text text="<%attendance.intro%>" component="mod_attendance" componentId="<%cmid%>" collapsible-item />
</ion-label>
</ion-item>
</ion-card>
</span>
<%/attendance.intro%>
<%#showmessage%>
<%#messages%>
<span class="messages">
Expand Down
10 changes: 9 additions & 1 deletion templates/mobile_user_form_latest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@
}}
{{=<% %>=}}
<div class="attendance_mobile_user_form">
<core-course-module-description description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"></core-course-module-description>
<%#attendance.intro%>
<ion-card>
<ion-item class="ion-text-wrap">
<ion-label>
<core-format-text text="<%attendance.intro%>" component="mod_attendance" componentId="<%cmid%>" collapsible-item />
</ion-label>
</ion-item>
</ion-card>
<%/attendance.intro%>
<%#showmessage%>
<%#messages%>
<span class="messages">
Expand Down
6 changes: 4 additions & 2 deletions templates/mobile_view_page_latest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
}}
{{=<% %>=}}
<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-info [module]="module" description="<% attendance.intro %>" component="mod_attendance" componentId="<% cmid %>"
[courseId]="courseId">
</core-course-module-info>
<%#showmessage%>
<%#messages%>
<span class="messages">
Expand Down Expand Up @@ -145,4 +147,4 @@
</ion-grid>
</ion-label>
</ion-item>
</div>
</div>

0 comments on commit 95f6141

Please sign in to comment.