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('z-index', '');
|
||||||
search_area.css('width', 'auto');
|
search_area.css('width', 'auto');
|
||||||
|
|
||||||
$('#action-block').append(search_area);
|
$('#search-block').append(search_area);
|
||||||
search_area.fadeIn(200);
|
search_area.fadeIn(200);
|
||||||
|
|
||||||
init_search_anim();
|
init_search_anim();
|
||||||
|
|
|
@ -227,14 +227,3 @@ div.pagination {
|
||||||
.no-margin {
|
.no-margin {
|
||||||
margin: 0;
|
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 {
|
#left-pannel {
|
||||||
padding: 80px 0 0 10px;
|
padding: 60px 0 0 10px;
|
||||||
background-color: #003189;
|
background-color: #003189;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
#search_area{
|
#search-block{
|
||||||
margin-top: 20px;
|
margin-top: 5px;
|
||||||
margin-bottom: 20px;
|
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"
|
= render partial: "layouts/navbar"
|
||||||
%div.row.no-margin
|
%div.row.no-margin
|
||||||
%div.col-lg-2.col-md-2#left-pannel
|
%div.col-lg-2.col-md-2#left-pannel
|
||||||
|
#search-block
|
||||||
|
= render partial: 'layouts/left_panels/search_area'
|
||||||
- begin
|
- begin
|
||||||
= render partial: @left_pannel_url
|
= render partial: @left_pannel_url
|
||||||
-rescue
|
-rescue
|
||||||
|
|
|
@ -7,13 +7,6 @@
|
||||||
NOUVEAUX DOSSIERS
|
NOUVEAUX DOSSIERS
|
||||||
|
|
||||||
%div#action-block
|
%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
|
%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