MDL-76849 qtype_multianswer: Include question number in answer fields
commit9ba9723826b768af0561a680ff6eca14a01dba8d
authorJun Pataleta <jun@moodle.com>
Fri, 17 Feb 2023 07:31:45 +0000 (17 15:31 +0800)
committerJun Pataleta <jun@moodle.com>
Thu, 9 Mar 2023 00:58:52 +0000 (9 08:58 +0800)
treeddf07ed00ddb0004d79b39c65ce9f669cd52e31e
parent716c223db5308f860b719cbbec0deafc4f602f57
MDL-76849 qtype_multianswer: Include question number in answer fields

* Add the question number to the answer fields if it's available.
* Improve multiple choice question accessibility:
  - Label the multiple choice question groups appropriately by
    enclosing them in fieldset tags and applying sr-only legend tags to
    label them.
  - Apply Bootstrap form-check classes to the radio buttons, so they
    are rendered better and become responsive as well. This also helps
    avoid the use of the table element for layout purposes when
    rendering horizontal multiple choice sub-questions.
question/type/multianswer/lang/en/qtype_multianswer.php
question/type/multianswer/renderer.php