Commit 0809dfd0 authored by Muhamad's avatar Muhamad

panel-samping

parent 549a6594
...@@ -15,7 +15,7 @@ class Dashboard(generic.TemplateView): ...@@ -15,7 +15,7 @@ class Dashboard(generic.TemplateView):
all = all_.fetchall() all = all_.fetchall()
with conn.cursor() as kel: with conn.cursor() as kel:
kel.execute("SELECT json_build_object('type', 'Feature', 'administrasi', (kode_desa, desa, kecamatan, kab_kota, provinsi, jumlah_pen, jumlah_kk, luas_desa),'penduduk', (pria, wanita, belum_kawin, kawin, cerai_hidup, cerai_mati, wajib_ktp, islam, kristen, khatolik, hindu, budha, konghucu, kepercayaan_lain, u0, u5, u10, u15, u20, u25, u30, u35, u40, u45, u50, u55, u60, u65, u70, u75),'pekerjaan_pendidikan', (tidak_sekolah, belum_tamat, tamat_sd, sltp, slta, diploma_i, diploma_ii, diploma_iv, strata_ii, strata_iii, tidak_bekerja, aparatur_pemerintah, tenaga_pendidik, wiraswasta, pertanian, tenaga_kesehatan, pensiunan, pegawai, tentara, kepolisian, pedagang, petani, peternak, nelayan, karyawan, buruh, pembantu, tukang, pendeta, pastor, ustadz, dosen, guru, pilot, pengacara, notaris, arsitek, akuntan, konsultan, dokter, bidan, perawat, psikiater, sopir, lainnya),'geometry', ST_AsGeoJSON(geom :: geometry) :: json) from geo_data_kelurahan") kel.execute("SELECT json_build_object('type', 'Feature', 'administrasi', (kode_desa, desa, kecamatan, kab_kota, provinsi, jumlah_pen, jumlah_kk, luas_desa),'penduduk', (pria, wanita, belum_kawin, kawin, cerai_hidup, cerai_mati, wajib_ktp, islam, kristen, khatolik, hindu, budha, konghucu, kepercayaan_lain, u0, u5, u10, u15, u20, u25, u30, u35, u40, u45, u50, u55, u60, u65, u70, u75),'pekerjaan_pendidikan', (tidak_sekolah, belum_tamat, tamat_sd, sltp, slta, diploma_i, diploma_ii, diploma_iv, strata_ii, strata_iii, tidak_bekerja, aparatur_pemerintah, tenaga_pendidik, wiraswasta, pertanian, tenaga_kesehatan, pensiunan, pegawai, tentara, kepolisian, pedagang, petani, peternak, nelayan, karyawan, buruh, pembantu, tukang, pendeta, pastor, ustadz, dosen, guru, pilot, pengacara, notaris, arsitek, akuntan, konsultan, dokter, bidan, perawat, psikiater, sopir, lainnya), 'poi',(jml_puskesma, jml_sekolah, jml_sarib),'geometry', ST_AsGeoJSON(geom :: geometry) :: json) from geo_data_kelurahan")
kel_res_ = kel.fetchall() kel_res_ = kel.fetchall()
with conn.cursor() as kec: with conn.cursor() as kec:
...@@ -152,16 +152,13 @@ class Dashboard(generic.TemplateView): ...@@ -152,16 +152,13 @@ class Dashboard(generic.TemplateView):
return render (request, self.template_name, context) return render (request, self.template_name, context)
class SearchLocation(generic.TemplateView): class SearchLocation(generic.TemplateView):
template_name = "maps/maps.html" template_name = "layout/coba.html"
# @method_decorator(login_required(login_url='maps:login')) # @method_decorator(login_required(login_url='maps:login'))
def get(self, request): def get(self, request):
return redirect("apps:dashboard") return render (request, self.template_name, {"title":"NA - CheckByPolygon"})#,"polbang":polbang,"poltrees":poltrees,'jumlah_bangunan' : len(polbang)+len(poltrees), 'batas_co':batas_desa, 'search_by': 'address', 'address':f'{self.search_desa},{self.search_kab}', 'poly_desa':poly_desa, 'lat':lat, 'lng':lng, 'zoom':zoom, 'line_jalan':line_jalan})
def post(self, request):
return render (request, self.template_name, {"title":"NA - CheckByPolygon"})#,"polbang":polbang,"poltrees":poltrees,'jumlah_bangunan' : len(polbang)+len(poltrees), 'batas_co':batas_desa, 'search_by': 'address', 'address':f'{self.search_desa},{self.search_kab}', 'poly_desa':poly_desa, 'lat':lat, 'lng':lng, 'zoom':zoom, 'line_jalan':line_jalan})
class SearchRadius(generic.TemplateView): class SearchRadius(generic.TemplateView):
template_name = "maps/maps.html" template_name = "maps/maps.html"
......
...@@ -46,8 +46,7 @@ ...@@ -46,8 +46,7 @@
.fixed-plugin .dropdown-menu { .fixed-plugin .dropdown-menu {
right: 80px; right: 80px;
left: auto; width: 685px;
width: 290px;
border-radius: 0.1875rem; border-radius: 0.1875rem;
padding: 0 10px; padding: 0 10px;
} }
...@@ -1059,9 +1058,8 @@ ...@@ -1059,9 +1058,8 @@
} }
.fixed-plugin .dropdown .dropdown-menu { .fixed-plugin .dropdown .dropdown-menu {
top: -40px !important; top: -40px;
opacity: 0; opacity: 0;
left: -303px !important;
transform-origin: 100% 0; transform-origin: 100% 0;
} }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
width: 260px; width: 260px;
} }
/* offline-doc */ /* offline-doc */
.offline-doc .navbar.navbar-transparent { .offline-doc .navbar.navbar-transparent {
...@@ -57,5 +58,4 @@ ...@@ -57,5 +58,4 @@
#map { #map {
z-index: 2; z-index: 2;
height: calc(100vh - 70px); height: calc(100vh - 70px);
margin-top: 70px;
} }
\ No newline at end of file
This diff is collapsed.
...@@ -76,7 +76,19 @@ $("#button_hide").click(function() { ...@@ -76,7 +76,19 @@ $("#button_hide").click(function() {
$("#button_unhide").click(function() { $("#button_unhide").click(function() {
$("#thisFooter").css('display', 'block'); $("#thisFooter").css('display', 'block');
$("#button_unhide").css('display', 'none'); $("#button_unhide").css('display', 'none');
})
$("#button_hide_panel").click(function() {
$("#panel-samping").css('display', 'none');
$("#button_unhide_panel").css('display', 'block');
$("#button_hide_panel").css('display', 'none');
})
$("#button_unhide_panel").click(function() {
$("#panel-samping").css('display', 'block');
$("#button_unhide").css('display', 'none');
$("#button_hide_panel").css('display', 'block');
}) })
...@@ -121,11 +133,11 @@ attributionControl.onAdd = function(map) { ...@@ -121,11 +133,11 @@ attributionControl.onAdd = function(map) {
map.addControl(attributionControl); map.addControl(attributionControl);
var zoomControl = L.control.zoom({ var zoomControl = L.control.zoom({
position: "topleft" position: "bottomright"
}).addTo(map); }).addTo(map);
var locateControl = L.control.locate({ var locateControl = L.control.locate({
position: "topleft", position: "bottomright",
drawCircle: false, drawCircle: false,
follow: true, follow: true,
setView: true, setView: true,
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
.footer { .footer {
background: #ffffffa6; background: #ffffffa6;
position: fixed; position: fixed;
left: 0; left: 0px;
right: 0; right: 0px;
bottom: 0; bottom: 0;
width: 1000px;
height: 170px; height: 170px;
z-index: 999; z-index: 999;
} }
...@@ -94,11 +95,30 @@ ...@@ -94,11 +95,30 @@
width: 40px; width: 40px;
font-size: 10pt; font-size: 10pt;
font-family: tahoma; font-family: tahoma;
margin-bottom: 5px; right: 60px;
margin-right: 23px;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0;
z-index: 99999999; z-index: 99999999;
} }
.dataTables_length {
margin: 0 0 0px 0px;
}
.dataTables_filter {
position: relative;
display: block;
float: left;
margin: 0 0 0px 0px;
}
.panel-body+.dataTables_wrapper,
.panel-body+*>.dataTables_wrapper {
border-top: 0px;
}
.datatable-header,
.datatable-footer {
padding: 0px 0px 0px 10px;
}
</style> </style>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -230,14 +230,15 @@ ...@@ -230,14 +230,15 @@
</div> </div>
</div> </div>
<div class="footer" id="thisFooter" style="bottom: 0px"> <div class="footer" id="thisFooter" style="bottom: 0px; left: 0px;">
<input type="hidden" id="infoLongitude"> <input type="hidden" id="infoLongitude">
<input type="hidden" id="infoLatitude"> <input type="hidden" id="infoLatitude">
<input type="hidden" id="infoLimitx"> <input type="hidden" id="infoLimitx">
<div> <div>
<a href="#" class="btn btn-default" id="button_hide"><span class="caret" style="margin-left: -5px;"></span></a> <a href="#" class="btn btn-default" id="button_hide"><span class="caret" style="margin-left: -5px;"></span></a>
</div> </div>
<div class="row"> <div class="row" id="info-footer">
<div class="col-xs-12"> <div class="col-xs-12">
...@@ -350,9 +351,9 @@ ...@@ -350,9 +351,9 @@
</div> </div>
</div> </div>
<div class="col-md-3" style="min-width: 150px;padding-left:90px;bottom:-140px"> <div class="col-md-3" style="min-width: 150px;padding-left:50px;bottom:-140px">
<i><b> <i><b>
Sumber : DUKCAPIL, Desember 2019 Sumber : DUKCAPIL, 2019
</b></i> </b></i>
</div> </div>
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment