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

html_select_option::make_checkbox() lacking some capabilities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Forms Library, General
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      I was improving a bit the db functional tests page and ended needing the ability of create a disabled checkbox (disabled="disabled" attribute).

      After looking a bit both html_select_option::make_checkbox() and $OUTPUT->checkbox(), I think it's impossible to "inject" attributes to those option tags.

      Perhaps it would be interesting to add support to that (one optional 3rd parameter with name/value pairs or so on). And perhaps extensible to other elements too.

      Assigning to Tim for his consideration. Ciao

        Attachments

          Activity

            People

            • Assignee:
              nicolasconnault Nicolas Connault
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie, Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10