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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9, Future Dev
    • MoodleNet
    • MOODLE_39_STABLE
    • 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
    • 1
    • Activity Sprint 11

      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.

            Unassigned Unassigned
            abgreeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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

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