The city or town council has power to make and pass all bylaws, ordinances, orders, and resolutions not repugnant to the constitution of the United States or of the state of Montana or to the provisions of this title, necessary for the government or management of the affairs of a city or town, for the execution of the powers vested in the body corporate, and for carrying into effect the provisions of this title.
§ 7-5-4101, MCA