added code to attendance views so that a class period will get set for a...

... course attendance object when attendance is taken