From bef9773d5524460ad852e2829a9c3a9819be021b Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 8 Apr 2018 19:28:15 +0200 Subject: [PATCH] Organisations' filter has a title popup to explain the criteria used Refs #124 --- app/views/orgas/_search.html.haml | 5 +++-- config/locales/views/en.yml | 1 + config/locales/views/fr.yml | 1 + config/locales/views/pt-BR.yml | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/orgas/_search.html.haml b/app/views/orgas/_search.html.haml index 07ee2d46..de403fff 100644 --- a/app/views/orgas/_search.html.haml +++ b/app/views/orgas/_search.html.haml @@ -1,9 +1,10 @@ -= search_form_for @search || Orga.search(params[:q]) do |f| += search_form_for Orga.search(params[:q]) do |f| = f.label :search, t('.label') %em.fa.fa-users = f.search_field :name_or_city_or_tags_or_description_cont_any, id: :q_search, size: 16, - placeholder: t('.title', entity: Orga.model_name.human) + placeholder: t('.title', entity: Orga.model_name.human), + title: t('.helper', entity: Orga.model_name.human) = f.button class: :search do %em.fa.fa-search %span.label= t '.label' diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 5e2ee91a..51772245 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -241,6 +241,7 @@ description." search: title: Find your %{entity}! label: Search + helper: You can search by name, tag, description or city. You can also filter per region, in the page's top right corner. index: title: Organisations new: Add an organisation diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index c72acb71..a8a41da3 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -258,6 +258,7 @@ description plus complète." search: title: Trouve ton %{entity}! label: Recherche + helper: Vous pouvez chercher par nom, mot clé, description ou ville. Vous pouvez aussi filtrer par région, en haut à droite de la page. index: title: Organisations new: Ajouter une organisation diff --git a/config/locales/views/pt-BR.yml b/config/locales/views/pt-BR.yml index a4bc398a..0c4809eb 100644 --- a/config/locales/views/pt-BR.yml +++ b/config/locales/views/pt-BR.yml @@ -242,6 +242,7 @@ descrição mais completa." search: title: Encontre %{entity}! label: Pesquisa + helper: You can search by name, tag, description or city. You can also filter per region, in the page's top right corner. (TODO) index: title: Organizações new: Adicione uma organização