<h2>All Items</h2>

<%= form_tag items_path, method: :get do %>
	<div class="form-field">
		<%= label_tag :search %>
		<%= text_field_tag :search, params[:search], placeholder: "Search For Names" %> 
		<%= submit_tag "Search", class: "submit" %>
	</div>
<% end %>

<table role="grid" summary="Voting results for OKCouncillr.">
	<thead>
		<tr>
			<th>Number</th>
			<th>Title</th>
			<th>Yes</th>
			<th>No</th>
			<th>Skip</th>
			<th>Result</th>
			<tbody>
			<% @items.each do |item| %>
				<tr>
					<td><%= link_to item.number, item_path(item) %></td>
					<td><%= link_to item.title, item_path(item) %></td>
					<td><%= item.count_yes %></td>
					<td><%= item.count_no %></td>
					<td><%= item.count_skip %></td>
					<td class="<%= item.result.to_s %>"><%= item.result.to_s.capitalize %></td>
				</tr>
			<% end %>
			</tbody>
		</tr>
	</thead>
</table>


<%= paginate @items %>

<h2>All Items</h2>

<%= form_tag items_path, method: :get do %>
	<div class="form-field">
		<%= label_tag :search %>
		<%= text_field_tag :search, params[:search], placeholder: "Search for names or ward number" %> 
		<%= submit_tag "Search", class: "submit" %>
	</div>
<% end %>

<table role="grid" summary="Voting results for OKCouncillr.">
	<thead>
		<tr>
			<th>Number</th>
			<th>Title</th>
			<th>Yes</th>
			<th>No</th>
			<th>Skip</th>
			<th>Result</th>
			<tbody>
			<% @items.each do |item| %>
				<tr>
					<td><%= link_to item.number, item_path(item) %></td>
					<td><%= link_to item.title, item_path(item) %></td>
					<td><%= item.count_yes %></td>
					<td><%= item.count_no %></td>
					<td><%= item.count_skip %></td>
					<td class="<%= item.result.to_s %>"><%= item.result.to_s.capitalize %></td>
				</tr>
			<% end %>
			</tbody>
		</tr>
	</thead>
</table>


<%= paginate @items %>

Add To Placeholder Search About Searching By Ward
Add To Placeholder Search About Searching By Ward
