Add actions title to elements table (#425)

This commit is contained in:
hieuvu 2021-05-31 08:26:05 +07:00 committed by Mark Nelson
parent 659e065a2f
commit bd361d2434

View file

@ -247,7 +247,7 @@ class edit_form extends \moodleform {
// Create a table to display these elements. // Create a table to display these elements.
$table = new \html_table(); $table = new \html_table();
$table->attributes = array('class' => 'generaltable elementstable'); $table->attributes = array('class' => 'generaltable elementstable');
$table->head = array(get_string('name', 'customcert'), get_string('type', 'customcert'), ''); $table->head = array(get_string('name', 'customcert'), get_string('type', 'customcert'), get_string('actions'));
$table->align = array('left', 'left', 'left'); $table->align = array('left', 'left', 'left');
// Loop through and add the elements to the table. // Loop through and add the elements to the table.
foreach ($elements as $element) { foreach ($elements as $element) {