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

Create a generic submenu for status selection

    XMLWordPrintable

Details

    • 5
    • HQ 2023 Planning I3 Moppies

    Description

      The new course editing UX uses submenus to group status options like availability (visible, hidden, stealth) and group mode (no groups, separate, visible).

      This issue will implement all the generic classes to implement one level submenus inside the standard action_menu.

      Example of the availability submenu:

      Example of the group mode

      Technical shaping

      Currently, the action_menu class has a method "add" which accepts:

      • action_menu_link: depending on some inner attribute the link will be rendered as a secondary or primary action item
      • pix_icon: will be used a a primary action item
      • Any other renderable: will be used a secondary item and rendered freely inside the menu.

      A new class core\output\local\action_menu\subpanel will appear to render menu items with a subpanel. The class will be similar to a regular action_menu_link but accepting a renderable for the panel content.

      When a subpanel is passed to "action_menu::add":

      • Set the element as a secondary element
      • To render the action menu item, the class will export a pre-rendered version to the panel to the template data. It will use a standard render like any other output component to render the submenu content.

      This issue will also provide a fixture page to test the component.

       

      Attachments

        Issue Links

          Activity

            People

              tusefomal Ferran Recio
              tusefomal Ferran Recio
              Carlos Escobedo Carlos Escobedo
              Ilya Tregubov Ilya Tregubov
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 2 hours, 25 minutes
                  1w 2h 25m

                  Clockify

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