Use human_attribute_name
We use this method whenever possible
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col" class="text-center"><%= t("admin.administrators.index.id") %></th>
|
<th scope="col" class="text-center"><%= t("admin.administrators.index.id") %></th>
|
||||||
<th scope="col"><%= t("admin.administrators.index.name") %></th>
|
<th scope="col"><%= Administrator.human_attribute_name(:name) %></th>
|
||||||
<th scope="col"><%= t("admin.administrators.index.email") %></th>
|
<th scope="col"><%= Administrator.human_attribute_name(:email) %></th>
|
||||||
<th scope="col"><%= t("admin.administrators.index.description") %></th>
|
<th scope="col"><%= Administrator.human_attribute_name(:description) %></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| %>
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col"><%= t("admin.administrators.index.name") %></th>
|
<th scope="col"><%= Administrator.human_attribute_name(:name) %></th>
|
||||||
<th scope="col"><%= t("admin.administrators.index.email") %></th>
|
<th scope="col"><%= Administrator.human_attribute_name(:email) %></th>
|
||||||
<th scope="col"><%= t("admin.shared.actions") %></th>
|
<th scope="col"><%= t("admin.shared.actions") %></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col"><%= t("admin.managers.index.name") %></th>
|
<th scope="col"><%= Manager.human_attribute_name(:name) %></th>
|
||||||
<th scope="col"><%= t("admin.managers.index.email") %></th>
|
<th scope="col"><%= Manager.human_attribute_name(: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>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col"><%= t("admin.managers.index.name") %></th>
|
<th scope="col"><%= Manager.human_attribute_name(:name) %></th>
|
||||||
<th scope="col"><%= t("admin.managers.index.email") %></th>
|
<th scope="col"><%= Manager.human_attribute_name(:email) %></th>
|
||||||
<th scope="col"><%= t("admin.shared.actions") %></th>
|
<th scope="col"><%= t("admin.shared.actions") %></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col"><%= t("admin.moderators.index.name") %></th>
|
<th scope="col"><%= Moderator.human_attribute_name(:name) %></th>
|
||||||
<th scope="col" class="small-6"><%= t("admin.moderators.index.email") %></th>
|
<th scope="col" class="small-6"><%= Moderator.human_attribute_name(: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>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
<table id="moderators">
|
<table id="moderators">
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col"><%= t("admin.moderators.index.name") %></th>
|
<th scope="col"><%= Moderator.human_attribute_name(:name) %></th>
|
||||||
<th scope="col" class="small-6"><%= t("admin.moderators.index.email") %></th>
|
<th scope="col" class="small-6"><%= Moderator.human_attribute_name(:email) %></th>
|
||||||
<th scope="col"><%= t("admin.shared.actions") %></th>
|
<th scope="col"><%= t("admin.shared.actions") %></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -614,8 +614,6 @@ en:
|
|||||||
managers:
|
managers:
|
||||||
index:
|
index:
|
||||||
title: Managers
|
title: Managers
|
||||||
name: Name
|
|
||||||
email: Email
|
|
||||||
no_managers: There are no managers.
|
no_managers: There are no managers.
|
||||||
manager:
|
manager:
|
||||||
add: Add
|
add: Add
|
||||||
@@ -698,9 +696,6 @@ en:
|
|||||||
administrators:
|
administrators:
|
||||||
index:
|
index:
|
||||||
title: Administrators
|
title: Administrators
|
||||||
name: Name
|
|
||||||
email: Email
|
|
||||||
description: Description
|
|
||||||
id: Administrator ID
|
id: Administrator ID
|
||||||
no_administrators: There are no administrators.
|
no_administrators: There are no administrators.
|
||||||
administrator:
|
administrator:
|
||||||
@@ -714,8 +709,6 @@ en:
|
|||||||
moderators:
|
moderators:
|
||||||
index:
|
index:
|
||||||
title: Moderators
|
title: Moderators
|
||||||
name: Name
|
|
||||||
email: Email
|
|
||||||
no_moderators: There are no moderators.
|
no_moderators: There are no moderators.
|
||||||
moderator:
|
moderator:
|
||||||
add: Add
|
add: Add
|
||||||
|
|||||||
@@ -145,8 +145,6 @@ es:
|
|||||||
one: Registro del censo local
|
one: Registro del censo local
|
||||||
other: Registros del censo local
|
other: Registros del censo local
|
||||||
attributes:
|
attributes:
|
||||||
administrator:
|
|
||||||
description: Descripción
|
|
||||||
budget:
|
budget:
|
||||||
name: "Nombre"
|
name: "Nombre"
|
||||||
description_accepting: "Descripción durante la fase de presentación de proyectos"
|
description_accepting: "Descripción durante la fase de presentación de proyectos"
|
||||||
|
|||||||
@@ -613,8 +613,6 @@ es:
|
|||||||
managers:
|
managers:
|
||||||
index:
|
index:
|
||||||
title: Gestores
|
title: Gestores
|
||||||
name: Nombre
|
|
||||||
email: Email
|
|
||||||
no_managers: No hay gestores.
|
no_managers: No hay gestores.
|
||||||
manager:
|
manager:
|
||||||
add: Añadir como gestor
|
add: Añadir como gestor
|
||||||
@@ -697,9 +695,6 @@ es:
|
|||||||
administrators:
|
administrators:
|
||||||
index:
|
index:
|
||||||
title: Administradores
|
title: Administradores
|
||||||
name: Nombre
|
|
||||||
email: Email
|
|
||||||
description: Descripción
|
|
||||||
id: ID de Administrador
|
id: ID de Administrador
|
||||||
no_administrators: No hay administradores.
|
no_administrators: No hay administradores.
|
||||||
administrator:
|
administrator:
|
||||||
@@ -713,8 +708,6 @@ es:
|
|||||||
moderators:
|
moderators:
|
||||||
index:
|
index:
|
||||||
title: Moderadores
|
title: Moderadores
|
||||||
name: Nombre
|
|
||||||
email: Email
|
|
||||||
no_moderators: No hay moderadores.
|
no_moderators: No hay moderadores.
|
||||||
moderator:
|
moderator:
|
||||||
add: Añadir como Moderador
|
add: Añadir como Moderador
|
||||||
|
|||||||
Reference in New Issue
Block a user