(a) A teacher who has completed a probationary period in any district, and who has not been discharged or advised of a refusal to renew the teacher's contract under subdivision 5, shall elect to have a continuing contract with such district where contract terms and conditions, including salary and salary increases, are established based either on the length of the school calendar or an extended sc