ID "course-edit" already defined
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
do not strip the _form suffix when creating the _formname in lib/formslib.php to guarantee unique ID for each form