Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OKU-GIS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhamad
OKU-GIS
Commits
f7c61c39
Commit
f7c61c39
authored
Dec 14, 2021
by
Manggar Mahardhika
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.khansia.co.id/Nahrowi/oku-gis
parents
6751c71a
fe5ca450
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
343 additions
and
218 deletions
+343
-218
Application/views.py
Application/views.py
+7
-2
templates/includes/js-m.html
templates/includes/js-m.html
+224
-138
templates/includes/js-o.html
templates/includes/js-o.html
+69
-55
templates/includes/permission.html
templates/includes/permission.html
+24
-0
templates/layout/layout.html
templates/layout/layout.html
+19
-23
No files found.
Application/views.py
View file @
f7c61c39
...
...
@@ -509,11 +509,15 @@ class Dashboard(generic.TemplateView):
'kecamatan'
:
j
[
8
],
}
res_all
.
append
(
data_all
)
perm_group
=
[]
if
request
.
user
.
is_authenticated
:
current_user
=
request
.
user
thisUser
=
current_user
.
id
for
xx
in
request
.
user
.
get_group_permissions
():
perm_group
.
append
(
xx
.
split
(
"."
)[
1
])
if
thisUser
==
None
:
user_data
=
{
"filepath"
:
'placeholder.jpg'
}
else
:
...
...
@@ -582,7 +586,7 @@ class Dashboard(generic.TemplateView):
auth_group ag
WHERE
au.id = aug.user_id AND
ag.id = aug.group_id
AND
ag.id = aug.group_id
ORDER BY
au.username ASC"""
userlist_
.
execute
(
sql
)
...
...
@@ -626,6 +630,7 @@ class Dashboard(generic.TemplateView):
'global'
:
all
[
0
],
'res_all'
:
res_all
,
'thisUser'
:
user_data
,
'perm_group'
:
perm_group
# 'user_res':user_res
}
return
render
(
request
,
self
.
template_name
,
context
)
...
...
templates/includes/js-m.html
View file @
f7c61c39
...
...
@@ -636,6 +636,13 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_kantor_administrasi
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_kantor_administrasi
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_delete_adm
=
`
<div class="modal-dialog md">
...
...
@@ -827,12 +834,12 @@
}
else
{
markeradm
.
remove
()
geo_po_adm
.
remove
()
// valket()
// valket()
}
}
$
(
document
).
on
(
"
click
"
,
"
#btn_edit_adm
"
,
function
()
{
var
map_edit
=
L
.
map
(
'
map-for-edit
'
,
{
editable
:
true
,
zoomControl
:
false
,
...
...
@@ -904,9 +911,9 @@
},
function
()
{
$
(
"
#modal_adm
"
).
modal
(
'
hide
'
);
$
(
"
#modal_detail_non_kelurahan
"
).
modal
(
'
hide
'
)
// markeradm.remove()
// geo_po_adm.remove()
// valket()
// markeradm.remove()
// geo_po_adm.remove()
// valket()
location
.
reload
();
// $.ajax({
// url: "{% url 'api:reloadpoint' %}",
...
...
@@ -1146,6 +1153,14 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_layanan_kesehatan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_layanan_kesehatan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_edit_lk
=
`
...
...
@@ -1338,7 +1353,7 @@
}
else
{
markerkes
.
remove
()
geo_po_kes
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -1564,6 +1579,13 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_puskesmas
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_puskesmas
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_edit_puskes
=
`
<div class="modal-dialog md">
<div class="modal-content">
...
...
@@ -1753,7 +1775,7 @@
}
else
{
markerpuskes
.
remove
()
geo_po_puskes
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -1978,6 +2000,13 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_rumah_sakit
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_rumah_sakit
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_edit_rs
=
`
<div class="modal-dialog md">
...
...
@@ -2153,7 +2182,7 @@
geo_po_rumah_sakit
.
addTo
(
map
)
}
else
{
geo_po_rumah_sakit
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -2600,6 +2629,13 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_sarana_ibadah
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_sarana_ibadah
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_delete_point
=
`
<div class="modal-dialog md">
...
...
@@ -2676,7 +2712,7 @@
}
else
{
markeribdh
.
remove
()
geo_po_sarana_ibadah
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -3103,6 +3139,13 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_sarana_pendidikan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_sarana_pendidikan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-content">
...
...
@@ -3179,7 +3222,7 @@
}
else
{
markerpend
.
remove
()
geo_po_sarana_pendidikan
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -3341,14 +3384,14 @@
// var raja = feature.administrasi.f10;
// }
// content_edit_spbu = `
//
<
div
class
=
"
modal-dialog md
"
>
//
<
div
class
=
"
modal-content
"
>
//
<
div
class
=
"
modal-header bg-info
"
>
//
<
button
type
=
"
button
"
class
=
"
close
"
data
-
dismiss
=
"
modal
"
onclick
=
"
destroyfade()
"
>&
times
;
<
/button
>
//
<
h6
class
=
"
modal-title
"
>
Edit
Point
<
/h6
>
//
<
/div
>
//
<
div
class
=
"
tab-pane has-padding
"
id
=
"
panel-tab2
"
>
//
<
div
class
=
"
tab-pane
"
id
=
"
bottom-justified-data
"
>
...
...
@@ -3359,7 +3402,7 @@
//
<
/ul
>
//
<
div
class
=
"
tab-content
"
>
//
<
div
class
=
"
tab-pane active
"
id
=
"
right-tab2-feas-upli
"
>
//
<
div
class
=
"
form-group
"
>
//
<
div
id
=
"
map-for-edit
"
style
=
"
height: 300px;position: relative;margin: 10px;
"
><
/div
>
...
...
@@ -3388,7 +3431,7 @@
//
<
div
class
=
"
col-lg-9
"
>
//
<
input
id
=
"
namobj
"
type
=
"
text
"
class
=
"
form-control
"
value
=
"
` + feature.administrasi.f1 + `
"
required
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
...
...
@@ -3402,7 +3445,7 @@
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
form-group
"
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Alamat
<
/label
>
...
...
@@ -3414,7 +3457,7 @@
//
<
/div
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
form-group
"
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Luas
Tanah
<
/label
>
//
<
div
class
=
"
col-lg-6
"
>
...
...
@@ -3429,7 +3472,7 @@
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
form-group
"
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Pemilik
<
/label
>
...
...
@@ -3438,7 +3481,7 @@
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
...
...
@@ -3449,7 +3492,7 @@
//
<
hr
>
//
<
div
class
=
"
modal-footer
"
>
//
<
button
type
=
"
button
"
class
=
"
btn btn-info
"
id
=
"
saveeditspbu
"
>
Save
changes
<
/button
>
//
<
/div
>
//
<
/div
>
...
...
@@ -3889,7 +3932,13 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_statiun
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_stasiun
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-content">
...
...
@@ -3949,7 +3998,7 @@
geo_po_stasiun
.
addTo
(
map
)
}
else
{
geo_po_stasiun
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -4277,6 +4326,14 @@
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_terminal_bus
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_terminal_bus
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-content">
...
...
@@ -4337,7 +4394,7 @@
geo_po_terminal
.
addTo
(
map
)
}
else
{
geo_po_terminal
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -4665,6 +4722,14 @@
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_cagar_budaya
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_cagar_budaya
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-content">
...
...
@@ -4726,7 +4791,7 @@
geo_po_cagar_budaya
.
addTo
(
map
)
}
else
{
geo_po_cagar_budaya
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -5064,6 +5129,13 @@
<a href="#" id="btn_delete_adm" data-toggle="modal" data-target="#modald_adm" data-backdrop="static" data-keyboard="false" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;" title="Delete"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_gardu_listrik
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_gardu_listrik
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content_delete_point
=
`
<div class="modal-dialog md">
...
...
@@ -5125,7 +5197,7 @@
geo_po_gardu_listrik
.
addTo
(
map
)
}
else
{
geo_po_gardu_listrik
.
remove
()
// valket()
// valket()
}
}
...
...
@@ -5287,7 +5359,7 @@
// cb100()
// gl100()
// }
// gas_poin()
function
showpanel
(
content
)
{
...
...
@@ -5415,15 +5487,15 @@
// var map_cesium = new Cesium.Viewer('map-cesium');
var
map_cesium
=
new
Cesium
.
Viewer
(
'
map-cesium
'
,
{
imageryProvider
:
new
Cesium
.
BingMapsImageryProvider
({
url
:
'
//dev.virtualearth.net
'
,
key
:
'
Anj9XBZaRShAMdbXJlZ16iqEVpjikY1eY_dzqGl451WYkSKV3l_FJaFgMbhwdbLz
'
,
mapStyle
:
Cesium
.
BingMapsStyle
.
AERIAL
//url : '//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
//url : Cesium.buildModuleUrl('/static/Cesium-185/Build/Cesium/Assets/Textures/NaturalEarthII')
}),
baseLayerPicker
:
false
,
geocoder
:
false
imageryProvider
:
new
Cesium
.
BingMapsImageryProvider
({
url
:
'
//dev.virtualearth.net
'
,
key
:
'
Anj9XBZaRShAMdbXJlZ16iqEVpjikY1eY_dzqGl451WYkSKV3l_FJaFgMbhwdbLz
'
,
mapStyle
:
Cesium
.
BingMapsStyle
.
AERIAL
//url : '//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
//url : Cesium.buildModuleUrl('/static/Cesium-185/Build/Cesium/Assets/Textures/NaturalEarthII')
}),
baseLayerPicker
:
false
,
geocoder
:
false
});
//function mapsganti() {
...
...
@@ -5487,7 +5559,7 @@
$
(
"
.rar
"
).
css
(
'
display
'
,
'
none
'
);
$
(
"
#labelchange
"
).
html
(
`<img src="static/img/icon-1/Vector2d.svg" alt="" style="height: 35px;width: 35px;margin: 7px;filter: invert(48%) sepia(79%) saturate(2398%) hue-rotate(190deg) brightness(77%) contrast(170%);z-index:1;">`
)
$
(
"
.tooltip-3d
"
).
html
(
`2D`
)
// $(".tooltip-3d").css(`background-color`,'white!important');
// $(".tooltip-3d").css(`background-color`,'white!important');
var
nama_desa
=
$
(
"
#search_desa
"
).
val
();
$
.
ajax
({
...
...
@@ -6441,6 +6513,14 @@
<a href="#" class="btn btn-primary" data-toggle="modal" data-target="#modal_tampak" id="btn_upload_tampak" data-backdrop="static" data-keyboard="false"><i>Upload Tampak Bangunan 3D</i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_bangunan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_bangunan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -6528,7 +6608,7 @@
},
dataType
:
'
json
'
,
success
:
function
(
data
)
{
if
(
data
[
'
administrasi
'
][
'
f8
'
]
==
'
None
'
)
{
var
path_img
=
"
static/img/image_null.jpg
"
}
else
{
...
...
@@ -6547,12 +6627,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -6586,7 +6666,7 @@
$
(
"
.btn_action
"
).
html
(
`
`
)
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -6675,12 +6755,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -6803,12 +6883,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -6931,12 +7011,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -6970,7 +7050,7 @@
$
(
"
.btn_action
"
).
html
(
`
`
)
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -7059,12 +7139,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -7098,7 +7178,7 @@
$
(
"
.btn_action
"
).
html
(
`
`
)
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -7187,12 +7267,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -7226,7 +7306,7 @@
$
(
"
.btn_action
"
).
html
(
`
`
)
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -7288,80 +7368,80 @@
}
})
// } else if (Cesium.defined(selectedEntity.namespbu)) {
// var id_3dadm = selectedEntity.namespbu
// $.ajax({
// url: "{% url 'api:editpom' %}",
// data: {
// 'id_point': id_3dadm
// },
// dataType: 'json',
// success: function(data) {
// if (data['administrasi']['f8'] == 'None') {
// var path_img = "static/img/image_null.jpg"
// } else {
// var path_img = `"static/img/image/` + data['administrasi']['f8'] + `"`
// }
// content = `
<
table
class
=
"
table table-hover tasks-list
"
>
//
<
thead
style
=
"
text-align: center;
"
>
//
<
tr
>
//
<
th
style
=
"
padding: 0 0 0 0px;
"
>
//
<
img
src
=
` + path_img + `
alt
=
"
Image
"
style
=
"
width: 100%;max-height: 237px;height:237
"
>
//
<
/th
>
//
<
/tr
>
//
<
/thead
>
//
<
tbody
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 100px;
"
>
//
<
th
>
//
<
div
>
//
<
h1
style
=
"
font-family: Google Sans,Roboto,Arial,sans-serif;
// letter-spacing: 0;
// font-weight: 400;
"
>
//
<
span
style
=
"
font-size: x-large;
"
>
// ` + data['administrasi']['f1'] + `
//
<
/span
>
//
<
/h1
>
//
<
/div
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 30px;
"
>
//
<
th
>
//
<
span
>
// ` + data['administrasi']['f2'] + `
//
<
/span
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
th
>
//
<
span
>
// ` + data['administrasi']['f3'] + `, ` + data['administrasi']['f14'] + `, ` + data['administrasi']['f13'] + `, ` + data['administrasi']['f12'] + `
//
<
/span
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
th
>
//
<
p
>
//
<
span
>
Luas
:
` + data['administrasi']['f5'] + `
<
/span
>
//
<
/p
>
//
<
p
>
//
<
span
>
Pimpinan
:
` + data['administrasi']['f10'] + `
<
/span
>
//
<
/p
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
/tbody
>
//
<
/table>`
;
// $("#isi_panel").html(content);
// panel_samp();
// }
// })
// } else if (Cesium.defined(selectedEntity.namespbu)) {
// var id_3dadm = selectedEntity.namespbu
// $.ajax({
// url: "{% url 'api:editpom' %}",
// data: {
// 'id_point': id_3dadm
// },
// dataType: 'json',
// success: function(data) {
// if (data['administrasi']['f8'] == 'None') {
// var path_img = "static/img/image_null.jpg"
// } else {
// var path_img = `"static/img/image/` + data['administrasi']['f8'] + `"`
// }
// content = `
<
table
class
=
"
table table-hover tasks-list
"
>
//
<
thead
style
=
"
text-align: center;
"
>
//
<
tr
>
//
<
th
style
=
"
padding: 0 0 0 0px;
"
>
//
<
img
src
=
` + path_img + `
alt
=
"
Image
"
style
=
"
width: 100%;max-height: 237px;height:237
"
>
//
<
/th
>
//
<
/tr
>
//
<
/thead
>
//
<
tbody
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 100px;
"
>
//
<
th
>
//
<
div
>
//
<
h1
style
=
"
font-family: Google Sans,Roboto,Arial,sans-serif;
// letter-spacing: 0;
// font-weight: 400;
"
>
//
<
span
style
=
"
font-size: x-large;
"
>
// ` + data['administrasi']['f1'] + `
//
<
/span
>
//
<
/h1
>
//
<
/div
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 30px;
"
>
//
<
th
>
//
<
span
>
// ` + data['administrasi']['f2'] + `
//
<
/span
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
th
>
//
<
span
>
// ` + data['administrasi']['f3'] + `, ` + data['administrasi']['f14'] + `, ` + data['administrasi']['f13'] + `, ` + data['administrasi']['f12'] + `
//
<
/span
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
th
>
//
<
p
>
//
<
span
>
Luas
:
` + data['administrasi']['f5'] + `
<
/span
>
//
<
/p
>
//
<
p
>
//
<
span
>
Pimpinan
:
` + data['administrasi']['f10'] + `
<
/span
>
//
<
/p
>
//
<
/th
>
//
<
/tr
>
//
<
/div
>
//
<
/tbody
>
//
<
/table>`
;
// $("#isi_panel").html(content);
// panel_samp();
// }
// })
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namest
))
{
var
id_3dadm
=
selectedEntity
.
namest
...
...
@@ -7390,12 +7470,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -7518,12 +7598,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -7557,7 +7637,7 @@
$
(
"
.btn_action
"
).
html
(
`
`
)
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -7646,12 +7726,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f9
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f8
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f7
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f9
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f8
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f7
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -7774,12 +7854,12 @@
<div>
<span>
`
+
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
data
[
'
administrasi
'
][
'
f3
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f13
'
]
+
`, `
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`
</span>
</div>
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
...
...
@@ -7813,7 +7893,7 @@
$
(
"
.btn_action
"
).
html
(
`
`
)
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -8580,7 +8660,13 @@
<a href="#" id="btn_delete_bangunan" data-toggle="modal" data-target="#modal_bangunan_delete" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_bangunan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_bangunan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
$
(
"
#isi_panel
"
).
html
(
content
);
$
(
"
#modal_bangunan_edit
"
).
html
(
content_edit
);
...
...
@@ -9035,10 +9121,10 @@
};
polylyly
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_bang
)
// polylyly.enableEdit();
// polylyly.enableEdit();
var
hasil
=
(
JSON
.
stringify
(
polylyly
.
toGeoJSON
()))
// console.log(polylyly)
// console.log(hasil)
// console.log(polylyly)
// console.log(hasil)
// $("#coorbangbaru").val(hasil);
$
(
'
#save-perbaikan_bang
'
).
click
(
function
()
{
...
...
templates/includes/js-o.html
View file @
f7c61c39
...
...
@@ -1026,6 +1026,13 @@
">
<a href="#" class="btn" id="btn_edit_tuplah" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;"><i class="icon-pencil5"></i></a>
</div>`
)
if
(
list_perm
.
indexOf
(
'
delete_tuplah
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_tuplah
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
$
(
"
.nama_keterangan
"
).
html
(
feature
.
legend
.
f2
)
...
...
@@ -1196,7 +1203,7 @@
polygon_edit_tuplah
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_edit_tuplah
)
polygon_edit_tuplah
.
enableEdit
();
$
(
'
#btn_ceklwas
'
).
click
(
function
()
{
var
hasil
=
(
JSON
.
stringify
(
polygon_edit_tuplah
.
toGeoJSON
()))
var
seeArea
=
L
.
GeometryUtil
.
geodesicArea
(
polygon_edit_tuplah
.
getLatLngs
()[
0
]);
...
...
@@ -1951,6 +1958,13 @@
<a href="#" id="btn_hapus_jalan" class="btn" style="border-bottom-left-radius: 8px;border-top-right-radius: 8px;width: 100%;height: 100%;bottom: 0px;color: white;"><i class="icon-eraser2"></i></a>
</div>
`
)
if
(
list_perm
.
indexOf
(
'
delete_jalan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-delete-keterangan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
change_jalan
'
)
>=
0
===
false
)
{
$
(
"
.tombol-edit-keterangan
"
).
remove
();
}
if
(
feature
.
properties
.
f7
!=
null
)
{
...
...
@@ -2031,8 +2045,8 @@
</div>
`
)
content_his_jal
=
`
content_his_jal
=
`
<div class="modal-dialog" style="height: max-content;">
<div class="modal-content">
<div class="modal-header" style="height: 50px;background: #1E2233;border-top-left-radius: 10px;border-top-right-radius: 10px;">
...
...
@@ -2153,48 +2167,48 @@
</div>
</div>
`
;
//if (result.address.Address != '') {
// var nmjalan = result.address.Address
//} else {
// var nmjalan = feature.properties.f2
//};
//
//var history
//if (feature.properties.f7 != null) {
// var list_history = feature.properties.f7
//
// var list_history_panel = ``
// for (var i = 0; i
<
list_history
.
length
;
i
++
)
{
// var dt_history = list_history[i].split(",");
//
// var data_history = `
<
div
class
=
"
form-group
"
style
=
"
margin-bottom:0px;
"
>
//
<
div
class
=
"
row
"
>
//
<
label
class
=
"
col-md-6
"
>
` + dt_history[1] + `
<
/label
>
//
<
a
class
=
"
col-md-3
"
onclick
=
"
getjalanper(` + dt_history[0] + `)
"
><
i
>
View
Ruas
<
///i>
<
/a
>
//
<
a
class
=
"
col-md-3
"
onclick
=
"
getdetailper(` + dt_history[0] + `)
"
//data-toggle="modal" data-target="#modal_detail">
<
i
>
View
Detail
<
/i></
a
>
//
<
/div
>
//
<
/div>`
;
// list_history_panel += data_history
// };
//
// history = `
<
p
class
=
"
text-center
"
>
// History Perbaikan
//
<
/p
>
//
<
br
>
// ` + list_history_panel + `
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Tambah
History
Perbaikan
<
/i></
//a>
//
<
/p>`
;
//} else {
// history = `
<
p
class
=
"
text-center
"
>
// History Perbaikan
//
<
/p
>
//
<
br
>
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Input
History
Perbaikan
<
/i></
a
>
//
<
/p>`
;
//}
//
//if (result.address.Address != '') {
// var nmjalan = result.address.Address
//} else {
// var nmjalan = feature.properties.f2
//};
//
//var history
//if (feature.properties.f7 != null) {
// var list_history = feature.properties.f7
//
// var list_history_panel = ``
// for (var i = 0; i
<
list_history
.
length
;
i
++
)
{
// var dt_history = list_history[i].split(",");
//
// var data_history = `
<
div
class
=
"
form-group
"
style
=
"
margin-bottom:0px;
"
>
//
<
div
class
=
"
row
"
>
//
<
label
class
=
"
col-md-6
"
>
` + dt_history[1] + `
<
/label
>
//
<
a
class
=
"
col-md-3
"
onclick
=
"
getjalanper(` + dt_history[0] + `)
"
><
i
>
View
Ruas
<
///i>
<
/a
>
//
<
a
class
=
"
col-md-3
"
onclick
=
"
getdetailper(` + dt_history[0] + `)
"
//data-toggle="modal" data-target="#modal_detail">
<
i
>
View
Detail
<
/i></
a
>
//
<
/div
>
//
<
/div>`
;
// list_history_panel += data_history
// };
//
// history = `
<
p
class
=
"
text-center
"
>
// History Perbaikan
//
<
/p
>
//
<
br
>
// ` + list_history_panel + `
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Tambah
History
Perbaikan
<
/i></
//a>
//
<
/p>`
;
//} else {
// history = `
<
p
class
=
"
text-center
"
>
// History Perbaikan
//
<
/p
>
//
<
br
>
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Input
History
Perbaikan
<
/i></
a
>
//
<
/p>`
;
//}
//
$
(
'
#namajalanedit
'
).
val
(
feature
.
properties
.
f2
);
...
...
@@ -2802,7 +2816,7 @@
// $("#input_perbaikan").css("display", "none");
// $("#edit_kelurahan").css("display", "none");
// }
$
(
document
).
on
(
"
click
"
,
"
#btn_perbaikan_jalan
"
,
function
()
{
...
...
@@ -2912,7 +2926,7 @@
}).
addTo
(
map_input
);
geo_jalan_input
.
clearLayers
(
geo_jalan_input
)
// $("#input_perbaikan").css("display", "block");
// $("#input_perbaikan").css("display", "block");
var
id_jalan
=
$
(
"
#idjalan
"
).
val
();
editableLayers
.
clearLayers
();
...
...
@@ -2928,22 +2942,22 @@
},
dataType
:
'
json
'
,
success
:
function
(
data
)
{
if
((
data
[
0
]
==
null
)
||
(
data
[
0
]
==
""
))
{
if
((
data
[
0
]
==
null
)
||
(
data
[
0
]
==
""
))
{
$
(
"
#namajalan2
"
).
val
();
}
else
{
$
(
"
#namajalan2
"
).
val
(
data
[
0
]);
}
$
(
"
#typejalan
"
).
val
(
data
[
1
]);
$
(
"
#panjangjalanall
"
).
val
(
data
[
2
]);
$
(
"
#id_jalan_perbaikan
"
).
val
(
data
[
4
]);
$
(
"
#type_id
"
).
val
(
data
[
5
])
var
latlngs
=
data
[
3
];
map_input
.
setView
([
latlngs
[
'
geometry
'
][
'
coordinates
'
][
0
][
0
][
1
],
latlngs
[
'
geometry
'
][
'
coordinates
'
][
0
][
0
][
0
]],
17
)
geo_jalan_input
.
addData
(
data
[
3
]);
$
(
"
#map-insert > div.leaflet-control-container > div.leaflet-top.leaflet-left > div:nth-child(1) > div > div > a.leaflet-draw-draw-marker
"
).
css
(
"
display
"
,
"
none
"
)
...
...
@@ -2958,7 +2972,7 @@
});
$
(
document
).
on
(
"
click
"
,
"
#save-perbaikan
"
,
function
()
{
// $("#save-perbaikan").click(function() {
// $("#save-perbaikan").click(function() {
// var hasil = JSON.stringify(editableLayers.toGeoJSON());
// var hasil = $()
...
...
@@ -3016,8 +3030,8 @@
'
lbr_perbaikan
'
:
lbr_perbaikan
},
{
'
jenis_perbaikan
'
:
jenis_perbaikan
// }, {
// 'luas': luas
// }, {
// 'luas': luas
},
{
'
kelurahan
'
:
kelurahan
},
{
...
...
@@ -4736,7 +4750,7 @@
})
$
(
"
#modal__create
"
).
modal
(
"
toggle
"
);
$
(
"
#modal_option_create
"
).
modal
(
"
toggle
"
);
// $("#modal_option_create").css("display", "none");
}
else
{
swal
({
...
...
templates/includes/permission.html
0 → 100644
View file @
f7c61c39
<script>
var
list_perm
=
[]
</script>
{% for p in perm_group %}
<script>
var
perm
=
"
{{p}}
"
list_perm
.
push
(
perm
)
</script>
{% endfor %}
<script>
if
(
list_perm
.
indexOf
(
'
add_roads
'
)
>=
0
===
false
)
{
$
(
"
.btn_create_jalan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
add_bangunan
'
)
>=
0
===
false
)
{
$
(
"
.btn_create_bangunan
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
add_kantor_administrasi
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_layanan_kesehatan
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_puskesmas
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_rumah_sakit
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_sarana_ibadah
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_sarana_pendidikan
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_stasiun
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_terminal_bus
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_cagar_budaya
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_gardu_listrik
'
)
>=
0
===
false
)
{
$
(
"
.btn_create_point
"
).
remove
();
}
if
(
list_perm
.
indexOf
(
'
add_roads
'
)
>=
0
===
false
&&
list_perm
.
indexOf
(
'
add_bangunan
'
)
>=
0
===
false
&&
list_perm
.
indexOf
(
'
add_kantor_administrasi
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_layanan_kesehatan
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_puskesmas
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_rumah_sakit
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_sarana_ibadah
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_sarana_pendidikan
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_stasiun
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_terminal_bus
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_cagar_budaya
'
)
>=
0
===
false
||
list_perm
.
indexOf
(
'
add_gardu_listrik
'
)
>=
0
===
false
)
{
$
(
"
#modal_option_create
"
).
remove
();
}
</script>
\ No newline at end of file
templates/layout/layout.html
View file @
f7c61c39
...
...
@@ -49,23 +49,20 @@
font-family
:
'gilroyultralight'
;
src
:
url('/static/css/Gilroy-UltraLight.woff')
format
(
'woff'
);
}
/* start hide fitur modal */
.tab_kdb_klb
{
display
:
none
;
}
.btn_create_lahan
{
.btn_create_lahan
{
display
:
none
;
}
.btn_cek_KDBKLB
{
.btn_cek_KDBKLB
{
display
:
none
;
}
/* end hide fitur modal */
</style>
{% include 'includes/css-o.html' %} {% include 'includes/css-m.html' %}
...
...
@@ -142,7 +139,7 @@
<div
class=
"content"
>
<div
id=
"map"
>
<div
class=
"help_bangunan"
style=
"position: absolute;z-index: 999;top: 0px;right: 60px;"
></div>
<div
class=
"row"
style=
"margin-top: 20px;"
>
<div
class=
"col-sm-4 head"
>
...
...
@@ -187,8 +184,8 @@
</div>
</div>
<!-- </div> -->
<!-- </div> -->
<!-- <div class="row" id="searchbar" style="margin-top: 2%;">
<div class="col-sm-4 head">
...
...
@@ -248,16 +245,16 @@
</button>
</span>
</div> -->
<!-- </div> -->
<!-- </div> -->
<!-- <div class="col-md-6 col-md-offset-3 modal-login input-group content-group foot centered" style="z-index: 999;">
<div class="row row-full-height" style="width: 100%;margin-left: 10px;"> -->
{% if user.is_authenticated %} {% else %}
<div
class=
"col-md-6 col-md-offset-3 modal-login input-group content-group foot centered"
style=
"height: fit-content;"
>
<div
class=
"row row-full-height"
>
<div
class=
"col-md-1 col-sm-12"
>
<img
src=
"/static/img/logo-ok.png"
alt=
""
class=
"img-centered"
style=
"max-height: 28px;max-width: 21.999998092651367px;/* left: 27px; *//* top: 14px; */border-radius: 0px;"
>
...
...
@@ -273,10 +270,10 @@
<a
href=
"{% url 'login' %}"
class=
"btn btn-primary vertical-centered"
id=
"btn-signin"
>
SIGN IN
</a>
</div>
</div>
</div>
</div>
{% endif %}
</div>
<!-- <div class="col-md-6 col-md-offset-3 modal-login input-group content-group foot centered" style="z-index: 999;">
<!-- <div class="col-md-6 col-md-offset-3 modal-login input-group content-group foot centered" style="z-index: 999;">
<div class="row row-full-height" style="width: 100%;margin-left: 10px;">
<div class="col-md-1">
<img src="/static/img/logo-ok.png" alt="" class="img-centered" style="max-height: 28px;max-width: 21.999998092651367px;/* left: 27px; *//* top: 14px; */border-radius: 0px;">
...
...
@@ -295,7 +292,7 @@
</div> -->
{% if user.is_authenticated %}
<div
class=
"user-p-nav"
style=
"height: 10%;width: 10%;position: absolute;top: 30px;right: 65px;z-index: 999;"
>
<!-- <a href="#">
...
...
@@ -440,9 +437,9 @@
<!-- /page content -->
</div>
{% include 'includes/modal.html' %}
<div
class=
"modal fade"
id=
"modal-kelurahan"
tabindex=
"-1"
role=
"dialog"
>
...
...
@@ -873,8 +870,7 @@
</body>
</html>
{% include 'includes/js-o.html' %} {% include 'includes/js-m.html' %}
{% include 'includes/permission.html' %} {% include 'includes/js-o.html' %} {% include 'includes/js-m.html' %}
<script
type=
"text/javascript"
src=
"{% static 'js/action.js' %}"
></script>
<script>
// start disabled inspect
...
...
@@ -903,7 +899,7 @@
// end disabled inspect
var
dar
=
null
;
$
(
'
#search_spes li a
'
).
on
(
'
click
'
,
function
()
{
...
...
@@ -916,7 +912,7 @@
$
(
"
#pilihcari
"
).
html
(
'
<i class="icon-home4 text-muted text-size-base" style="color: #5A9AFB;"></i>
'
)
}
else
if
(
dar
==
'
Jalan
'
)
{
$
(
"
#pilihcari
"
).
html
(
'
<i class="icon-git-branch text-muted text-size-base" style="color: #5A9AFB;"></i>
'
)
}
else
if
(
dar
==
'
Reset
'
)
{
}
else
if
(
dar
==
'
Reset
'
)
{
$
(
"
#pilihcari
"
).
html
(
''
)
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment