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

Change Delete buttons' style on Database to 'danger' button

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_402_STABLE
    • MDL-75337-master
    • Hide

      Testing scenario 1: new Javascript modal on the database when removing presets

      1. Create a new database D1
      2. Go to the preset tab and use a preset (Journal for example).
      3. Go to the template tab
      4. Save the preset as a new preset (Test preset)
      5. Go to the Preset tab
      6. Click on the Kebab menu next to the new preset
      7. Select Delete
      8. Ensure that the popup dialog displays the "Delete" button in Red
      9. Click on Delete and Ensure that the preset is deleted

      Testing scenario 1b: Delete button when deleting an entry

      1. Create a new database D1
      2. Go to the preset tab and use a preset (Journal for example).
      3. Add an entry
      4. Click on the Kebab menu next to the new entry
      5. Select Delete
      6. Ensure that the dialog displays the "Delete" button in Red

      Testing scenario 2: new Javascript modal on the database when removing fields

      1. Create a new database D1
      2. Go to the preset tab and use a preset (Journal for example).
      3. Go to the Field tab
      4. Click on the trash icon next to the field
      5. Ensure that the dialog displayed has a "Continue" button in red
      6. Click on "Continue" and Ensure that the field is deleted

      Test scenario 3: the component library

      1. Run the commands:
        • grunt componentlibrary
        • grunt jsdoc --force
      2. Go to the /admin/tool/componentlibrary/docspage.php/library/getting-started/

      Moodle components (single_button):

      1. Check the Moodle / Moodle Components / Buttons and the "Adding buttons to a page" section
      2. Ensure this displays all the buttons types

      Javascript component:

      1. Go to the Javascript/Confirm page and click on "Show delete modal".
      2. Ensure that the "Delete" button is in red
      3. Go to the Javascript/Confirm page and click on "Show confirmation modal" on "Basic confirmation modal > Simple Modal" section.
      4. Ensure that the "Ok" button is in blue

       

      Show
      Testing scenario 1: new Javascript modal on the database when removing presets Create a new database D1 Go to the preset tab and use a preset (Journal for example). Go to the template tab Save the preset as a new preset (Test preset) Go to the Preset tab Click on the Kebab menu next to the new preset Select Delete Ensure that the popup dialog displays the "Delete" button in Red Click on Delete and Ensure that the preset is deleted Testing scenario 1b: Delete button when deleting an entry Create a new database D1 Go to the preset tab and use a preset (Journal for example). Add an entry Click on the Kebab menu next to the new entry Select Delete Ensure that the dialog displays the "Delete" button in Red Testing scenario 2: new Javascript modal on the database when removing fields Create a new database D1 Go to the preset tab and use a preset (Journal for example). Go to the Field tab Click on the trash icon next to the field Ensure that the dialog displayed has a "Continue" button in red Click on "Continue" and Ensure that the field is deleted Test scenario 3: the component library Run the commands: grunt componentlibrary grunt jsdoc --force Go to the /admin/tool/componentlibrary/docspage.php/library/getting-started/ Moodle components (single_button): Check the Moodle / Moodle Components / Buttons and the "Adding buttons to a page" section Ensure this displays all the buttons types Javascript component: Go to the Javascript/Confirm page and click on "Show delete modal". Ensure that the "Delete" button is in red Go to the Javascript/Confirm page and click on "Show confirmation modal" on "Basic confirmation modal > Simple Modal" section. Ensure that the "Ok" button is in blue  
    • 3
    • HQ Sprint 0.4 Database

      Change all 'Delete' buttons' style on Database activity to red, using Component Library's 'danger-button' style and change the string to 'Delete'.

      • Delete Presets confirmation button
      • Delete Field confirmation button
      • Delete entry confirmation button
      • Delete selected entries confirmation button

       

        1. component library.png
          component library.png
          851 kB
        2. deleting an entry.gif
          deleting an entry.gif
          189 kB
        3. image-2022-07-29-13-00-42-593.png
          image-2022-07-29-13-00-42-593.png
          18 kB
        4. image-2022-09-15-09-48-01-180.png
          image-2022-09-15-09-48-01-180.png
          38 kB
        5. mustache.png
          mustache.png
          50 kB
        6. removing fields.gif
          removing fields.gif
          162 kB
        7. removing presets.gif
          removing presets.gif
          503 kB

            laurent.david@moodle.com Laurent David
            amaia Amaia Anabitarte
            Ferran Recio Ferran Recio
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 3 hours, 2 minutes
                4d 3h 2m

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