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