From 5369a5ed86262dae3b38d77443403c905d11a53d 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 e6a2321..adf7797 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,