Skip to content

Commit

Permalink
Load the attendance form in the same page and without caching
Browse files Browse the repository at this point in the history
Load the attendance form in the same page and without caching so that the Back button will take the teacher back to the course page.

Submit the attendance in the same page and without caching

Submit the attendance in the same page and without caching so that the Back button will take the teacher back to the course page afterwards.
  • Loading branch information
davidl37 authored and danmarsden committed Nov 19, 2024
1 parent 23c561f commit 7cd2232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/mobile_teacher_form_latest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</ion-radio-group>
</span>
<%/users%>
<ion-button class="ion-margin" expand="block" core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: <% cmid %>, courseid: <% courseid %>, sessid: <% sessid %><% btnargs %>}">
<ion-button class="ion-margin" expand="block" core-site-plugins-new-content component="mod_attendance" method="mobile_view_activity" [args]="{cmid: <% cmid %>, courseid: <% courseid %>, sessid: <% sessid %><% btnargs %>}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true" samePage="true">
{{ 'plugin.mod_attendance.submitattendance' | translate }}
</ion-button>
<%/users.0%>
Expand Down
2 changes: 1 addition & 1 deletion templates/mobile_view_page_latest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<h3><% groupname %></h3>
<h3><% currentstatus %></h3>
<%#sessid%>
<ion-button core-site-plugins-new-content component="mod_attendance" method="<% attendancefunction %>" [args]="{cmid: <% cmid %>, courseid: <% courseid %>, sessid: <% sessid %>, timestamp: <% timestamp %>}">
<ion-button core-site-plugins-new-content component="mod_attendance" method="<% attendancefunction %>" [args]="{cmid: <% cmid %>, courseid: <% courseid %>, sessid: <% sessid %>, timestamp: <% timestamp %>}" [preSets]="{getFromCache: 0, saveToCache: 0}" refreshOnSuccess="true" samePage="true">
{{ 'plugin.mod_attendance.submitattendance' | translate }}
</ion-button>
<%/sessid%>
Expand Down

0 comments on commit 7cd2232

Please sign in to comment.