diff --git a/main/auth/courses_controller.php b/main/auth/courses_controller.php index 08771523d8..4d9e8a104d 100755 --- a/main/auth/courses_controller.php +++ b/main/auth/courses_controller.php @@ -234,7 +234,6 @@ class CoursesController $result = $this->model->store_course_category($category_title); if ($result) { Display::addFlash(Display::return_message(get_lang('CourseCategoryStored'))); - } else { Display::addFlash(Display::return_message(get_lang('ACourseCategoryWithThisNameAlreadyExists'), 'error')); } diff --git a/main/template/default/auth/categories_list.php b/main/template/default/auth/categories_list.php index ad04f370d4..79855a8f24 100755 --- a/main/template/default/auth/categories_list.php +++ b/main/template/default/auth/categories_list.php @@ -13,20 +13,20 @@ api_block_anonymous_users(); $stok = Security::get_token(); ?> -
- -   - + + +
-
- - - -
\ No newline at end of file +$form = new FormValidator( + 'create_course_category', + 'post', + api_get_self().'?createcoursecategory' +); +$form->addHidden('sec_token', $stok); +$form->addText('title_course_category', get_lang('Name')); +$form->addButtonSave(get_lang('AddCategory'), 'create_course_category'); +$form->display(); diff --git a/main/template/default/auth/courses_list.php b/main/template/default/auth/courses_list.php index 8c5c1655d5..d19c7abfcd 100755 --- a/main/template/default/auth/courses_list.php +++ b/main/template/default/auth/courses_list.php @@ -17,7 +17,7 @@ $courses_without_category = isset($courses_in_category[0]) ? $courses_in_categor
-   +
diff --git a/main/template/default/auth/layout.php b/main/template/default/auth/layout.php index 09d4db0f70..d703c0b705 100755 --- a/main/template/default/auth/layout.php +++ b/main/template/default/auth/layout.php @@ -2,15 +2,14 @@ /* For licensing terms, see /license.txt */ /** -* Layout (principal view) used for structuring other views +* Layout (principal view) used for structuring other views * @author Christian Fasanando - Beeznest * @package chamilo.auth */ -// Acces rights: anonymous users can't do anything usefull here. +// Access rights: anonymous users can't do anything useful here. api_block_anonymous_users(); - // Header Display::display_header(''); @@ -18,4 +17,4 @@ Display::display_header(''); echo $content; // Footer -Display::display_footer(); \ No newline at end of file +Display::display_footer();