moodle/lib/form/yui
Ruslan Kabalin a4067bfc48 MDL-30637 Simplify moodle forms
Make the forms easier to use and navigate by adding functionality to
collapse and extend form sections (headers). The logic is as follows:

If form contains 2 and less sections (headers):

* Display the form as non-collapsible at all.
* The point above can be overridden if developer marks the section as expanded
  in form definition (e.g. $mform->setExpanded('foo'));

If form contains 3 and more sections (headers):

* always expanding the first section and closing all others by default;
* always expanding a section containing at least one "required" element;
* expanding any section which contains validation errors after submission;
* expanding any section which was previously open on previous submit (e.g. when
  adding new choices);
* expanding the section which is marked as expanded in form definition (e.g.
  $mform->setExpanded('foo');
2013-02-07 14:13:36 +00:00
..
checkboxcontroller MDL-33189: Make checkboxcontroller functionable 2012-05-22 14:26:09 +01:00
dateselector MDL-35675 forms: Remove constrain to viewport for popup calendar 2012-11-05 16:38:45 +08:00
passwordunmask MDL-33560 Enrol: Enrol password can be unmasked 2012-07-20 09:00:39 +08:00
shortforms MDL-30637 Simplify moodle forms 2013-02-07 14:13:36 +00:00