30 lines
993 B
Plaintext
30 lines
993 B
Plaintext
<table>
|
|
<thead>
|
|
<th scope="col"><%= t("admin.administrators.index.name") %></th>
|
|
<th scope="col"><%= t("admin.administrators.index.email") %></th>
|
|
<th scope="col" class="small-3"><%= t("admin.shared.actions") %></th>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<%= administrator.name %>
|
|
</td>
|
|
<td>
|
|
<%= administrator.email %>
|
|
</td>
|
|
<td>
|
|
<% if administrator.persisted? %>
|
|
<%= link_to t('admin.administrators.administrator.delete'),
|
|
admin_administrator_path(administrator),
|
|
method: :delete,
|
|
class: "button hollow alert expanded" %>
|
|
<% else %>
|
|
<%= link_to t('admin.administrators.administrator.add'),{ controller: "admin/administrators", action: :create, user_id: administrator.user_id },
|
|
method: :post,
|
|
class: "button success expanded" %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|