From c592f4e42ede844f4d254bc24431bf26f0ac9d94 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 18 Sep 2019 20:39:18 +1200 Subject: [PATCH] Issue #405 Make status selector span multiple columns. --- renderer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renderer.php b/renderer.php index c5e3a67..43c200b 100644 --- a/renderer.php +++ b/renderer.php @@ -667,16 +667,16 @@ class mod_attendance_renderer extends plugin_renderer_base { // Show a 'select all' row of radio buttons. $row = new html_table_row(); - $row->cells[] = ''; $row->attributes['class'] = 'setallstatusesrow'; foreach ($extrasearchfields as $field) { $row->cells[] = ''; } $selectmenu = $this->render_statusdropdown(get_user_preferences('mod_attendance_statusdropdown')); - - $row->cells[] = html_writer::div(get_string('setallstatuses', 'attendance'). - $selectmenu, 'setallstatuses'); + $cell = new html_table_cell(html_writer::div(get_string('setallstatuses', 'attendance'). + $selectmenu, 'setallstatuses')); + $cell->colspan = 2; + $row->cells[] = $cell; foreach ($takedata->statuses as $st) { $attribs = array( 'id' => 'radiocheckstatus'.$st->id,