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