Adds administrator id on admin administrators index page

This commit is contained in:
decabeza
2018-11-20 17:08:15 +01:00
parent 91e89ce3af
commit ae3a2ed3f3
4 changed files with 7 additions and 0 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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.

View File

@@ -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