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

Adding/editing activities(resources) in AJAX mode without page reloads.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • Future Dev
    • 1.9, 2.3
    • Course
    • None
    • MOODLE_19_STABLE, MOODLE_23_STABLE
    • Hide

      Test Setup:

      At least 1 course.

      Adding activity to a course (return)

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource.
      2. Click on "Add" button. Make sure that click "Save and return to course button" close existing dialog and course page show changes.
      3. Links must work correctly. Next make sure that after reload page new activity/resource exist.

      Adding activity to a course (display)

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource.
      2. Click on "Add" button. Make sure that click on "Save and display" button redirect to activity/resource page, and save all information.
      3. Make sure that after load course page new activity/resource exist.

      Adding activity to a course (cancel on add)

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource.
      2. Make sure that click on "Cancel" button close dialog and do not change page.

      Adding activity to a course (error output display)

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource.
      2. Click on "Add" button. Make sure that click on "Save and display" button validate form, show error if something wrong and does not close dialog.
      3. Make sure click on "Cancel" button close dialog and do not change page.

      Adding activity to a course (error output return to course)

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource.
      2. Click on "Add" button. Make sure that click on "Save and return to course" button validate form, show error if something wrong and does not close dialog.
      3. Make sure click on "Cancel" button close dialog and do not change page.

      Adding activity to a course (cancel on resource/activity settings)

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource.
      2. Click on "Add" button. Make sure click on "Cancel" button close existing dialog and does not reload page.

      Edit an existing activity (cancel)

      1. Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings".
      2. Make sure that click on "Cancel" button close existing dialog and does not reload page.

      Edit an existing activity (error output)

      1. Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings".
      2. Make sure that click on "Save and display" button validate form, show error if something wrong and does not close dialog.

      Edit an existing activity (error output)

      1. Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings".
      2. Make sure that click on "Save and return to course" button validate form, show error if something wrong and does not close dialog.

      Edit an existing activity (save changes)

      1. Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings".
      2. Make sure that click on "Save and display" button redirect to activity/resource page, and save changes.
      3. Next make sure that after load course page activity/resource changes exist.

      Edit an existing activity (save changes)

      1. Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings".
      2. Make sure that click on "Save and return to course" button close existing dialog and show changes on course page without reload.
      3. Links must work correctly. Next make sure that after reload page activity/resource changes exist.

      Javascript check

      1. Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings".
      2. Make sure that click on "Cancel" button close existing dialog. Next click on "Add an activity or resource", choose one of available activity/resource.
      3. Click on "Add" button. Make sure that all field are editable, validated. Next make sure that editors does not duplicate.

      Javascript check

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button.
      2. Make sure that click on "Cancel" button close existing dialog. Next click on "edit" for some activity/resource, click on "edit settings".
      3. Make sure that all field are editable, validated. Next make sure that editors does not duplicate.

      Javascript check

      1. Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings".
      2. Make sure that click on "Cancel" button close existing dialog. Next repeat the previous steps. Make sure that all field are editable, validated.
      3. Next make sure that editors does not duplicate.

      Javascript check

      1. Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource.
      2. Click on "Add" button.
      3. Make sure that click on "Cancel" button close existing dialog.
      4. Next repeat the previous steps. Make sure that all field are editable, validated.
      5. Next make sure that editors does not duplicate.
      Show
      Test Setup: At least 1 course. Adding activity to a course (return) Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure that click "Save and return to course button" close existing dialog and course page show changes. Links must work correctly. Next make sure that after reload page new activity/resource exist. Adding activity to a course (display) Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure that click on "Save and display" button redirect to activity/resource page, and save all information. Make sure that after load course page new activity/resource exist. Adding activity to a course (cancel on add) Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Make sure that click on "Cancel" button close dialog and do not change page. Adding activity to a course (error output display) Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure that click on "Save and display" button validate form, show error if something wrong and does not close dialog. Make sure click on "Cancel" button close dialog and do not change page. Adding activity to a course (error output return to course) Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure that click on "Save and return to course" button validate form, show error if something wrong and does not close dialog. Make sure click on "Cancel" button close dialog and do not change page. Adding activity to a course (cancel on resource/activity settings) Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure click on "Cancel" button close existing dialog and does not reload page. Edit an existing activity (cancel) Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings". Make sure that click on "Cancel" button close existing dialog and does not reload page. Edit an existing activity (error output) Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings". Make sure that click on "Save and display" button validate form, show error if something wrong and does not close dialog. Edit an existing activity (error output) Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings". Make sure that click on "Save and return to course" button validate form, show error if something wrong and does not close dialog. Edit an existing activity (save changes) Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings". Make sure that click on "Save and display" button redirect to activity/resource page, and save changes. Next make sure that after load course page activity/resource changes exist. Edit an existing activity (save changes) Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings". Make sure that click on "Save and return to course" button close existing dialog and show changes on course page without reload. Links must work correctly. Next make sure that after reload page activity/resource changes exist. Javascript check Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings". Make sure that click on "Cancel" button close existing dialog. Next click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure that all field are editable, validated. Next make sure that editors does not duplicate. Javascript check Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure that click on "Cancel" button close existing dialog. Next click on "edit" for some activity/resource, click on "edit settings". Make sure that all field are editable, validated. Next make sure that editors does not duplicate. Javascript check Go to course, turn edit mod on. Click on "edit" for some activity/resource, click on "edit settings". Make sure that click on "Cancel" button close existing dialog. Next repeat the previous steps. Make sure that all field are editable, validated. Next make sure that editors does not duplicate. Javascript check Go to course, turn edit mod on. Click on "Add an activity or resource", choose one of available activity/resource. Click on "Add" button. Make sure that click on "Cancel" button close existing dialog. Next repeat the previous steps. Make sure that all field are editable, validated. Next make sure that editors does not duplicate.

      AJAX editing serves to eliminate page reloads during editing of the course. But adding or editing activity (or course) opens new page and so, after this is done, all course page must be reloaded (with AJAX code) for next add (edit).

      We can avoid this by opening page for adding/editing activity in new window in AJAX mode.

            Votes:
            13 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:

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