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,16 +7,25 @@ table {
font-size: 13px;
}
#map{
@extend .col-md-12;
@extend .col-lg-12;
#carte_page {
#map {
@extend .col-md-12;
@extend .col-lg-12;
height:600px;
height: 600px;
}
#map.qp {
@extend .col-md-9;
@extend .col-lg-9;
}
}
#map.qp {
@extend .col-md-9;
@extend .col-lg-9;
#infos_dossier {
#map.mini {
height: 300px;
width: 100%;
}
}
#qp_list {
@ -24,19 +33,14 @@ table {
@extend .col-lg-3;
h3 {
margin-top:0px;
margin-top: 0px;
}
ul li {
margin-bottom:10px;
margin-bottom: 10px;
}
}
#map.mini{
height:300px;
width:100%;
}
#map section.overlay {
position: absolute;
top: 0;
@ -107,16 +111,15 @@ table {
pointer-events: none;
}
.info {
padding: 6px 8px;
font: 14px/16px Arial, Helvetica, sans-serif;
background: white;
background: rgba(255,255,255,0.8);
box-shadow: 0 0 15px rgba(0,0,0,0.2);
background: rgba(255, 255, 255, 0.8);
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