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