My schools - primary, secondary and sixth form - had dress codes for the staff.

Also, my sixth form didn't have a uniform, but you had to dress in smart clothes (e.g. suits).

I'm all for dress codes. Men generally look a lot hotter in suits.