<h1>Listing enrolls</h1>

<table>
  <tr>
    <th>Tournament</th>
    <th>Name</th>
    <th>User</th>
    <th>Contact type</th>
    <th>Contact</th>
    <th>Deck</th>
    <th>Score</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @enrolls.each do |enroll| %>
  <tr>
    <td><%= enroll.tournament %></td>
    <td><%= enroll.name %></td>
    <td><%= enroll.user %></td>
    <td><%= enroll.contact_type %></td>
    <td><%= enroll.contact %></td>
    <td><%= enroll.deck %></td>
    <td><%= enroll.score %></td>
    <td><%= link_to 'Show', enroll %></td>
    <td><%= link_to 'Edit', edit_enroll_path(enroll) %></td>
    <td><%= link_to 'Destroy', enroll, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Enroll', new_enroll_path %>
