<div class="small-12 column">
  <table>
    <tbody>
      <tr>
        <td>
          <%= officer.name %>
        </td>
        <td>
          <%= officer.email %>
        </td>
        <td class="text-right">
          <% if officer.persisted? %>
            <%= link_to t('admin.poll_officers.officer.delete'),
                        admin_poll_officer_path(officer),
                        method: :delete,
                        class: "button hollow alert" %>
          <% else %>
            <%= link_to t('admin.poll_officers.officer.add'),{ controller: "admin/poll/officers", action: :create, user_id: officer.user_id },
                        method: :post,
                        class: "button success" %>
          <% end %>
        </td>
      </tr>
    </tbody>
  </table>
</div>
