Skip to content

Commit

Permalink
Update UF display
Browse files Browse the repository at this point in the history
Increase Title, align comptecommunal on left side

This is link to #243
  • Loading branch information
pierrejego committed Apr 20, 2018
1 parent 9ca14eb commit 402cd49
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
15 changes: 14 additions & 1 deletion addons/cadastrapp/css/ficheUniteFonciere.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ body {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.h1{
font-size: 16px;
}

/* resize and drag */
.ui-draggable-disabled{
opacity: inherit;
Expand Down Expand Up @@ -115,9 +119,18 @@ li.dropdown {
}
.proprieteaire{
margin: 0 auto !important;
text-align: center;
text-align: left;
padding-bottom: 10px;
}
.propTitle{
padding-left: 20px;
}
.propList{
padding-left: 40px;
}
.datauflist{
padding-top: 10px;
}
.datauf{
width: 50%;
outline: 2cm #white solid;
Expand Down
3 changes: 2 additions & 1 deletion addons/cadastrapp/html/ficheUniteFonciere.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<body onload="init()">
<div id="mainPage" class="page">
<div id="titre">
<p><b>Information sur une unité foncière</b></p>
<p><h1>Information sur une unité foncière</h1></p>
</div>
<div id= "printmap" class ="map"></div>
<br/>
Expand All @@ -34,6 +34,7 @@
</div>
<div id="parcelles">
</div>
</br>
<div id="services">
</div>
</div>
Expand Down
8 changes: 5 additions & 3 deletions addons/cadastrapp/js/ficheUniteFonciere.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ function getUFInformation(parcelleId){
}

document.getElementById('informationgenerale').innerHTML =
"<div class=\"proprieteaire\"><div>"+propDisplay+" : </div>"+propName+
"<div>"+data.comptecommunal+"</div></div>"+
"<div class=\"proprieteaire\"><div class=\"propTitle\">"+propDisplay+" ( "+data.comptecommunal+" ) : </div>"+
"<div class=\"propList\">"+propName+"</div>"+
"<div class=\"datauflist\">"+
"<div class=\"datauf\"><span class=\"dataufLabel\">Surface DGFIP de l'UF : </span>"+((data.dcntpa_sum === null) ? 0 : data.dcntpa_sum.toLocaleString())+" m²</div>"+
"<div class=\"datauf\"><span class=\"dataufLabel\">Surface calculée : </span>"+((data.sigcal_sum === null) ? 0 : data.sigcal_sum.toLocaleString())+" m²</div>"+
"<div class=\"datauf\"><span class=\"dataufLabel\">Surface bâtie calculée : </span>"+((data.sigcalb_sum === null) ? 0 : data.sigcalb_sum.toLocaleString())+" m²</div>";
"<div class=\"datauf\"><span class=\"dataufLabel\">Surface bâtie calculée : </span>"+((data.sigcalb_sum === null) ? 0 : data.sigcalb_sum.toLocaleString())+" m²</div+"+
"</div>";
});

getParcellesInformation(data.uf);
Expand Down

0 comments on commit 402cd49

Please sign in to comment.