Fix bug : QP not appears on mini carte in infos_dossier page

This commit is contained in:
Xavier J 2015-12-08 11:32:29 +01:00
parent 11596ade65
commit 9f9e8ca176
4 changed files with 29 additions and 20 deletions

View file

@ -7,6 +7,7 @@ table {
font-size: 13px;
}
#carte_page {
#map {
@extend .col-md-12;
@extend .col-lg-12;
@ -18,6 +19,14 @@ table {
@extend .col-md-9;
@extend .col-lg-9;
}
}
#infos_dossier {
#map.mini {
height: 300px;
width: 100%;
}
}
#qp_list {
@extend .col-md-3;
@ -32,11 +41,6 @@ table {
}
}
#map.mini{
height:300px;
width:100%;
}
#map section.overlay {
position: absolute;
top: 0;
@ -107,8 +111,6 @@ table {
pointer-events: none;
}
.info {
padding: 6px 8px;
font: 14px/16px Arial, Helvetica, sans-serif;
@ -117,6 +119,7 @@ table {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
border-radius: 5px;
}
.info h4 {
margin: 0 0 5px;
color: #777;

View file

@ -16,6 +16,10 @@ class DossierDecorator < Draper::Decorator
DossierDecorator.case_state_fr state
end
def class_qp_active
'qp' if procedure.module_api_carto.quartiers_prioritaires
end
def state_color_class
return 'text-danger' if waiting_for_gestionnaire?
return 'text-info' if waiting_for_user?

View file

@ -14,7 +14,9 @@
=''
- if @dossier.procedure.module_api_carto.use_api_carto
.col-lg-6.col-md-6
#map.mini
#map.mini{class: @dossier.class_qp_active}
%input{id: 'json_latlngs', type:'hidden', value: "#{@dossier.json_latlngs}"}
%input{id: 'quartier_prioritaires', type:'hidden', value: "#{@dossier.quartier_prioritaires.to_json}"}
%script{type: 'text/javascript'}

View file

@ -11,7 +11,7 @@
%br
%br
.row
#carte_page.row
- if @dossier.procedure.module_api_carto.quartiers_prioritaires
#map.qp
#qp_list