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

Toggle presentation of long restricion lists

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.10.5
    • Restrict access, UX
    • MOODLE_310_STABLE

      Using some complex restriction patterns I found that the restriction list shown to students can become pretty long and confusing. Therefore, I'ld be happy to get the possibility to toggle in the "Restriction access" part of an activity if the restriction list should be put in a <details> block or not.

      I explained my usecase in more detail in the moodle community forums: Moodle in English: Restriction information on mouseover

      I provided a first step to the solution there. I ádjusted the code so that a <details> block is used if a activity has more than one restriction (and thus the info will be a list). But this approach will also collapse a list of only two elements.

      Since this was my first day coding something in the moodle environment I did not manage to find where (and how) to create a checkbox to toggle this behaviour manually.

      I hope some of you will find this functionality usefull as well and may work on this subject.

      Best regards, Simon

        1. restriction_toggle.jpg
          61 kB
          Sara Arjona (@sarjona)
        2. Restriction information student details closed.png
          21 kB
          Simon Schäfer
        3. Restriction information student details opened.png
          46 kB
          Simon Schäfer

            Unassigned Unassigned
            famondir Simon Schäfer
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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