Added a check on create new period
Button to disable edit attendance
Ajaxed final submit button
Edited the code to accomodate the new batch attribute