No officer or employee of the city, other than the mayor and council members, shall continue in the employment of the city after becoming a candidate for nomination or election to any city or other public office, unless such officer or employee shall first obtain, by resolution of the city council, a grant of unpaid leave status for the duration of such candidacy.