Teacher can now lock/unlock students from accessing lessons. They can lock all periods in the class, or only specific periods. Changes are propagated to the students in real-time when a run is in session.
Setup for testing:
Create a unit that has at least 2 lessons (lesson A and B). Add steps in each lesson.
Set up a run with the unit. Add 2 periods (period 1 and 2).
Add students to each period (student 1 in period 1 and student 2 in period 2)
Launch teacher tool in one browser and go to grade-by-step view.
Launch two more browsers. You may need to use another browser (e.g. Firefox, Safari). Log in with student 1 in one, and with student 2 in another. Launch the unit.
Test the following:
You can lock/unlock a lesson in all periods.
In teacher tool, make sure that you are viewing "all periods" using the period-select drop down in the top-right corner.
Click on the lock icon under lesson A in the teacher tool. This should prevent student 1 and student 2 from moving to any steps inside lesson A.
Click on the unlock icon under lesson A in the teacher tool. This should now allow student 1 and student 1 to move to any steps inside lesson A.
You can lock/unlock a lesson for a specific period.
In teacher tool, make sure that you are viewing "period 1" using the period-select drop down in the top-right corner.
Click on the lock icon under lesson A in the teacher tool. This should prevent student 1 from moving to any steps inside lesson A. Student 2 should still be able to access any steps in lesson A.
In teacher tool, make sure that you are viewing "period 2" using the period-select drop down in the top-right corner.
Click on the lock icon under lesson A in the teacher tool. This should prevent student 2 from moving to any steps inside lesson A. Student 1 should still not be able to access any steps in lesson A.
Test combination of locking specific periods and all periods on specific lessons.
Test that locking/unlocking persists even when you refresh the browser
Teacher can now lock/unlock students from accessing lessons. They can lock all periods in the class, or only specific periods. Changes are propagated to the students in real-time when a run is in session.
Setup for testing:
Test the following:
Closes #56