From 8e23e39bcda6d494cd59bc494c20e8b946b9d53a Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Mon, 22 Aug 2016 15:28:40 +0800 Subject: [PATCH] Removed unused element list table column Also left aligned action icons. --- classes/edit_form.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/classes/edit_form.php b/classes/edit_form.php index 6f6963b..8a00eef 100644 --- a/classes/edit_form.php +++ b/classes/edit_form.php @@ -240,12 +240,7 @@ class edit_form extends \moodleform { // Create a table to display these elements. $table = new \html_table(); $table->head = array(get_string('name', 'customcert'), get_string('type', 'customcert'), ''); - $table->align = array('left', 'left', 'center'); - // If we have more than one element then we can change the order, so add extra column for the up and down arrow. - if ($numelements > 1) { - $table->head[] = ''; - $table->align[] = 'center'; - } + $table->align = array('left', 'left', 'left'); // Loop through and add the elements to the table. foreach ($elements as $element) { $row = new \html_table_row();