(1) Any city or town has the authority to enact an ordinance, for the purpose of preserving the public safety or reducing acts of violence by or against juveniles that are occurring at such rates as to be beyond the capacity of the police to assure public safety, establishing times and conditions under which juveniles may be present on the public streets, in the public parks, or in any other public place during specified hours.
(2) The ordinance shall not contain any criminal sanctions for a violation of the ordinance.