MDL-20204 more steps away from html_select

This commit is contained in:
Petr Skoda
2010-02-09 19:23:11 +00:00
parent 2f0e96e447
commit aebddebb97
2 changed files with 7 additions and 8 deletions
+4 -4
View File
@@ -364,10 +364,10 @@
/// Print a form to swap roles, and a link back to the all roles list.
echo '<div class="backlink">';
$select = html_select::make_popup_form($baseurl, 'roleid', $nameswithcounts, 'switchrole', $roleid);
$select->set_label(get_string('assignanotherrole', 'role'));
$select->nothinglabel = false;
echo $OUTPUT->select($select);
$select = new single_select(new moodle_url($baseurl), 'roleid', $nameswithcounts, $roleid, null);
$select->label = get_string('assignanotherrole', 'role');
echo $OUTPUT->render($select);
echo '<p><a href="' . $baseurl . '">' . get_string('backtoallroles', 'role') . '</a></p>';
echo '</div>';
+3 -4
View File
@@ -226,10 +226,9 @@
/// Print a form to swap roles, and a link back to the all roles list.
echo '<div class="backlink">';
$select = html_select::make_popup_form($baseurl, 'roleid', $nameswithcounts, 'switchrole', $roleid);
$select->set_label(get_string('overrideanotherrole', 'role'));
$select->nothinglabel = false;
echo $OUTPUT->select($select);
$select = new single_select(new moodle_url($baseurl), 'roleid', $nameswithcounts, $roleid, null);
$select->label = get_string('overrideanotherrole', 'role');
echo $OUTPUT->render($select);
echo '<p><a href="' . $baseurl . '">' . get_string('backtoallroles', 'role') . '</a></p>';
echo '</div>';