MDL-56725 mod_data: coding style
Fixes from lines in the previous commit.
This commit is contained in:
@@ -40,7 +40,8 @@ class mod_data_renderer extends plugin_renderer_base {
|
||||
foreach ($newfields as $nid => $newfield) {
|
||||
$row = array();
|
||||
$row[0] = html_writer::tag('label', $newfield->name, array('for'=>'id_'.$newfield->name));
|
||||
$row[1] = html_writer::start_tag('select', array('name'=>'field_'.$nid, 'id'=>'id_'.$newfield->name, 'class' => 'custom-select'));
|
||||
$attrs = array('name' => 'field_' . $nid, 'id' => 'id_' . $newfield->name, 'class' => 'custom-select');
|
||||
$row[1] = html_writer::start_tag('select', $attrs);
|
||||
|
||||
$selected = false;
|
||||
foreach ($currentfields as $cid => $currentfield) {
|
||||
@@ -71,10 +72,11 @@ class mod_data_renderer extends plugin_renderer_base {
|
||||
}
|
||||
|
||||
$html .= html_writer::start_tag('div', array('class'=>'overwritesettings'));
|
||||
$html .= html_writer::tag('label', get_string('overwritesettings', 'data'), array('for'=>'overwritesettings'));
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'overwritesettings', 'id'=>'overwritesettings', 'class'=>'m-l-1'));
|
||||
$html .= html_writer::tag('label', get_string('overwritesettings', 'data'), array('for' => 'overwritesettings'));
|
||||
$attrs = array('type' => 'checkbox', 'name' => 'overwritesettings', 'id' => 'overwritesettings', 'class' => 'm-l-1');
|
||||
$html .= html_writer::empty_tag('input', $attrs);
|
||||
$html .= html_writer::end_tag('div');
|
||||
$html .= html_writer::empty_tag('input', array('type'=>'submit', 'class'=>'btn btn-primary', 'value'=>$strcontinue));
|
||||
$html .= html_writer::empty_tag('input', array('type' => 'submit', 'class' => 'btn btn-primary', 'value' => $strcontinue));
|
||||
|
||||
$html .= html_writer::end_tag('div');
|
||||
$html .= html_writer::end_tag('form');
|
||||
|
||||
Reference in New Issue
Block a user