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

Create new modal for tag add/edit/remove

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin.
      2. Go to an existing course or create one.
      3. On the cog, click More...
      4. Click on the Question Bank link.
      5. Create few questions, can be of any type really (essay is easy to setup).
      6. Click the new tag icon.
      7. Make sure a modal is displayed, containing the question name, current category context and a tag form field.
      8. On the tag field, add a new tag (science for example) and press Save Changes.
      9. The page should be reloaded, click on the tag icon again.
      10. The tag you have entered must be present (science), now add another tag for this question, let's say (biology) and save.
      11. The page should have been reloaded, click on the tag icon.
      12. You should see two tags (science and biology)
      13. Remove one of those two tags and save.
      14. Open the modal again, it should display just one tag.
      15. Now remove this tag and save.
      16. Open the modal again, you should not see any tags.
      17. Now let's test capabilities, in that course, enrol a user with teacher role.
      18. Go to course administration > Users > Permissions.
      19. Remove moodle/question:editall capability from teacher role.
      20. Now log in as that teacher.
      21. Go to that course then Course Administration > Question Bank.
      22. Make sure you are able to see the tags icon.
      23. Click on the icon, make sure you see all the information question name, current category context but the tag field is static and you are not able to add or remove any tags.
      Show
      Log in as admin. Go to an existing course or create one. On the cog, click More... Click on the Question Bank link. Create few questions, can be of any type really (essay is easy to setup). Click the new tag icon. Make sure a modal is displayed, containing the question name, current category context and a tag form field. On the tag field, add a new tag (science for example) and press Save Changes. The page should be reloaded, click on the tag icon again. The tag you have entered must be present (science), now add another tag for this question, let's say (biology) and save. The page should have been reloaded, click on the tag icon. You should see two tags (science and biology) Remove one of those two tags and save. Open the modal again, it should display just one tag. Now remove this tag and save. Open the modal again, you should not see any tags. Now let's test capabilities, in that course, enrol a user with teacher role. Go to course administration > Users > Permissions. Remove moodle/question:editall capability from teacher role. Now log in as that teacher. Go to that course then Course Administration > Question Bank. Make sure you are able to see the tags icon. Click on the icon, make sure you see all the information question name, current category context but the tag field is static and you are not able to add or remove any tags.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-61133-master

      Description

      We need to create a new modal to help with CRUD of question tags.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18

                  Time Tracking

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