Group admin search label translations together
Since there are two different labels/placeholders for poll officers and also two different ones for users, we're only grouping one of each.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<h2><%= t("admin.debates.index.title") %></h2>
|
||||
|
||||
<% if @debates.any? %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.debate_search.placeholder")) %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.search.label.debates")) %>
|
||||
|
||||
<h3 class="inline-block"><%= page_entries_info @debates %></h3>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
class: "button float-right hollow" %>
|
||||
|
||||
<%= render Admin::SearchComponent.new(
|
||||
label: t("admin.local_census_records.index.search.placeholder"),
|
||||
label: t("admin.shared.search.label.local_census_records"),
|
||||
remote: true
|
||||
) %>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<%= render Admin::SearchComponent.new(
|
||||
url: search_admin_organizations_path,
|
||||
label: t("admin.organizations.index.search_placeholder")
|
||||
label: t("admin.shared.search.label.organizations")
|
||||
) %>
|
||||
|
||||
<%= render "shared/filter_subnav", i18n_namespace: "admin.organizations.index" %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= t("admin.organizations.search.title") %></h2>
|
||||
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.organizations.index.search_placeholder")) %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.search.label.organizations")) %>
|
||||
|
||||
<div id="search-results">
|
||||
<% if @organizations.any? %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search,
|
||||
@search,
|
||||
placeholder: t("admin.shared.booths_search.placeholder"), id: "search-booths" %>
|
||||
placeholder: t("admin.shared.search.label.booths"), id: "search-booths" %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<%= link_to t("admin.booths.index.add_booth"), new_admin_booth_path, class: "button float-right" %>
|
||||
<% end %>
|
||||
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.booths_search.placeholder")) %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.search.label.booths")) %>
|
||||
|
||||
<% if @booths.empty? %>
|
||||
<div class="callout primary">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search,
|
||||
@search,
|
||||
placeholder: t("admin.shared.poll_officers_search.placeholder"), id: "search-officers" %>
|
||||
placeholder: t("admin.shared.search.label.poll_officers"), id: "search-officers" %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.poll_questions_search.placeholder")) %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.search.label.poll_questions")) %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<h2><%= t("admin.proposals.index.title") %></h2>
|
||||
|
||||
<% if @proposals.any? %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.proposal_search.placeholder")) %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.search.label.proposals")) %>
|
||||
|
||||
<h3><%= page_entries_info @proposals %></h3>
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render Admin::SearchComponent.new(url: url, label: t("admin.shared.user_search.placeholder")) %>
|
||||
<%= render Admin::SearchComponent.new(url: url, label: t("admin.shared.search.label.users")) %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<main>
|
||||
<h2><%= t("management.proposals.index.title") %></h2>
|
||||
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.proposal_search.placeholder")) %>
|
||||
<%= render Admin::SearchComponent.new(label: t("admin.shared.search.label.proposals")) %>
|
||||
|
||||
<div class="management-list">
|
||||
<div class="proposals-list">
|
||||
|
||||
@@ -1169,7 +1169,6 @@ en:
|
||||
no_organizations: There are no organizations.
|
||||
reject: Reject
|
||||
rejected: Rejected
|
||||
search_placeholder: Name, email or phone number
|
||||
title: Organisations
|
||||
verified: Verified
|
||||
verify: Verify
|
||||
@@ -1254,19 +1253,16 @@ en:
|
||||
true_value: "Yes"
|
||||
false_value: "No"
|
||||
search:
|
||||
label:
|
||||
booths: "Search booth by name or location"
|
||||
debates: "Search debates by title or description"
|
||||
local_census_records: "Search by document number"
|
||||
organizations: "Name, email or phone number"
|
||||
poll_officers: "Search poll officers"
|
||||
poll_questions: "Search poll questions"
|
||||
proposals: "Search proposals by title, code, description or question"
|
||||
users: "Search user by name or email"
|
||||
search: "Search"
|
||||
booths_search:
|
||||
placeholder: Search booth by name or location
|
||||
poll_officers_search:
|
||||
placeholder: Search poll officers
|
||||
poll_questions_search:
|
||||
placeholder: Search poll questions
|
||||
proposal_search:
|
||||
placeholder: Search proposals by title, code, description or question
|
||||
debate_search:
|
||||
placeholder: Search debates by title or description
|
||||
user_search:
|
||||
placeholder: Search user by name or email
|
||||
search_results: "Search results"
|
||||
no_search_results: "No results found."
|
||||
actions: Actions
|
||||
@@ -1572,8 +1568,6 @@ en:
|
||||
document_number: Document number
|
||||
date_of_birth: Date of birth
|
||||
postal_code: Postal code
|
||||
search:
|
||||
placeholder: Search by document number
|
||||
import: Import CSV
|
||||
new:
|
||||
creating: Creating new local census record
|
||||
|
||||
@@ -1168,7 +1168,6 @@ es:
|
||||
no_organizations: No hay organizaciones.
|
||||
reject: Rechazar
|
||||
rejected: Rechazada
|
||||
search_placeholder: Nombre, email o teléfono
|
||||
title: Organizaciones
|
||||
verified: Verificada
|
||||
verify: Verificar
|
||||
@@ -1253,19 +1252,16 @@ es:
|
||||
true_value: "Sí"
|
||||
false_value: "No"
|
||||
search:
|
||||
label:
|
||||
booths: "Buscar urna por nombre"
|
||||
debates: "Buscar debates por título o descripción"
|
||||
local_census_records: "Búsqueda por número de documento"
|
||||
organizations: "Nombre, email o teléfono"
|
||||
poll_officers: "Buscar presidentes de mesa"
|
||||
poll_questions: "Buscar preguntas"
|
||||
proposals: "Buscar propuestas por título, código, descripción o pregunta"
|
||||
users: "Buscar usuario por nombre o email"
|
||||
search: "Buscar"
|
||||
booths_search:
|
||||
placeholder: Buscar urna por nombre
|
||||
poll_officers_search:
|
||||
placeholder: Buscar presidentes de mesa
|
||||
poll_questions_search:
|
||||
placeholder: Buscar preguntas
|
||||
proposal_search:
|
||||
placeholder: Buscar propuestas por título, código, descripción o pregunta
|
||||
debate_search:
|
||||
placeholder: Buscar debates por título o descripción
|
||||
user_search:
|
||||
placeholder: Buscar usuario por nombre o email
|
||||
search_results: "Resultados de la búsqueda"
|
||||
no_search_results: "No se han encontrado resultados."
|
||||
actions: Acciones
|
||||
@@ -1571,8 +1567,6 @@ es:
|
||||
document_number: Número de documento
|
||||
date_of_birth: Fecha de nacimiento
|
||||
postal_code: Código postal
|
||||
search:
|
||||
placeholder: Búsqueda por número de documento
|
||||
import: Importar CSV
|
||||
new:
|
||||
creating: Creando nuevo registro de censo local
|
||||
|
||||
Reference in New Issue
Block a user