MDL-21235 html_writer now supports select form elements
This commit is contained in:
@@ -121,7 +121,7 @@ echo '<br /><textarea name="content" rows="5" cols="50">' . strip_tags(@$content
|
||||
|
||||
echo '<p>' . $strpublishstate;
|
||||
echo $OUTPUT->help_icon('status', $strpublishstate, 'notes');
|
||||
echo $OUTPUT->select(html_select::make($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $state, false));
|
||||
echo html_writer::input_select($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $state, false);
|
||||
echo '</p>';
|
||||
|
||||
echo '<input type="submit" value="' . get_string('savechanges'). '" /></div></form>';
|
||||
|
||||
Reference in New Issue
Block a user