All pupils who attend the common schools shall comply with the rules and regulations established in pursuance of the law for the government of the schools, shall pursue the required course of studies, and shall submit to the authority of the teachers of such schools, subject to such disciplinary or other action as the local school officials shall determine.