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

Convert day view to template

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4
    • 3.4
    • Calendar
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-59750-master
    • Hide

      Please test on clean and boost themes.

      Setup
      1. Create some course activity modules with a selection of dates (e.g. Quiz, Assignment)
      2. Create some manual events, including:
        1. User events
        2. Events in multiple courses
        3. Events in multiple groups
        4. Events over multiple days
      3. Navigate to the main calendar view
      4. Select Manage subscriptions
      5. Subscribe to an iCal feed
      Testing edit, delete and permission.
      1. Log in as admin and go to Calendar.
      2. Locate a day that has events.
      3. Click on the day number.
      4. Make sure it displays the events you have created on that day.
      5. For user, site, course and group events you should see edit and delete icons.
      6. For module events, you should not see neither edit or delete icons.
        • You should just see a Go to activity link.
        • Click on the link, make sure it redirects you to the correct module.
      7. Click on the edit icon, it should redirect you to the edit event form.
      8. Go back to the calendar day view and click on the delete icon.
        • You should see a confirm message: Are you sure you want to delete the "event name" event?
      9. Now log in as a student and go to calendar.
      10. Make sure you are able to see course, site and group events.
      11. Make sure you don't have the option to edit or delete those events.
      12. Now create a user event.
      13. Make sure you are able to edit and delete your own events.
      Regression tests
      1. Create an user event and add the following description to it:

        The circle is defined by the location of the centre \(({x_0},{y_0})\) and the radius of the circle (r). Note that in the relation above, the centre is defined to be positive values of x0 and y0. Important and useful relations: \[\begin{array}{l}Area = \pi {r^2}\\Circumference = 2\pi r\\Arc{\rm{ }}length = r\theta \end{array}\]
        

        Save it and view the event on the day view.

      2. Make sure it renders Mathjax content properly.
      3. Make sure events with subcription (iCal) displays:

        Event source: THE ICS FILE YOU HAVE UPLOAD
        

        if it has a name, or a link if the iCal is a URL.

      4. Make sure course events displays a link to the course.
        • Click on the link, make sure it takes you to the correct course.
        • The colour should be redish.
      5. Make sure group events displays the group name and a link to the course.
        • The colour should be orangish.
      6. Make sure user events background colour is blue.
      7. Make sure site events background colour is green.
      8. Now, let's click on the navigation narrows on the side.
      9. There should be one narrow on each side, one to next and other to previous day.
      10. Make sure both display the correct next and previous days.
      11. Now click on the previous narrow.
      12. Make sure it displays the events of that day.
        • If there are no events it should display a message: There are no events this day.
      13. Repeat the test for next day.
      14. Make sure it redirect you to the next day.
      15. Now get back to month view.
      16. Click on a event created by the subscription (iCal).
      17. Make sure it displays the modal with the subscription content:

        Event source: THE ICS FILE YOU HAVE UPLOAD
        

      18. Try other event from other types.
      19. Make sure all events displays the event type.
      Show
      Please test on clean and boost themes. Setup Create some course activity modules with a selection of dates (e.g. Quiz, Assignment) Create some manual events, including: User events Events in multiple courses Events in multiple groups Events over multiple days Navigate to the main calendar view Select Manage subscriptions Subscribe to an iCal feed Testing edit, delete and permission. Log in as admin and go to Calendar. Locate a day that has events. Click on the day number. Make sure it displays the events you have created on that day. For user, site, course and group events you should see edit and delete icons. For module events, you should not see neither edit or delete icons. You should just see a Go to activity link. Click on the link, make sure it redirects you to the correct module. Click on the edit icon, it should redirect you to the edit event form. Go back to the calendar day view and click on the delete icon. You should see a confirm message: Are you sure you want to delete the "event name" event? Now log in as a student and go to calendar. Make sure you are able to see course, site and group events. Make sure you don't have the option to edit or delete those events. Now create a user event. Make sure you are able to edit and delete your own events. Regression tests Create an user event and add the following description to it: The circle is defined by the location of the centre \(({x_0},{y_0})\) and the radius of the circle (r). Note that in the relation above, the centre is defined to be positive values of x0 and y0. Important and useful relations: \[\begin{array}{l}Area = \pi {r^2}\\Circumference = 2\pi r\\Arc{\rm{ }}length = r\theta \end{array}\] Save it and view the event on the day view. Make sure it renders Mathjax content properly. Make sure events with subcription (iCal) displays: Event source: THE ICS FILE YOU HAVE UPLOAD if it has a name, or a link if the iCal is a URL. Make sure course events displays a link to the course. Click on the link, make sure it takes you to the correct course. The colour should be redish. Make sure group events displays the group name and a link to the course. The colour should be orangish. Make sure user events background colour is blue. Make sure site events background colour is green. Now, let's click on the navigation narrows on the side. There should be one narrow on each side, one to next and other to previous day. Make sure both display the correct next and previous days. Now click on the previous narrow. Make sure it displays the events of that day. If there are no events it should display a message: There are no events this day. Repeat the test for next day. Make sure it redirect you to the next day. Now get back to month view . Click on a event created by the subscription (iCal). Make sure it displays the modal with the subscription content: Event source: THE ICS FILE YOU HAVE UPLOAD Try other event from other types. Make sure all events displays the event type.

      The calendar day view needs to be converted to template and AJAX, the navigation between days should not reload the page.

            lameze Simey Lameze
            lameze Simey Lameze
            Ryan Wyllie Ryan Wyllie
            Jun Pataleta Jun Pataleta
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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