mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle
This commit is contained in:
commit
5bfeb5ffd3
108 changed files with 390 additions and 216 deletions
|
@ -424,6 +424,7 @@ if (!$courses) {
|
|||
make_categories_list($movetocategories, $notused, 'moodle/category:manage');
|
||||
$movetocategories[$category->id] = get_string('moveselectedcoursesto');
|
||||
echo '<tr><td colspan="3" align="right">';
|
||||
echo html_writer::label(get_string('moveselectedcoursesto'), 'movetoid', false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($movetocategories, 'moveto', $category->id, null, array('id'=>'movetoid'));
|
||||
$PAGE->requires->js_init_call('M.util.init_select_autosubmit', array('movecourses', 'movetoid', false));
|
||||
echo '<input type="hidden" name="id" value="'.$category->id.'" />';
|
||||
|
|
|
@ -369,6 +369,7 @@ function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $
|
|||
}
|
||||
$popupurl = new moodle_url("index.php?move=$category->id&sesskey=".sesskey());
|
||||
$select = new single_select($popupurl, 'moveto', $tempdisplaylist, $category->parent, null, "moveform$category->id");
|
||||
$select->set_label(get_accesshide(get_string('frontpagecategorynames')));
|
||||
echo $OUTPUT->render($select);
|
||||
}
|
||||
echo '</td>';
|
||||
|
|
|
@ -70,6 +70,7 @@ if ($scaleid) {
|
|||
echo $OUTPUT->box_start();
|
||||
echo $OUTPUT->heading($scale->name);
|
||||
echo "<center>";
|
||||
echo html_writer::label(get_string('scales'), 'menuunused', false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($scalemenu, 'unused');
|
||||
echo "</center>";
|
||||
echo text_to_html($scale->description);
|
||||
|
@ -101,6 +102,7 @@ if ($scales = $DB->get_records("scale", array("courseid"=>$course->id), "name AS
|
|||
echo $OUTPUT->box_start();
|
||||
echo $OUTPUT->heading($scale->name);
|
||||
echo "<center>";
|
||||
echo html_writer::label(get_string('scales'), 'menuunused', false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($scalemenu, 'unused');
|
||||
echo "</center>";
|
||||
echo text_to_html($scale->description);
|
||||
|
@ -127,6 +129,7 @@ if ($scales = $DB->get_records("scale", array("courseid"=>0), "name ASC")) {
|
|||
echo $OUTPUT->box_start();
|
||||
echo $OUTPUT->heading($scale->name);
|
||||
echo "<center>";
|
||||
echo html_writer::label(get_string('scales'), 'menuunused', false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($scalemenu, 'unused');
|
||||
echo "</center>";
|
||||
echo text_to_html($scale->description);
|
||||
|
|
|
@ -377,6 +377,7 @@ if ($courses) {
|
|||
echo "<input type=\"button\" onclick=\"checkall()\" value=\"$strselectall\" />\n";
|
||||
echo "<input type=\"button\" onclick=\"checknone()\" value=\"$strdeselectall\" />\n";
|
||||
// Select box should only show categories in which user has min capability to move course.
|
||||
echo html_writer::label(get_string('moveselectedcoursesto'), 'movetoid', false, array('class' => 'accesshide'));
|
||||
echo html_writer::select($usercatlist, 'moveto', '', array(''=>get_string('moveselectedcoursesto')), array('id'=>'movetoid'));
|
||||
$PAGE->requires->js_init_call('M.util.init_select_autosubmit', array('movecourses', 'movetoid', false));
|
||||
echo "</td>\n</tr>\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue