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

Add clickable sections when importing content - task of MDL-68371

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9, Future Dev
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      • 1 site with this patch applied
      • ensure caches purged to get new template & theme styles
      • 2 users (Admin, Student)
      • Two courses
        • 1 with topics format
          • Admin enrolled as Manager
          • Student enrolled as Student
        • 1 with weeks format
          • Admin enrolled as Manager
          • Student enrolled as Student
      • your current sesskey
      • Dev tools in your browser open

      Test 1 (User with permissions)

      • Login as Admin
      • Navigate to the Topic course
      • Modify you URL to include ../course/view.php?id= {id}&importing=1&sesskey= {sesskey}
      • Confirm that you now see a button with a dashed border with the text "Add file (s) here" in each section
      • Confirm that when you hover over one of the button and confirm that only the border & text colors change
      • Click an instance of a button
      • Confirm that you see the following in the browser console:
      • Navigate to the week format course
      • Repeat steps 2-9

      Test 2 (User without permissions)

      • Login as Student
      • Navigate to the Topic course
      • Modify you URL to include ../course/view.php?id= {id}&importing=1&sesskey={sesskey}
      • Confirm that you do not see a button with a dashed border with the text "Add file (s) here" in each section
      • Navigate to the week format course
      • Modify you URL to include ../course/view.php?id={id}
        &importing=1&sesskey={sesskey}
      • Confirm that you do not see a button with a dashed border with the text "Add file (s) here" in each section
      Show
      Setup 1 site with this patch applied ensure caches purged to get new template & theme styles 2 users (Admin, Student) Two courses 1 with topics format Admin enrolled as Manager Student enrolled as Student 1 with weeks format Admin enrolled as Manager Student enrolled as Student your current sesskey Dev tools in your browser open Test 1 (User with permissions) Login as Admin Navigate to the Topic course Modify you URL to include ../course/view.php?id= {id}&importing=1&sesskey= {sesskey} Confirm that you now see a button with a dashed border with the text "Add file (s) here" in each section Confirm that when you hover over one of the button and confirm that only the border & text colors change Click an instance of a button Confirm that you see the following in the browser console: Call handler in MDL-68371 Course ID: {id} Navigate to the week format course Repeat steps 2-9 Test 2 (User without permissions) Login as Student Navigate to the Topic course Modify you URL to include ../course/view.php?id= {id}&importing=1&sesskey={sesskey} Confirm that you do not see a button with a dashed border with the text "Add file (s) here" in each section Navigate to the week format course Modify you URL to include ../course/view.php?id={id} &importing=1&sesskey={sesskey} Confirm that you do not see a button with a dashed border with the text "Add file (s) here" in each section
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Story Points:
      1
    • Sprint:
      Activity Sprint 11

      Description

      Create JS code to add “hotspots” for section selection. The course will need to check if we are in "import mode" and then add this js to the page.

      • Add event listeners to on hover, on focus, onclick, and on keypress
      • Section should visibly show that it can be selected when it has focus / hovered over.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathewmay Mathew May
              Reporter:
              abgreeve Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

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