aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/group_of_lines/index.html.erb20
-rw-r--r--config/locales/group_of_lines.yml4
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| %>
+<div class="panel panel-default">
+ <div class="panel-heading">
+ <div class="input-group col-md-12">
+ <%= f.text_field :name_cont, :placeholder => "#{t('.name')}", :class => "form-control" %>
+ <div class="input-group-btn">
+ <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
+ </div>
+ </div><!-- /input-group -->
+ <!-- <a data-toggle="collapse" data-parent="#search" href="#advanced_search"> -->
+ <!-- <i class="fa fa-plus"></i> <%= "#{t('.advanced_search')}" %> -->
+ <!-- </a> -->
+ </div>
+</div>
<% end %>
<div class="page_info">
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: