<link rel"stylesheet" type="text/css" href="application.css">

<h1 style="font-family:'Droid Sans';margin-left:50px;margin-top:50px;">
	Election 2016
</h1>

<h2 style="margin-left:50px";>
Positions
</h2>
<h5 style="margin-left:50px";> <%= link_to "Add Position", new_admin_position_path %>


<hr>


<table width="100%", align="center">
  <tr>
    <th>Position</th>
  </tr>
  <% @positions.each do |a| %>
    <tr>
      <td><%= a.name %></td>
      <td>  <%= link_to "Show", admin_position_path(a.id) %>
        <%= link_to "Edit", edit_admin_position_path(a.id) %>
        <%= link_to "Delete", admin_position_path(a.id), method: :delete, data: { confirm: 'Are you sure?' } %>
      </td>
    </tr>
  <% end %>
</table>


<br>

<h4 style="margin:100px;"><%= link_to "Home", root_path %></h4>
