mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-18375 calendar: moved the location of the calendar type select box when editing a course
This commit is contained in:
parent
29cb1e83b0
commit
7e52491cf9
@ -199,6 +199,11 @@ class course_edit_form extends moodleform {
|
||||
$mform->addElement('select', 'lang', get_string('forcelanguage'), $languages);
|
||||
$mform->setDefault('lang', $courseconfig->lang);
|
||||
|
||||
$calendartypes = array();
|
||||
$calendartypes[''] = get_string('forceno');
|
||||
$calendartypes += core_calendar\type_factory::get_list_of_calendar_types();
|
||||
$mform->addElement('select', 'calendartype', get_string('forcecalendartype', 'calendar'), $calendartypes);
|
||||
|
||||
$options = range(0, 10);
|
||||
$mform->addElement('select', 'newsitems', get_string('newsitemsnumber'), $options);
|
||||
$mform->addHelpButton('newsitems', 'newsitemsnumber');
|
||||
@ -273,14 +278,6 @@ class course_edit_form extends moodleform {
|
||||
$options[0] = get_string('none');
|
||||
$mform->addElement('select', 'defaultgroupingid', get_string('defaultgrouping', 'group'), $options);
|
||||
|
||||
// Multi-Calendar Support - see MDL-18375
|
||||
$mform->addElement('header','', get_string('calendar', 'calendar'));
|
||||
|
||||
$calendartypes = array();
|
||||
$calendartypes[''] = get_string('forceno');
|
||||
$calendartypes += calendar_type_plugin_factory::get_list_of_calendar_types();
|
||||
$mform->addElement('select', 'calendartype', get_string('forcecalendartype', 'calendar'), $calendartypes);
|
||||
|
||||
// Customizable role names in this course.
|
||||
$mform->addElement('header','rolerenaming', get_string('rolerenaming'));
|
||||
$mform->addHelpButton('rolerenaming', 'rolerenaming');
|
||||
|
Loading…
x
Reference in New Issue
Block a user