added a comment - - edited
What a confusing section of the admin!
Admin -> Click on "Add/edit courses" -> course/index.php?categoryedit=on
- "Add new category" form
- List of categories
-> Click on a category name -> course/category.php?id=$categoryid&categoryedit=on
With this kind of URL I could expect to have a form allowing me to edit the category I just clicked
on (from the previous page's list of categories). What I see is indeed a category form, but with empty fields!
The reason is that this is a form for adding a subcategory to the selected category.
Also on this page is a list of courses within the selected category. I can delete them,
move them around, and there's even a button for adding a new course.
BUT
No way to edit the category! I can't even see the current category's name or description
anywhere except in the category selection drop-down at the top.
So, I propose the following:
1. Split Category editing from Course editing: each has its own entry in the admin menu
2. As prescribed by Martin in this issue, remove the "Add category" form completely from the courses edit page (course/index.php)
3. Create a new page for creating new categories and sub-categories
a. Drop-down for selecting the parent category (no parent if creating a top-level category).
b. This page will also be used as the "Edit category" page, when a id parameter is given, and
c. Selecting a different parent when in edit mode will simply move the category.
d. If parentid is given to the URL, it will pre-select the parent category in "add" mode. This way this page can easily be linked to from
category lists
e. This category add/edit page DOES NOT include a list of courses, but has a simple link to a page with such a list (with edit icons etc.)
4. In the courses edit set of pages, categories will appear as currently, but there will be no more information than their name and links to a listing of their children (categories or courses). Whenever a category name appears and editing is switched on, a hand icon will appear, linking to the category edit page described in step 3
Oh, and the "category theme" setting can also go on that new form.
And the name of the category itself.
That should simplify this course listing a lot.