Adds administrator id on admin administrators index page
This commit is contained in:
@@ -8,12 +8,16 @@
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<th scope="col" class="text-center"><%= t("admin.administrators.index.id") %></th>
|
||||
<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>
|
||||
<% @administrators.each do |administrator| %>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<%= administrator.id %>
|
||||
</td>
|
||||
<td>
|
||||
<%= administrator.name %>
|
||||
</td>
|
||||
|
||||
@@ -588,6 +588,7 @@ en:
|
||||
title: Administrators
|
||||
name: Name
|
||||
email: Email
|
||||
id: Administrator ID
|
||||
no_administrators: There are no administrators.
|
||||
administrator:
|
||||
add: Add
|
||||
|
||||
@@ -585,6 +585,7 @@ es:
|
||||
administrators:
|
||||
index:
|
||||
title: Administradores
|
||||
id: ID de Administrador
|
||||
name: Nombre
|
||||
email: Email
|
||||
no_administrators: No hay administradores.
|
||||
|
||||
@@ -10,6 +10,7 @@ feature 'Admin administrators' do
|
||||
end
|
||||
|
||||
scenario 'Index' do
|
||||
expect(page).to have_content @administrator.id
|
||||
expect(page).to have_content @administrator.name
|
||||
expect(page).to have_content @administrator.email
|
||||
expect(page).not_to have_content @user.name
|
||||
|
||||
Reference in New Issue
Block a user