Skip to content

Commit 9566553

Browse files
aulia-adildanmarsden
authored andcommitted
Make a button in submit attendance
1 parent bcbbebb commit 9566553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: classes/output/renderer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ private function construct_user_sessions_log(user_data $userdata) {
13941394
$cell = new html_table_cell(html_writer::tag('form', $output,
13951395
['action' => $url->out(), 'method' => 'get']));
13961396
} else {
1397-
$cell = new html_table_cell(html_writer::link($url, get_string('submitattendance', 'attendance')));
1397+
$cell = new html_table_cell(html_writer::link($url, get_string('submitattendance', 'attendance'), array('class' => 'btn btn-primary')));
13981398
}
13991399
} else {
14001400
$cell = new html_table_cell(html_writer::link($url, get_string('submitattendancefuture', 'attendance')));
@@ -2030,7 +2030,7 @@ private function construct_user_allsessions_log(user_data $userdata) {
20302030
$url = new moodle_url('/mod/attendance/attendance.php',
20312031
['sessid' => $sess->id, 'sesskey' => sesskey()]);
20322032
if (attendance_session_open_for_students($sess)) {
2033-
$cell = new html_table_cell(html_writer::link($url, get_string('submitattendance', 'attendance')));
2033+
$cell = new html_table_cell(html_writer::link($url, get_string('submitattendance', 'attendance'), array('class' => 'btn btn-primary')));
20342034
} else {
20352035
$cell = new html_table_cell(html_writer::link($url, get_string('submitattendancefuture',
20362036
'attendance')));

0 commit comments

Comments
 (0)