<commit_before><h1>New event</h1>

<%= form_for @event do |f| %>
	<%= f.error_messages %>
	<br/>
	<div class="form-group">
		<% f.label :title %>
		<% f.text_field :title %>
	</div>
	<hr>
	<% f.fields_for :location do |loc| %>
		<div class="form-group">
			<% loc.label :name %>
			<% loc.text_field :name %>
		</div>
		<div class="form-group">
			<% loc.label :description %>
			<% loc.text_field :description %>
		</div>
		<div class="form-group">
			<% loc.label :address1%>
			<% loc.text_field :address1 %>
		</div>
		<div class="form-group">
			<% loc.label :address2 %>
			<% loc.text_field :address2 %>
		</div>
		<div class="form-group">
			<% loc.label :city %>
			<% loc.text_field :city %>
		</div>
		<div class="form-group">
			<% loc.label :state_abbrv %>
			<% loc.select(:state_abbrv, options_for_select(State::STATE_LIST)) %>
		</div>
		<div class="form-group">
			<% loc.label :zipcode %>
			<% loc.text_field :zipcode %>
		</div>
		
	<% end %>
	<%= f.submit "Submit" %>
<% end %>

<%= link_to 'Back', events_path %><commit_msg>Updated Event form; controls not displaying though, just the submit button. Need to debug.<commit_after><h1>New event</h1>

<div class="row">
	<div class="col-md-8">
		<%= form_for @event do |f| %>
			<div class="form-group">
				<% f.label :title %>
				<% f.text_field :title, autofocus: true, class: 'form-control', placeholder: "Enter a Title"  %>
			</div>
			<hr>
			<% f.fields_for :location do |loc| %>
				<div class="form-group">
					<% loc.label :name %>
					<% loc.text_field :name, class: 'form-control', placeholder: "Enter a location name" %>
				</div>
				<div class="form-group">
					<% loc.label :description %>
					<% loc.text_field :description, class: 'form-control' %>
				</div>
				<div class="form-group">
					<% loc.label :address1%>
					<% loc.text_field :address1, class: 'form-control' %>
				</div>
				<div class="form-group">
					<% loc.label :address2 %>
					<% loc.text_field :address2, class: 'form-control' %>
				</div>
				<div class="form-group">
					<% loc.label :city %>
					<% loc.text_field :city, class: 'form-control' %>
				</div>
				<div class="form-group">
					<% loc.label :state_abbrv %>
					<% loc.select(:state_abbrv, options_for_select(State::STATE_LIST), class: 'form-control') %>
				</div>
				<div class="form-group">
					<% loc.label :zipcode %>
					<% loc.text_field :zipcode, class: 'form-control' %>
				</div>
				
			<% end %>
			<%= f.submit "Submit", class: 'btn btn-success' %>
		<% end %>

<%= link_to 'Back', events_path %>
{'fraction_non_alphanumeric': 0.20759890325107716, 'fraction_numerical': 0.0050920485703094395, 'mean_word_length': 3.112721417069243, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5804912', 'n_tokens_mistral': 1186, 'n_tokens_neox': 930, 'n_words': 197}