Display search input on all pages
This commit is contained in:
parent
752ae24c9f
commit
2c96f15e93
7 changed files with 25 additions and 23 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
#left-pannel {
|
||||
padding: 80px 0 0 10px;
|
||||
padding: 60px 0 0 10px;
|
||||
background-color: #003189;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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…
Reference in a new issue