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

Adding new activities should be possible anywhere in a section

    XMLWordPrintable

Details

    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • MDL-75596-master
    • Easy
    • Hide
      1. Create a course
      2. Create two activities in a section.
      3. Hover between / over the activities - a "plus" icon will appear.
      4. Click on the icon - the activity chooser will appear.
      5. Add an activity - it will appear at the position where you clicked the "plus" icon.
      Show
      Create a course Create two activities in a section. Hover between / over the activities - a "plus" icon will appear. Click on the icon - the activity chooser will appear. Add an activity - it will appear at the position where you clicked the "plus" icon.

    Description

      A often requested feature is the ability to insert a new course module anywhere in a section not just at the end. This is especially important for trainers who update their courses very frequently.

      The API part of this can be found in MDL-75594.

      I'd propose the following way to implement the UI for that feature:

      simplescreenrecorder-2022-08-28_19.38.27.m4v

      If you hover the space between two activities (in editing mode), the button for adding a new activity there appears (without any text) - else it's hidden. The button at the bottom stays as it is.
       

      See also discussion at https://moodle.org/mod/forum/discuss.php?d=437752

      Attachments

        Issue Links

          Activity

            People

              stefan.hanauska Stefan Hanauska
              stefan.hanauska Stefan Hanauska
              Mathew May Mathew May
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Kim Jared Lucas Kim Jared Lucas
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May, David Woloszyn, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May
              Votes:
              15 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 40 minutes
                  4h 40m