Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-59775

Add option to mforms to show labels and elements full-width regardless of screen size

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a feedback with a couple of questions, at least one of them with type "label" with a lot of text
      2. Preview it, the questions should be above the input fields and the text label should be full width (in both clean and boost themes)
      3. Add ->set_display_vertical() to any form after its initialisation, for example after this line: https://github.com/moodle/moodle/blob/master/course/edit.php#L149
      4. View the form and make sure it is always displayed with labels above elements, regardless of the screen size (also both clean and boost themes)
      Show
      Create a feedback with a couple of questions, at least one of them with type "label" with a lot of text Preview it, the questions should be above the input fields and the text label should be full width (in both clean and boost themes) Add ->set_display_vertical() to any form after its initialisation, for example after this line: https://github.com/moodle/moodle/blob/master/course/edit.php#L149 View the form and make sure it is always displayed with labels above elements, regardless of the screen size (also both clean and boost themes)
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      wip-MDL-59775-master

      Description

      Add option to mforms to show labels and elements full-width regardless of screen size

      This will be useful for forms that are displayed in modals, are narrow or need to look this way for any other reason

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17