Use a shared translation for search buttons
We were writing the same text over and over for the same translations. Since they all serve the same function, it's perfectly fine for them to have the same text, and so we can have a shared translation.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%= form_tag(url, method: :get, role: "search") do |f| %>
|
||||
<%= text_field_tag :search, search_terms.to_s, placeholder: label, "aria-label": label %>
|
||||
<%= submit_tag t("admin.shared.user_search.button") %>
|
||||
<%= submit_tag t("admin.shared.search.search") %>
|
||||
<% end %>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search, "", placeholder: t("admin.local_census_records.index.search.placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.local_census_records.index.search.search"), class: "button" %>
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<%= text_field_tag :search, "", placeholder: t("admin.organizations.index.search_placeholder") %>
|
||||
|
||||
<div class="input-group-button">
|
||||
<%= f.submit t("admin.organizations.index.search"), class: "button" %>
|
||||
<%= f.submit t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search, "", placeholder: t("admin.organizations.index.search_placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= f.submit t("admin.organizations.index.search"), class: "button" %>
|
||||
<%= f.submit t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
@search,
|
||||
placeholder: t("admin.shared.booths_search.placeholder"), id: "search-booths" %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.shared.booths_search.button"), class: "button" %>
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
@search,
|
||||
placeholder: t("admin.shared.poll_officers_search.placeholder"), id: "search-officers" %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.shared.poll_officers_search.button"), class: "button" %>
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<%= text_field_tag :search, "",
|
||||
placeholder: t("admin.poll_officers.search.email_placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.poll_officers.search.search"), class: "button" %>
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
@search,
|
||||
placeholder: t("admin.shared.poll_questions_search.placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.shared.poll_questions_search.button"), class: "button" %>
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search, params[:search], placeholder: t("admin.shared.booths_search.placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= f.submit t("admin.shared.booths_search.button"), class: "button" %>
|
||||
<%= f.submit t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search, "", placeholder: t("admin.shared.debate_search.placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= f.submit t("admin.shared.debate_search.button"), class: "button" %>
|
||||
<%= f.submit t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search, "", placeholder: t("admin.shared.proposal_search.placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= f.submit t("admin.shared.proposal_search.button"), class: "button" %>
|
||||
<%= f.submit t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :search, "", placeholder: t("admin.users.search.placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.users.search.search"), class: "button" %>
|
||||
<%= submit_tag t("admin.shared.search.search"), class: "button" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<%= text_field_tag :search, "", placeholder: t("moderation.users.index.search_placeholder") %>
|
||||
</div>
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.submit t("moderation.users.index.search"), class: "button success" %>
|
||||
<%= f.submit t("admin.shared.search.search"), class: "button success" %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -907,7 +907,6 @@ en:
|
||||
entry_name: officer
|
||||
search:
|
||||
email_placeholder: Search user by email
|
||||
search: Search
|
||||
user_not_found: User not found
|
||||
help: "To add or remove Poll officers use the search form below."
|
||||
poll_officer_assignments:
|
||||
@@ -1170,7 +1169,6 @@ en:
|
||||
no_organizations: There are no organizations.
|
||||
reject: Reject
|
||||
rejected: Rejected
|
||||
search: Search
|
||||
search_placeholder: Name, email or phone number
|
||||
title: Organisations
|
||||
verified: Verified
|
||||
@@ -1255,23 +1253,19 @@ en:
|
||||
shared:
|
||||
true_value: "Yes"
|
||||
false_value: "No"
|
||||
search:
|
||||
search: "Search"
|
||||
booths_search:
|
||||
button: Search
|
||||
placeholder: Search booth by name or location
|
||||
poll_officers_search:
|
||||
button: Search
|
||||
placeholder: Search poll officers
|
||||
poll_questions_search:
|
||||
button: Search
|
||||
placeholder: Search poll questions
|
||||
proposal_search:
|
||||
button: Search
|
||||
placeholder: Search proposals by title, code, description or question
|
||||
debate_search:
|
||||
button: Search
|
||||
placeholder: Search debates by title or description
|
||||
user_search:
|
||||
button: Search
|
||||
placeholder: Search user by name or email
|
||||
search_results: "Search results"
|
||||
no_search_results: "No results found."
|
||||
@@ -1440,7 +1434,6 @@ en:
|
||||
erased: Erased
|
||||
search:
|
||||
placeholder: Search user by email, name or document number
|
||||
search: Search
|
||||
verifications:
|
||||
index:
|
||||
phone_not_given: Phone not given
|
||||
@@ -1581,7 +1574,6 @@ en:
|
||||
postal_code: Postal code
|
||||
search:
|
||||
placeholder: Search by document number
|
||||
search: Search
|
||||
import: Import CSV
|
||||
new:
|
||||
creating: Creating new local census record
|
||||
|
||||
@@ -111,7 +111,6 @@ en:
|
||||
index:
|
||||
hidden: Blocked
|
||||
hide: Block
|
||||
search: Search
|
||||
search_placeholder: email or name of user
|
||||
title: Block users
|
||||
notice_hide: User blocked. All of this user's debates and comments have been hidden.
|
||||
|
||||
@@ -906,7 +906,6 @@ es:
|
||||
entry_name: presidente de mesa
|
||||
search:
|
||||
email_placeholder: Buscar usuario por email
|
||||
search: Buscar
|
||||
user_not_found: Usuario no encontrado
|
||||
help: "Para añadir o eliminar Presidentes de mesa utiliza el buscador a continuación."
|
||||
poll_officer_assignments:
|
||||
@@ -1169,7 +1168,6 @@ es:
|
||||
no_organizations: No hay organizaciones.
|
||||
reject: Rechazar
|
||||
rejected: Rechazada
|
||||
search: Buscar
|
||||
search_placeholder: Nombre, email o teléfono
|
||||
title: Organizaciones
|
||||
verified: Verificada
|
||||
@@ -1254,23 +1252,19 @@ es:
|
||||
shared:
|
||||
true_value: "Sí"
|
||||
false_value: "No"
|
||||
search:
|
||||
search: "Buscar"
|
||||
booths_search:
|
||||
button: Buscar
|
||||
placeholder: Buscar urna por nombre
|
||||
poll_officers_search:
|
||||
button: Buscar
|
||||
placeholder: Buscar presidentes de mesa
|
||||
poll_questions_search:
|
||||
button: Buscar
|
||||
placeholder: Buscar preguntas
|
||||
proposal_search:
|
||||
button: Buscar
|
||||
placeholder: Buscar propuestas por título, código, descripción o pregunta
|
||||
debate_search:
|
||||
button: Buscar
|
||||
placeholder: Buscar debates por título o descripción
|
||||
user_search:
|
||||
button: Buscar
|
||||
placeholder: Buscar usuario por nombre o email
|
||||
search_results: "Resultados de la búsqueda"
|
||||
no_search_results: "No se han encontrado resultados."
|
||||
@@ -1439,7 +1433,6 @@ es:
|
||||
erased: Borrados
|
||||
search:
|
||||
placeholder: Buscar usuario por email, nombre o DNI
|
||||
search: Buscar
|
||||
verifications:
|
||||
index:
|
||||
phone_not_given: No ha dado su teléfono
|
||||
@@ -1580,7 +1573,6 @@ es:
|
||||
postal_code: Código postal
|
||||
search:
|
||||
placeholder: Búsqueda por número de documento
|
||||
search: Buscar
|
||||
import: Importar CSV
|
||||
new:
|
||||
creating: Creando nuevo registro de censo local
|
||||
|
||||
@@ -111,7 +111,6 @@ es:
|
||||
index:
|
||||
hidden: Bloqueado
|
||||
hide: Bloquear
|
||||
search: Buscar
|
||||
search_placeholder: email o nombre de usuario
|
||||
title: Bloquear usuarios
|
||||
notice_hide: Usuario bloqueado. Se han ocultado todos sus debates y comentarios.
|
||||
|
||||
Reference in New Issue
Block a user