Organisations' filter has a title popup to explain the criteria used

Refs #124
This commit is contained in:
echarp 2018-04-08 19:28:15 +02:00
parent 04d3960cf7
commit bef9773d55
4 changed files with 6 additions and 2 deletions

View File

@ -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') = f.label :search, t('.label')
%em.fa.fa-users %em.fa.fa-users
= f.search_field :name_or_city_or_tags_or_description_cont_any, = f.search_field :name_or_city_or_tags_or_description_cont_any,
id: :q_search, size: 16, 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 = f.button class: :search do
%em.fa.fa-search %em.fa.fa-search
%span.label= t '.label' %span.label= t '.label'

View File

@ -241,6 +241,7 @@ description."
search: search:
title: Find your %{entity}! title: Find your %{entity}!
label: Search 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: index:
title: Organisations title: Organisations
new: Add an organisation new: Add an organisation

View File

@ -258,6 +258,7 @@ description plus complète."
search: search:
title: Trouve ton %{entity}! title: Trouve ton %{entity}!
label: Recherche 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: index:
title: Organisations title: Organisations
new: Ajouter une organisation new: Ajouter une organisation

View File

@ -242,6 +242,7 @@ descrição mais completa."
search: search:
title: Encontre %{entity}! title: Encontre %{entity}!
label: Pesquisa 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: index:
title: Organizações title: Organizações
new: Adicione uma organização new: Adicione uma organização