|
|
|
|
@ -76,7 +76,7 @@ if (!empty($action)) { |
|
|
|
|
$tool_name = get_lang('AdminCategories'); |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => 'index.php', |
|
|
|
|
"name" => get_lang('PlatformAdmin'), |
|
|
|
|
'name' => get_lang('PlatformAdmin'), |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
Display::display_header($tool_name); |
|
|
|
|
@ -85,7 +85,7 @@ $urlId = api_get_current_access_url_id(); |
|
|
|
|
if ($action == 'add' || $action == 'edit') { |
|
|
|
|
echo '<div class="actions">'; |
|
|
|
|
echo Display::url( |
|
|
|
|
Display::return_icon('folder_up.png', get_lang("Back"), '', ICON_SIZE_MEDIUM), |
|
|
|
|
Display::return_icon('folder_up.png', get_lang('Back'), '', ICON_SIZE_MEDIUM), |
|
|
|
|
api_get_path(WEB_CODE_PATH).'admin/course_category.php?category='.Security::remove_XSS($category) |
|
|
|
|
); |
|
|
|
|
echo '</div>'; |
|
|
|
|
@ -118,7 +118,7 @@ if ($action == 'add' || $action == 'edit') { |
|
|
|
|
$form->createElement( |
|
|
|
|
'radio', |
|
|
|
|
'auth_course_child', |
|
|
|
|
get_lang("AllowCoursesInCategory"), |
|
|
|
|
get_lang('AllowCoursesInCategory'), |
|
|
|
|
get_lang('Yes'), |
|
|
|
|
'TRUE' |
|
|
|
|
), |
|
|
|
|
@ -130,7 +130,7 @@ if ($action == 'add' || $action == 'edit') { |
|
|
|
|
'FALSE' |
|
|
|
|
), |
|
|
|
|
]; |
|
|
|
|
$form->addGroup($group, null, get_lang("AllowCoursesInCategory")); |
|
|
|
|
$form->addGroup($group, null, get_lang('AllowCoursesInCategory')); |
|
|
|
|
|
|
|
|
|
if ($myCourseListAsCategory) { |
|
|
|
|
$form->addHtmlEditor( |
|
|
|
|
@ -156,12 +156,12 @@ if ($action == 'add' || $action == 'edit') { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($categoryInfo)) { |
|
|
|
|
$class = "save"; |
|
|
|
|
$class = 'save'; |
|
|
|
|
$text = get_lang('Save'); |
|
|
|
|
$form->setDefaults($categoryInfo); |
|
|
|
|
$form->addButtonSave($text); |
|
|
|
|
} else { |
|
|
|
|
$class = "add"; |
|
|
|
|
$class = 'add'; |
|
|
|
|
$text = get_lang('AddCategory'); |
|
|
|
|
$form->setDefaults(['auth_course_child' => 'TRUE']); |
|
|
|
|
$form->addButtonCreate($text); |
|
|
|
|
|