src/Chamilo/CoreBundle/Controller/UserPortalController.php 1 location
|
@@ 222-233 (lines=12) @@
|
| 219 |
|
$obj = new \GradeModel(); |
| 220 |
|
$obj->fill_grade_model_select_in_form($form); |
| 221 |
|
|
| 222 |
|
if (api_get_setting('course.teacher_can_select_course_template') === 'true') { |
| 223 |
|
$form->addElement( |
| 224 |
|
'select_ajax', |
| 225 |
|
'course_template', |
| 226 |
|
[ |
| 227 |
|
get_lang('CourseTemplate'), |
| 228 |
|
get_lang('PickACourseAsATemplateForThisNewCourse'), |
| 229 |
|
], |
| 230 |
|
null, |
| 231 |
|
['url' => api_get_path(WEB_AJAX_PATH) . 'course.ajax.php?a=search_course'] |
| 232 |
|
); |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
$form->addElement('html', '</div>'); |
| 236 |
|
|
main/admin/course_add.php 1 location
|
@@ 119-130 (lines=12) @@
|
| 116 |
|
$form->applyFilter('select_language', 'html_filter'); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
if (api_get_setting('teacher_can_select_course_template') === 'true') { |
| 120 |
|
$form->addElement( |
| 121 |
|
'select_ajax', |
| 122 |
|
'course_template', |
| 123 |
|
[ |
| 124 |
|
get_lang('CourseTemplate'), |
| 125 |
|
get_lang('PickACourseAsATemplateForThisNewCourse'), |
| 126 |
|
], |
| 127 |
|
null, |
| 128 |
|
['url' => api_get_path(WEB_AJAX_PATH) . 'course.ajax.php?a=search_course'] |
| 129 |
|
); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
$form->addElement('checkbox', 'exemplary_content', '', get_lang('FillWithExemplaryContent')); |
| 133 |
|
|
main/create_course/add_course.php 1 location
|
@@ 220-231 (lines=12) @@
|
| 217 |
|
$obj = new GradeModel(); |
| 218 |
|
$obj->fill_grade_model_select_in_form($form); |
| 219 |
|
|
| 220 |
|
if (api_get_setting('teacher_can_select_course_template') === 'true') { |
| 221 |
|
$form->addElement( |
| 222 |
|
'select_ajax', |
| 223 |
|
'course_template', |
| 224 |
|
[ |
| 225 |
|
get_lang('CourseTemplate'), |
| 226 |
|
get_lang('PickACourseAsATemplateForThisNewCourse'), |
| 227 |
|
], |
| 228 |
|
null, |
| 229 |
|
['url' => api_get_path(WEB_AJAX_PATH) . 'course.ajax.php?a=search_course'] |
| 230 |
|
); |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
$form->addElement('html', '</div>'); |
| 234 |
|
|