YOU SAID:
no headwear is to be worn in the school
INTO JAPANESE
学校では帽子をかぶってはいけません
BACK INTO ENGLISH
don't wear hats at school
INTO JAPANESE
学校では帽子をかぶらない
BACK INTO ENGLISH
don't wear hats at school
That didn't even make that much sense in English.