added some logic to scheduler template for teacher.

Added some logic to the scheduler template. So when teachers are logged in displays info but not for students.