Pull in changes

This commit is contained in:
2019-03-10 18:51:52 -06:00
parent b4dcd506fc
commit 55f736e5a1
6 changed files with 134 additions and 90 deletions

View File

@@ -330,13 +330,8 @@ else
$editorDiv->setAttribute('class', 'sticky');
$form = $doc->createElement('form');
$form->setAttribute('action', 'courseEditor.php');
$form->setAttribute('method', 'post');
$input = $doc->createElement('input');
$input->setAttribute('type', 'hidden');
$input->setAttribute('value', 'Add');
$input->setAttribute('name', 'action');
$input->setAttribute('readonly', 'readonly');
$form->appendChild($input);
$form->setAttribute('method', 'POST');
$form->setAttribute('enctype', 'multipart/form-data');
$label = $doc->createElement('H3');
$label->appendChild($doc->createTextNode("Add New Course"));
$form->appendChild($label);
@@ -347,7 +342,7 @@ else
$fieldSet->appendChild($fieldSetDiv);
$label = $doc->createElement('label', 'Course ID:');
$label->setAttribute('for', 'id$');
$label->setAttribute('for', 'id');
$label->setAttribute('class', 'CourseEditorInputLabel');
$fieldSetDiv->appendChild($label);
$input = $doc->createElement('input');
@@ -369,6 +364,7 @@ else
$input->setAttribute('name', 'name');
$input->setAttribute('autocomplete', 'off');
$input->setAttribute('required', 'required');
$fieldSetDiv->appendChild($input);
$label = $doc->createElement('br');
$fieldSetDiv->appendChild($label);
@@ -413,6 +409,13 @@ else
$input = $doc->createElement('input');
$input->setAttribute('type', 'submit');
$form->appendChild($input);
$input = $doc->createElement('input');
$input->setAttribute('type', 'hidden');
$input->setAttribute('value', 'Add');
$input->setAttribute('name', 'action');
$input->setAttribute('readonly', 'readonly');
$form->appendChild($input);
$editorDiv->appendChild($form);
//$bodyDiv->appendChild($editorDiv);
$body->appendChild($editorDiv); // Needs to be in the body for sticky