Using active css class to display which procedure is selected on dossiers#index

This commit is contained in:
JC 2016-12-02 11:25:09 +01:00
parent 62f64d2bea
commit 4717d72dde
5 changed files with 8 additions and 5 deletions

View file

@ -45,6 +45,7 @@ h5 span {
#procedure_list {
margin-left: -10px;
overflow: scroll;
margin-top: 10px;
a, a:hover {
color: #FFFFFF;
text-decoration: none;

View file

@ -18,6 +18,7 @@
}
}
#action-block {
margin-right: 10px;
.action {
background-color: #E45B51;
text-align: center;
@ -30,7 +31,7 @@
font-size: 16px;
font-weight: bold;
border: none;
width: 200px;
width: 100%;
}
}
#menu-block {
@ -45,6 +46,7 @@
text-align: center;
font-size: 25px;
width: 200px;
margin-top: 20px;
}
.tips {
margin: 0 10px 0 5px;

View file

@ -1,5 +1,5 @@
#search-block{
margin: 11px 5px 0 0;
margin: 15px 10px 0 0;
height: 50px;
}

View file

@ -14,6 +14,6 @@
%div.split-hr-left
#procedure_list
- @facade_data_view.gestionnaire_procedures_name_and_id_list.each do |procedure|
= link_to backoffice_dossiers_procedure_path(procedure[:id]),{title: procedure[:libelle]} do
%div.procedure_list_element
= link_to backoffice_dossiers_procedure_path(procedure[:id]), {title: procedure[:libelle]} do
%div.procedure_list_element{ class: ('active' if procedure[:id] == @facade_data_view.procedure.id) }
= truncate(procedure[:libelle], length: 50)

View file

@ -1,5 +1,5 @@
%div.col-lg-8.col-md-8.main-info
=@facade_data_view.procedure_id.nil? ? "Tous les dossiers" : truncate(@facade_data_view.procedure.libelle, {length: 50})
= @facade_data_view.procedure_id.nil? ? "Tous les dossiers" : truncate(@facade_data_view.procedure.libelle, {length: 50})
%div.col-lg-3.col-md-3.options
%div.row
%div.col-lg-12.col-md-12