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

    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • wip-MDL-59775-master
    • 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)

      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

            marina Marina Glancy
            marina Marina Glancy
            Luca Bösch Luca Bösch
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ryan Wyllie Ryan Wyllie
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.