aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/group_of_lines
diff options
context:
space:
mode:
authorLuc Donnet2014-08-07 16:22:13 +0200
committerLuc Donnet2014-08-07 16:22:13 +0200
commitfeb25359fbb7628745ee38d12e352bc8204778db (patch)
tree7418e22e53ff1cff3d69380bda8a271577591d0b /app/views/group_of_lines
parent01b7c31a041d879dbd04f0bcacdbddf9a9e52f28 (diff)
downloadchouette-core-feb25359fbb7628745ee38d12e352bc8204778db.tar.bz2
Refactor search index group_of_lines like time_tables Refs #0026834
Diffstat (limited to 'app/views/group_of_lines')
-rw-r--r--app/views/group_of_lines/index.html.erb20
1 files changed, 14 insertions, 6 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">