<h1>Listing people</h1>

<table>
  <tr>
    <th>Newsletter</th>
    <th>Surname</th>
    <th>Firstname</th>
    <th>Email</th>
    <th>Phone</th>
    <th>Job</th>
    <th>Sheet</th>
    <th>Positon</th>
  </tr>

<% @people.each do |person| %>
  <tr>
    <td><%=h person.newsletter %></td>
    <td><%=h person.surname %></td>
    <td><%=h person.firstname %></td>
    <td><%=h person.email %></td>
    <td><%=h person.phone %></td>
    <td><%=h person.job %></td>
    <td><%=h person.sheet %></td>
    <td><%=h person.positon %></td>
    <td><%= link_to 'Show', person %></td>
    <td><%= link_to 'Edit', edit_person_path(person) %></td>
    <td><%= link_to 'Destroy', person, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New person', new_person_path %>