From feb25359fbb7628745ee38d12e352bc8204778db Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Thu, 7 Aug 2014 16:22:13 +0200 Subject: Refactor search index group_of_lines like time_tables Refs #0026834 --- app/views/group_of_lines/index.html.erb | 20 ++++++++++++++------ config/locales/group_of_lines.yml | 4 ++-- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/app/views/group_of_lines/index.html.erb b/app/views/group_of_lines/index.html.erb index 25bf782a2..38010f82e 100644 --- a/app/views/group_of_lines/index.html.erb +++ b/app/views/group_of_lines/index.html.erb @@ -1,11 +1,19 @@ <%= title_tag t('group_of_lines.index.title') %> -<%= search_form_for @q, :url => referential_group_of_lines_path(@referential), :html => {:method => :get} do |f| %> - <%= f.label :name_cont, "#{t('.name')} :" %> - <%= f.text_field :name_cont %> - - <%= f.submit t('actions.search') %> <%= t("or") %> - <%= link_to t("cancel"), referential_group_of_lines_path(@referential) %> +<%= search_form_for @q, :url => referential_group_of_lines_path(@referential), :html => {:method => :get, class: "form-inline", :id => "search", role: "form"} do |f| %> +
+
+
+ <%= f.text_field :name_cont, :placeholder => "#{t('.name')}", :class => "form-control" %> +
+ +
+
+ + + +
+
<% end %>
diff --git a/config/locales/group_of_lines.yml b/config/locales/group_of_lines.yml index 13e356cf2..06b893667 100644 --- a/config/locales/group_of_lines.yml +++ b/config/locales/group_of_lines.yml @@ -14,7 +14,7 @@ en: lines: "Lines list" index: title: "Group of Lines" - name: "Name" + name: "Search by name" form: lines: "Associated lines" activerecord: @@ -53,7 +53,7 @@ fr: lines: "Liste des lignes" index: title: "Groupes de lignes" - name: "Nom" + name: "Recherche par nom" form: lines: "Lignes associƩes" activerecord: -- cgit v1.2.3