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

Add a mod_subsection button to the add activity button.

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-81767-main
    • Hide

      Covered by Unit/Behat tests

      Manual Test (optional)

      Setup

      1. Download MDL-81767.feature
      2. Load the test data using the downloaded feature file
      3. php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/MDL-81767.feature"

      4. Login as administrator
      5. Login as administrator
      6. Go to Site administration > Plugins > Manage activities and enable "Subsection"

      Test

      1. Access course "MDL-81767 test"
      2. Confirm that at the end of the section and between activities a "+" button is displayed that opens a dropdown with the options "Activity or resource" and "Subsection"
      3. Click on the "+" button at the top of the first section (above Subsection 1) and click on "Subsection"
      4. Confirm a new Subsection is created
      5. Confirm you can drag and drop elements from "Subsection 1" to the "New subsection"
      6. Click on the "+" button at the top of the first section (above Subsection 1) and click on "Activity or resource"
      7. Create a new Feedback activity
      8. Confirm the activity was created between both subsections
      9. Confirm that at the bottom of the "New subsection" a "+ Add activity or resource" button is displayed and NOT a "+" dropdown.
      10. Click on the "+ Add activity or resource" in "New subsection"
      11. Create a new Forum activity
      12. Confirm the activity was created at the bottom of the subsection
      13. Click on the "+" button at the top of "New subsection" and confirm NO dropdown is displayed
      14. Create a new Assignment activity
      15. Confirm the activity was created at the top of the subsection
      Show
      Covered by Unit/Behat tests Manual Test (optional) Setup Download MDL-81767.feature Load the test data using the downloaded feature file php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/MDL-81767.feature" Login as administrator Login as administrator Go to Site administration > Plugins > Manage activities and enable "Subsection" Test Access course " MDL-81767 test" Confirm that at the end of the section and between activities a "+" button is displayed that opens a dropdown with the options "Activity or resource" and "Subsection" Click on the "+" button at the top of the first section (above Subsection 1) and click on "Subsection" Confirm a new Subsection is created Confirm you can drag and drop elements from "Subsection 1" to the "New subsection" Click on the "+" button at the top of the first section (above Subsection 1) and click on "Activity or resource" Create a new Feedback activity Confirm the activity was created between both subsections Confirm that at the bottom of the "New subsection" a "+ Add activity or resource" button is displayed and NOT a "+" dropdown. Click on the "+ Add activity or resource" in "New subsection" Create a new Forum activity Confirm the activity was created at the bottom of the subsection Click on the "+" button at the top of "New subsection" and confirm NO dropdown is displayed Create a new Assignment activity Confirm the activity was created at the top of the subsection
    • 3
    • HQ 2024 Sprint I3.1 Moppies

      This issue is part of the course hierarch project.

      Issue goals

      In order to simplify the process of creating mod_subsection instances, the prototype introduces new dropdown buttons on the add activity buttons. This feature will enable users to create mod_subsection instances with a single click, without displaying any creation form.

      Moreover, this issue will include hiding mod_subsection from the activity chooser.

      We also propose to add a new feature to mod plugins. This feature will allow the creation of mod plugins with default values, making the process more efficient and reducing the need for manual input.

      The new dropdown must prevent the creation of mod_subsection instances inside a delegated section.

      According to the prototype, this is how the add activity button will be displayed as a dropdown:

       

        1. hierarchy_001.png
          hierarchy_001.png
          12 kB
        2. MDL-81767.feature
          1 kB
        3. screenshot-1.png
          screenshot-1.png
          81 kB
        4. screenshot-2.png
          screenshot-2.png
          78 kB
        5. screenshot-3.png
          screenshot-3.png
          77 kB
        6. screenshot-4.png
          screenshot-4.png
          76 kB
        7. screenshot-5.png
          screenshot-5.png
          78 kB

            mikelmartíncorrales Mikel Martín Corrales
            tusefomal Ferran Recio
            Carlos Escobedo Carlos Escobedo
            Ferran Recio Ferran Recio
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 2 days, 5 hours, 22 minutes
                1w 2d 5h 22m

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