Display search input on all pages

This commit is contained in:
Xavier J 2016-11-29 11:45:30 +01:00
parent 752ae24c9f
commit 2c96f15e93
7 changed files with 25 additions and 23 deletions

View file

@ -47,7 +47,7 @@ function search_fadeOut(){
search_area.css('z-index', '');
search_area.css('width', 'auto');
$('#action-block').append(search_area);
$('#search-block').append(search_area);
search_area.fadeIn(200);
init_search_anim();

View file

@ -227,14 +227,3 @@ div.pagination {
.no-margin {
margin: 0;
}
#mask_search{
background-color: rgba(0,0,0, 0.4);
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 200;
}

View file

@ -1,5 +1,5 @@
#left-pannel {
padding: 80px 0 0 10px;
padding: 60px 0 0 10px;
background-color: #003189;
height: 100%;
position: fixed;

View file

@ -1,4 +1,15 @@
#search_area{
margin-top: 20px;
margin-bottom: 20px;
#search-block{
margin-top: 5px;
height: 50px;
}
#mask_search{
background-color: rgba(0,0,0, 0.4);
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 200;
}

View file

@ -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

View file

@ -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

View 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