mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
Merge branch 'wip-mdl-52230' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
c3efb495fd
4 changed files with 6 additions and 4 deletions
|
@ -97,7 +97,8 @@ class data_field_menu extends data_field_base {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$return = html_writer::label(get_string('namemenu', 'data'), 'menuf_'. $this->field->id, false, array('class' => 'accesshide'));
|
$return = html_writer::label(get_string('fieldtypelabel', "datafield_" . $this->type),
|
||||||
|
'menuf_' . $this->field->id, false, array('class' => 'accesshide'));
|
||||||
$return .= html_writer::select($options, 'f_'.$this->field->id, $content);
|
$return .= html_writer::select($options, 'f_'.$this->field->id, $content);
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,4 +25,4 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$string['pluginname'] = 'Number';
|
$string['pluginname'] = 'Number';
|
||||||
$string['namenumber'] = 'Number field';
|
$string['fieldtypelabel'] = 'Number field';
|
||||||
|
|
|
@ -96,7 +96,8 @@ class data_field_radiobutton extends data_field_base {
|
||||||
$options[$rec->content] = $rec->content; //Build following indicies from the sql.
|
$options[$rec->content] = $rec->content; //Build following indicies from the sql.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$return = html_writer::label(get_string('nameradiobutton', 'data'), 'menuf_'. $this->field->id, false, array('class' => 'accesshide'));
|
$return = html_writer::label(get_string('fieldtypelabel', "datafield_" . $this->type),
|
||||||
|
'menuf_' . $this->field->id, false, array('class' => 'accesshide'));
|
||||||
$return .= html_writer::select($options, 'f_'.$this->field->id, $value);
|
$return .= html_writer::select($options, 'f_'.$this->field->id, $value);
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,4 +25,4 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$string['pluginname'] = 'Radio button';
|
$string['pluginname'] = 'Radio button';
|
||||||
$string['nameradiobutton'] = 'Radio button field';
|
$string['fieldtypelabel'] = 'Radio button field';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue