Display search input on all pages
This commit is contained in:
parent
752ae24c9f
commit
2c96f15e93
7 changed files with 25 additions and 23 deletions
|
@ -26,6 +26,8 @@
|
|||
= render partial: "layouts/navbar"
|
||||
%div.row.no-margin
|
||||
%div.col-lg-2.col-md-2#left-pannel
|
||||
#search-block
|
||||
= render partial: 'layouts/left_panels/search_area'
|
||||
- begin
|
||||
= render partial: @left_pannel_url
|
||||
-rescue
|
||||
|
|
|
@ -7,13 +7,6 @@
|
|||
NOUVEAUX DOSSIERS
|
||||
|
||||
%div#action-block
|
||||
#search_area
|
||||
= form_tag(backoffice_dossiers_search_url, method: :get) do
|
||||
.input-group
|
||||
= text_field_tag('q', "#{@search_terms unless @search_terms.nil? }", id: 'q', placeholder: "Recherchez parmi vos #{@facade_data_view.total_dossier} dossiers", class:'form-control')
|
||||
%span.input-group-btn
|
||||
%button.btn.btn-default{ id:'search_button' }
|
||||
%i.fa.fa-search
|
||||
|
||||
%div#menu-block
|
||||
|
||||
|
|
7
app/views/layouts/left_panels/_search_area.html.haml
Normal file
7
app/views/layouts/left_panels/_search_area.html.haml
Normal file
|
@ -0,0 +1,7 @@
|
|||
#search_area
|
||||
= form_tag(backoffice_dossiers_search_url, method: :get) do
|
||||
.input-group
|
||||
= text_field_tag('q', "#{@search_terms unless @search_terms.nil? }", id: 'q', placeholder: "Recherchez parmi tous vos dossiers", class:'form-control')
|
||||
%span.input-group-btn
|
||||
%button.btn.btn-default{ id:'search_button' }
|
||||
%i.fa.fa-search
|
Loading…
Add table
Add a link
Reference in a new issue