MDL-21235 html_writer now supports select form elements

This commit is contained in:
Petr Skoda
2010-01-16 17:00:22 +00:00
parent a685593466
commit 3ff163c597
8 changed files with 72 additions and 32 deletions
+1 -1
View File
@@ -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>';