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
4da68b7f
Commit
4da68b7f
authored
Dec 14, 2021
by
Muhamad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output permission
parent
4d5698da
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
346 additions
and
218 deletions
+346
-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
+27
-0
templates/layout/layout.html
templates/layout/layout.html
+19
-23
No files found.
Application/views.py
View file @
4da68b7f
...
@@ -509,11 +509,15 @@ class Dashboard(generic.TemplateView):
...
@@ -509,11 +509,15 @@ class Dashboard(generic.TemplateView):
'kecamatan'
:
j
[
8
],
'kecamatan'
:
j
[
8
],
}
}
res_all
.
append
(
data_all
)
res_all
.
append
(
data_all
)
perm_group
=
[]
if
request
.
user
.
is_authenticated
:
if
request
.
user
.
is_authenticated
:
current_user
=
request
.
user
current_user
=
request
.
user
thisUser
=
current_user
.
id
thisUser
=
current_user
.
id
for
xx
in
request
.
user
.
get_group_permissions
():
perm_group
.
append
(
xx
.
split
(
"."
)[
1
])
if
thisUser
==
None
:
if
thisUser
==
None
:
user_data
=
{
"filepath"
:
'placeholder.jpg'
}
user_data
=
{
"filepath"
:
'placeholder.jpg'
}
else
:
else
:
...
@@ -582,7 +586,7 @@ class Dashboard(generic.TemplateView):
...
@@ -582,7 +586,7 @@ class Dashboard(generic.TemplateView):
auth_group ag
auth_group ag
WHERE
WHERE
au.id = aug.user_id AND
au.id = aug.user_id AND
ag.id = aug.group_id
AND
ag.id = aug.group_id
ORDER BY
ORDER BY
au.username ASC"""
au.username ASC"""
userlist_
.
execute
(
sql
)
userlist_
.
execute
(
sql
)
...
@@ -626,6 +630,7 @@ class Dashboard(generic.TemplateView):
...
@@ -626,6 +630,7 @@ class Dashboard(generic.TemplateView):
'global'
:
all
[
0
],
'global'
:
all
[
0
],
'res_all'
:
res_all
,
'res_all'
:
res_all
,
'thisUser'
:
user_data
,
'thisUser'
:
user_data
,
'perm_group'
:
perm_group
# 'user_res':user_res
# 'user_res':user_res
}
}
return
render
(
request
,
self
.
template_name
,
context
)
return
render
(
request
,
self
.
template_name
,
context
)
...
...
templates/includes/js-m.html
View file @
4da68b7f
...
@@ -636,6 +636,13 @@
...
@@ -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>
<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>
</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
=
`
content_delete_adm
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
...
@@ -827,12 +834,12 @@
...
@@ -827,12 +834,12 @@
}
else
{
}
else
{
markeradm
.
remove
()
markeradm
.
remove
()
geo_po_adm
.
remove
()
geo_po_adm
.
remove
()
// valket()
// valket()
}
}
}
}
$
(
document
).
on
(
"
click
"
,
"
#btn_edit_adm
"
,
function
()
{
$
(
document
).
on
(
"
click
"
,
"
#btn_edit_adm
"
,
function
()
{
var
map_edit
=
L
.
map
(
'
map-for-edit
'
,
{
var
map_edit
=
L
.
map
(
'
map-for-edit
'
,
{
editable
:
true
,
editable
:
true
,
zoomControl
:
false
,
zoomControl
:
false
,
...
@@ -904,9 +911,9 @@
...
@@ -904,9 +911,9 @@
},
function
()
{
},
function
()
{
$
(
"
#modal_adm
"
).
modal
(
'
hide
'
);
$
(
"
#modal_adm
"
).
modal
(
'
hide
'
);
$
(
"
#modal_detail_non_kelurahan
"
).
modal
(
'
hide
'
)
$
(
"
#modal_detail_non_kelurahan
"
).
modal
(
'
hide
'
)
// markeradm.remove()
// markeradm.remove()
// geo_po_adm.remove()
// geo_po_adm.remove()
// valket()
// valket()
location
.
reload
();
location
.
reload
();
// $.ajax({
// $.ajax({
// url: "{% url 'api:reloadpoint' %}",
// url: "{% url 'api:reloadpoint' %}",
...
@@ -1146,6 +1153,14 @@
...
@@ -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>
<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>
</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
=
`
content_edit_lk
=
`
...
@@ -1338,7 +1353,7 @@
...
@@ -1338,7 +1353,7 @@
}
else
{
}
else
{
markerkes
.
remove
()
markerkes
.
remove
()
geo_po_kes
.
remove
()
geo_po_kes
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -1564,6 +1579,13 @@
...
@@ -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>
<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>
</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
=
`
content_edit_puskes
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
<div class="modal-content">
<div class="modal-content">
...
@@ -1753,7 +1775,7 @@
...
@@ -1753,7 +1775,7 @@
}
else
{
}
else
{
markerpuskes
.
remove
()
markerpuskes
.
remove
()
geo_po_puskes
.
remove
()
geo_po_puskes
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -1978,6 +2000,13 @@
...
@@ -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>
<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>
</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
=
`
content_edit_rs
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
...
@@ -2153,7 +2182,7 @@
...
@@ -2153,7 +2182,7 @@
geo_po_rumah_sakit
.
addTo
(
map
)
geo_po_rumah_sakit
.
addTo
(
map
)
}
else
{
}
else
{
geo_po_rumah_sakit
.
remove
()
geo_po_rumah_sakit
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -2600,6 +2629,13 @@
...
@@ -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>
<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>
</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
=
`
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
...
@@ -2676,7 +2712,7 @@
...
@@ -2676,7 +2712,7 @@
}
else
{
}
else
{
markeribdh
.
remove
()
markeribdh
.
remove
()
geo_po_sarana_ibadah
.
remove
()
geo_po_sarana_ibadah
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -3103,6 +3139,13 @@
...
@@ -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>
<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>
</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
=
`
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
<div class="modal-content">
<div class="modal-content">
...
@@ -3179,7 +3222,7 @@
...
@@ -3179,7 +3222,7 @@
}
else
{
}
else
{
markerpend
.
remove
()
markerpend
.
remove
()
geo_po_sarana_pendidikan
.
remove
()
geo_po_sarana_pendidikan
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -3341,14 +3384,14 @@
...
@@ -3341,14 +3384,14 @@
// var raja = feature.administrasi.f10;
// var raja = feature.administrasi.f10;
// }
// }
// content_edit_spbu = `
// content_edit_spbu = `
//
<
div
class
=
"
modal-dialog md
"
>
//
<
div
class
=
"
modal-dialog md
"
>
//
<
div
class
=
"
modal-content
"
>
//
<
div
class
=
"
modal-content
"
>
//
<
div
class
=
"
modal-header bg-info
"
>
//
<
div
class
=
"
modal-header bg-info
"
>
//
<
button
type
=
"
button
"
class
=
"
close
"
data
-
dismiss
=
"
modal
"
onclick
=
"
destroyfade()
"
>&
times
;
<
/button
>
//
<
button
type
=
"
button
"
class
=
"
close
"
data
-
dismiss
=
"
modal
"
onclick
=
"
destroyfade()
"
>&
times
;
<
/button
>
//
<
h6
class
=
"
modal-title
"
>
Edit
Point
<
/h6
>
//
<
h6
class
=
"
modal-title
"
>
Edit
Point
<
/h6
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
tab-pane has-padding
"
id
=
"
panel-tab2
"
>
//
<
div
class
=
"
tab-pane has-padding
"
id
=
"
panel-tab2
"
>
//
<
div
class
=
"
tab-pane
"
id
=
"
bottom-justified-data
"
>
//
<
div
class
=
"
tab-pane
"
id
=
"
bottom-justified-data
"
>
...
@@ -3359,7 +3402,7 @@
...
@@ -3359,7 +3402,7 @@
//
<
/ul
>
//
<
/ul
>
//
<
div
class
=
"
tab-content
"
>
//
<
div
class
=
"
tab-content
"
>
//
<
div
class
=
"
tab-pane active
"
id
=
"
right-tab2-feas-upli
"
>
//
<
div
class
=
"
tab-pane active
"
id
=
"
right-tab2-feas-upli
"
>
//
<
div
class
=
"
form-group
"
>
//
<
div
class
=
"
form-group
"
>
//
<
div
id
=
"
map-for-edit
"
style
=
"
height: 300px;position: relative;margin: 10px;
"
><
/div
>
//
<
div
id
=
"
map-for-edit
"
style
=
"
height: 300px;position: relative;margin: 10px;
"
><
/div
>
...
@@ -3388,7 +3431,7 @@
...
@@ -3388,7 +3431,7 @@
//
<
div
class
=
"
col-lg-9
"
>
//
<
div
class
=
"
col-lg-9
"
>
//
<
input
id
=
"
namobj
"
type
=
"
text
"
class
=
"
form-control
"
value
=
"
` + feature.administrasi.f1 + `
"
required
>
//
<
input
id
=
"
namobj
"
type
=
"
text
"
class
=
"
form-control
"
value
=
"
` + feature.administrasi.f1 + `
"
required
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
...
@@ -3402,7 +3445,7 @@
...
@@ -3402,7 +3445,7 @@
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
form-group
"
>
//
<
div
class
=
"
form-group
"
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Alamat
<
/label
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Alamat
<
/label
>
...
@@ -3414,7 +3457,7 @@
...
@@ -3414,7 +3457,7 @@
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
form-group
"
>
//
<
div
class
=
"
form-group
"
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Luas
Tanah
<
/label
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Luas
Tanah
<
/label
>
//
<
div
class
=
"
col-lg-6
"
>
//
<
div
class
=
"
col-lg-6
"
>
...
@@ -3429,7 +3472,7 @@
...
@@ -3429,7 +3472,7 @@
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
row
"
style
=
"
margin-top: 15px;
"
>
//
<
div
class
=
"
form-group
"
>
//
<
div
class
=
"
form-group
"
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Pemilik
<
/label
>
//
<
label
class
=
"
col-lg-3 control-label lbl-top
"
style
=
"
margin-top: 15px;
"
>
Pemilik
<
/label
>
...
@@ -3438,7 +3481,7 @@
...
@@ -3438,7 +3481,7 @@
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
...
@@ -3449,7 +3492,7 @@
...
@@ -3449,7 +3492,7 @@
//
<
hr
>
//
<
hr
>
//
<
div
class
=
"
modal-footer
"
>
//
<
div
class
=
"
modal-footer
"
>
//
<
button
type
=
"
button
"
class
=
"
btn btn-info
"
id
=
"
saveeditspbu
"
>
Save
changes
<
/button
>
//
<
button
type
=
"
button
"
class
=
"
btn btn-info
"
id
=
"
saveeditspbu
"
>
Save
changes
<
/button
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
//
<
/div
>
...
@@ -3889,7 +3932,13 @@
...
@@ -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>
<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>
</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
=
`
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
<div class="modal-content">
<div class="modal-content">
...
@@ -3949,7 +3998,7 @@
...
@@ -3949,7 +3998,7 @@
geo_po_stasiun
.
addTo
(
map
)
geo_po_stasiun
.
addTo
(
map
)
}
else
{
}
else
{
geo_po_stasiun
.
remove
()
geo_po_stasiun
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -4277,6 +4326,14 @@
...
@@ -4277,6 +4326,14 @@
</div>
</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
=
`
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
<div class="modal-content">
<div class="modal-content">
...
@@ -4337,7 +4394,7 @@
...
@@ -4337,7 +4394,7 @@
geo_po_terminal
.
addTo
(
map
)
geo_po_terminal
.
addTo
(
map
)
}
else
{
}
else
{
geo_po_terminal
.
remove
()
geo_po_terminal
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -4665,6 +4722,14 @@
...
@@ -4665,6 +4722,14 @@
</div>
</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
=
`
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
<div class="modal-content">
<div class="modal-content">
...
@@ -4726,7 +4791,7 @@
...
@@ -4726,7 +4791,7 @@
geo_po_cagar_budaya
.
addTo
(
map
)
geo_po_cagar_budaya
.
addTo
(
map
)
}
else
{
}
else
{
geo_po_cagar_budaya
.
remove
()
geo_po_cagar_budaya
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -5064,6 +5129,13 @@
...
@@ -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>
<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>
</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
=
`
content_delete_point
=
`
<div class="modal-dialog md">
<div class="modal-dialog md">
...
@@ -5125,7 +5197,7 @@
...
@@ -5125,7 +5197,7 @@
geo_po_gardu_listrik
.
addTo
(
map
)
geo_po_gardu_listrik
.
addTo
(
map
)
}
else
{
}
else
{
geo_po_gardu_listrik
.
remove
()
geo_po_gardu_listrik
.
remove
()
// valket()
// valket()
}
}
}
}
...
@@ -5287,7 +5359,7 @@
...
@@ -5287,7 +5359,7 @@
// cb100()
// cb100()
// gl100()
// gl100()
// }
// }
// gas_poin()
// gas_poin()
function
showpanel
(
content
)
{
function
showpanel
(
content
)
{
...
@@ -5415,15 +5487,15 @@
...
@@ -5415,15 +5487,15 @@
// var map_cesium = new Cesium.Viewer('map-cesium');
// var map_cesium = new Cesium.Viewer('map-cesium');
var
map_cesium
=
new
Cesium
.
Viewer
(
'
map-cesium
'
,
{
var
map_cesium
=
new
Cesium
.
Viewer
(
'
map-cesium
'
,
{
imageryProvider
:
new
Cesium
.
BingMapsImageryProvider
({
imageryProvider
:
new
Cesium
.
BingMapsImageryProvider
({
url
:
'
//dev.virtualearth.net
'
,
url
:
'
//dev.virtualearth.net
'
,
key
:
'
Anj9XBZaRShAMdbXJlZ16iqEVpjikY1eY_dzqGl451WYkSKV3l_FJaFgMbhwdbLz
'
,
key
:
'
Anj9XBZaRShAMdbXJlZ16iqEVpjikY1eY_dzqGl451WYkSKV3l_FJaFgMbhwdbLz
'
,
mapStyle
:
Cesium
.
BingMapsStyle
.
AERIAL
mapStyle
:
Cesium
.
BingMapsStyle
.
AERIAL
//url : '//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
//url : '//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
//url : Cesium.buildModuleUrl('/static/Cesium-185/Build/Cesium/Assets/Textures/NaturalEarthII')
//url : Cesium.buildModuleUrl('/static/Cesium-185/Build/Cesium/Assets/Textures/NaturalEarthII')
}),
}),
baseLayerPicker
:
false
,
baseLayerPicker
:
false
,
geocoder
:
false
geocoder
:
false
});
});
//function mapsganti() {
//function mapsganti() {
...
@@ -5487,7 +5559,7 @@
...
@@ -5487,7 +5559,7 @@
$
(
"
.rar
"
).
css
(
'
display
'
,
'
none
'
);
$
(
"
.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;">`
)
$
(
"
#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
"
).
html
(
`2D`
)
// $(".tooltip-3d").css(`background-color`,'white!important');
// $(".tooltip-3d").css(`background-color`,'white!important');
var
nama_desa
=
$
(
"
#search_desa
"
).
val
();
var
nama_desa
=
$
(
"
#search_desa
"
).
val
();
$
.
ajax
({
$
.
ajax
({
...
@@ -6441,6 +6513,14 @@
...
@@ -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>
<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>
</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">
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<thead style="text-align: center;">
<tr>
<tr>
...
@@ -6528,7 +6608,7 @@
...
@@ -6528,7 +6608,7 @@
},
},
dataType
:
'
json
'
,
dataType
:
'
json
'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
[
'
administrasi
'
][
'
f8
'
]
==
'
None
'
)
{
if
(
data
[
'
administrasi
'
][
'
f8
'
]
==
'
None
'
)
{
var
path_img
=
"
static/img/image_null.jpg
"
var
path_img
=
"
static/img/image_null.jpg
"
}
else
{
}
else
{
...
@@ -6547,12 +6627,12 @@
...
@@ -6547,12 +6627,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -6586,7 +6666,7 @@
...
@@ -6586,7 +6666,7 @@
$
(
"
.btn_action
"
).
html
(
`
$
(
"
.btn_action
"
).
html
(
`
`
)
`
)
content
=
`<table class="table table-hover tasks-list">
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<thead style="text-align: center;">
<tr>
<tr>
...
@@ -6675,12 +6755,12 @@
...
@@ -6675,12 +6755,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -6803,12 +6883,12 @@
...
@@ -6803,12 +6883,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -6931,12 +7011,12 @@
...
@@ -6931,12 +7011,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -6970,7 +7050,7 @@
...
@@ -6970,7 +7050,7 @@
$
(
"
.btn_action
"
).
html
(
`
$
(
"
.btn_action
"
).
html
(
`
`
)
`
)
content
=
`<table class="table table-hover tasks-list">
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<thead style="text-align: center;">
<tr>
<tr>
...
@@ -7059,12 +7139,12 @@
...
@@ -7059,12 +7139,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -7098,7 +7178,7 @@
...
@@ -7098,7 +7178,7 @@
$
(
"
.btn_action
"
).
html
(
`
$
(
"
.btn_action
"
).
html
(
`
`
)
`
)
content
=
`<table class="table table-hover tasks-list">
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<thead style="text-align: center;">
<tr>
<tr>
...
@@ -7187,12 +7267,12 @@
...
@@ -7187,12 +7267,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -7226,7 +7306,7 @@
...
@@ -7226,7 +7306,7 @@
$
(
"
.btn_action
"
).
html
(
`
$
(
"
.btn_action
"
).
html
(
`
`
)
`
)
content
=
`<table class="table table-hover tasks-list">
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<thead style="text-align: center;">
<tr>
<tr>
...
@@ -7288,80 +7368,80 @@
...
@@ -7288,80 +7368,80 @@
}
}
})
})
// } else if (Cesium.defined(selectedEntity.namespbu)) {
// } else if (Cesium.defined(selectedEntity.namespbu)) {
// var id_3dadm = selectedEntity.namespbu
// var id_3dadm = selectedEntity.namespbu
// $.ajax({
// $.ajax({
// url: "{% url 'api:editpom' %}",
// url: "{% url 'api:editpom' %}",
// data: {
// data: {
// 'id_point': id_3dadm
// 'id_point': id_3dadm
// },
// },
// dataType: 'json',
// dataType: 'json',
// success: function(data) {
// success: function(data) {
// if (data['administrasi']['f8'] == 'None') {
// if (data['administrasi']['f8'] == 'None') {
// var path_img = "static/img/image_null.jpg"
// var path_img = "static/img/image_null.jpg"
// } else {
// } else {
// var path_img = `"static/img/image/` + data['administrasi']['f8'] + `"`
// var path_img = `"static/img/image/` + data['administrasi']['f8'] + `"`
// }
// }
// content = `
<
table
class
=
"
table table-hover tasks-list
"
>
// content = `
<
table
class
=
"
table table-hover tasks-list
"
>
//
<
thead
style
=
"
text-align: center;
"
>
//
<
thead
style
=
"
text-align: center;
"
>
//
<
tr
>
//
<
tr
>
//
<
th
style
=
"
padding: 0 0 0 0px;
"
>
//
<
th
style
=
"
padding: 0 0 0 0px;
"
>
//
<
img
src
=
` + path_img + `
alt
=
"
Image
"
style
=
"
width: 100%;max-height: 237px;height:237
"
>
//
<
img
src
=
` + path_img + `
alt
=
"
Image
"
style
=
"
width: 100%;max-height: 237px;height:237
"
>
//
<
/th
>
//
<
/th
>
//
<
/tr
>
//
<
/tr
>
//
<
/thead
>
//
<
/thead
>
//
<
tbody
>
//
<
tbody
>
//
<
div
class
=
"
container
"
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 100px;
"
>
//
<
tr
style
=
"
height: 100px;
"
>
//
<
th
>
//
<
th
>
//
<
div
>
//
<
div
>
//
<
h1
style
=
"
font-family: Google Sans,Roboto,Arial,sans-serif;
//
<
h1
style
=
"
font-family: Google Sans,Roboto,Arial,sans-serif;
// letter-spacing: 0;
// letter-spacing: 0;
// font-weight: 400;
"
>
// font-weight: 400;
"
>
//
<
span
style
=
"
font-size: x-large;
"
>
//
<
span
style
=
"
font-size: x-large;
"
>
// ` + data['administrasi']['f1'] + `
// ` + data['administrasi']['f1'] + `
//
<
/span
>
//
<
/span
>
//
<
/h1
>
//
<
/h1
>
//
<
/div
>
//
<
/div
>
//
<
/th
>
//
<
/th
>
//
<
/tr
>
//
<
/tr
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 30px;
"
>
//
<
tr
style
=
"
height: 30px;
"
>
//
<
th
>
//
<
th
>
//
<
span
>
//
<
span
>
// ` + data['administrasi']['f2'] + `
// ` + data['administrasi']['f2'] + `
//
<
/span
>
//
<
/span
>
//
<
/th
>
//
<
/th
>
//
<
/tr
>
//
<
/tr
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
th
>
//
<
th
>
//
<
span
>
//
<
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
>
//
<
/span
>
//
<
/th
>
//
<
/th
>
//
<
/tr
>
//
<
/tr
>
//
<
/div
>
//
<
/div
>
//
<
div
class
=
"
container
"
>
//
<
div
class
=
"
container
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
tr
style
=
"
height: 40px;
"
>
//
<
th
>
//
<
th
>
//
<
p
>
//
<
p
>
//
<
span
>
Luas
:
` + data['administrasi']['f5'] + `
<
/span
>
//
<
span
>
Luas
:
` + data['administrasi']['f5'] + `
<
/span
>
//
<
/p
>
//
<
/p
>
//
<
p
>
//
<
p
>
//
<
span
>
Pimpinan
:
` + data['administrasi']['f10'] + `
<
/span
>
//
<
span
>
Pimpinan
:
` + data['administrasi']['f10'] + `
<
/span
>
//
<
/p
>
//
<
/p
>
//
<
/th
>
//
<
/th
>
//
<
/tr
>
//
<
/tr
>
//
<
/div
>
//
<
/div
>
//
<
/tbody
>
//
<
/tbody
>
//
<
/table>`
;
//
<
/table>`
;
// $("#isi_panel").html(content);
// $("#isi_panel").html(content);
// panel_samp();
// panel_samp();
// }
// }
// })
// })
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namest
))
{
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namest
))
{
var
id_3dadm
=
selectedEntity
.
namest
var
id_3dadm
=
selectedEntity
.
namest
...
@@ -7390,12 +7470,12 @@
...
@@ -7390,12 +7470,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -7518,12 +7598,12 @@
...
@@ -7518,12 +7598,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -7557,7 +7637,7 @@
...
@@ -7557,7 +7637,7 @@
$
(
"
.btn_action
"
).
html
(
`
$
(
"
.btn_action
"
).
html
(
`
`
)
`
)
content
=
`<table class="table table-hover tasks-list">
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<thead style="text-align: center;">
<tr>
<tr>
...
@@ -7646,12 +7726,12 @@
...
@@ -7646,12 +7726,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -7774,12 +7854,12 @@
...
@@ -7774,12 +7854,12 @@
<div>
<div>
<span>
<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>
</span>
</div>
</div>
`
)
`
)
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
$
(
"
.isi_keterangan
"
).
html
(
`<input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div>
<div>
...
@@ -7813,7 +7893,7 @@
...
@@ -7813,7 +7893,7 @@
$
(
"
.btn_action
"
).
html
(
`
$
(
"
.btn_action
"
).
html
(
`
`
)
`
)
content
=
`<table class="table table-hover tasks-list">
content
=
`<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<thead style="text-align: center;">
<tr>
<tr>
...
@@ -8580,7 +8660,13 @@
...
@@ -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>
<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>
</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
);
$
(
"
#isi_panel
"
).
html
(
content
);
$
(
"
#modal_bangunan_edit
"
).
html
(
content_edit
);
$
(
"
#modal_bangunan_edit
"
).
html
(
content_edit
);
...
@@ -9035,10 +9121,10 @@
...
@@ -9035,10 +9121,10 @@
};
};
polylyly
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_bang
)
polylyly
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_bang
)
// polylyly.enableEdit();
// polylyly.enableEdit();
var
hasil
=
(
JSON
.
stringify
(
polylyly
.
toGeoJSON
()))
var
hasil
=
(
JSON
.
stringify
(
polylyly
.
toGeoJSON
()))
// console.log(polylyly)
// console.log(polylyly)
// console.log(hasil)
// console.log(hasil)
// $("#coorbangbaru").val(hasil);
// $("#coorbangbaru").val(hasil);
$
(
'
#save-perbaikan_bang
'
).
click
(
function
()
{
$
(
'
#save-perbaikan_bang
'
).
click
(
function
()
{
...
...
templates/includes/js-o.html
View file @
4da68b7f
...
@@ -1026,6 +1026,13 @@
...
@@ -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>
<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>`
)
</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
)
$
(
"
.nama_keterangan
"
).
html
(
feature
.
legend
.
f2
)
...
@@ -1196,7 +1203,7 @@
...
@@ -1196,7 +1203,7 @@
polygon_edit_tuplah
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_edit_tuplah
)
polygon_edit_tuplah
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_edit_tuplah
)
polygon_edit_tuplah
.
enableEdit
();
polygon_edit_tuplah
.
enableEdit
();
$
(
'
#btn_ceklwas
'
).
click
(
function
()
{
$
(
'
#btn_ceklwas
'
).
click
(
function
()
{
var
hasil
=
(
JSON
.
stringify
(
polygon_edit_tuplah
.
toGeoJSON
()))
var
hasil
=
(
JSON
.
stringify
(
polygon_edit_tuplah
.
toGeoJSON
()))
var
seeArea
=
L
.
GeometryUtil
.
geodesicArea
(
polygon_edit_tuplah
.
getLatLngs
()[
0
]);
var
seeArea
=
L
.
GeometryUtil
.
geodesicArea
(
polygon_edit_tuplah
.
getLatLngs
()[
0
]);
...
@@ -1951,6 +1958,13 @@
...
@@ -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>
<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>
</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
)
{
if
(
feature
.
properties
.
f7
!=
null
)
{
...
@@ -2031,8 +2045,8 @@
...
@@ -2031,8 +2045,8 @@
</div>
</div>
`
)
`
)
content_his_jal
=
`
content_his_jal
=
`
<div class="modal-dialog" style="height: max-content;">
<div class="modal-dialog" style="height: max-content;">
<div class="modal-content">
<div class="modal-content">
<div class="modal-header" style="height: 50px;background: #1E2233;border-top-left-radius: 10px;border-top-right-radius: 10px;">
<div class="modal-header" style="height: 50px;background: #1E2233;border-top-left-radius: 10px;border-top-right-radius: 10px;">
...
@@ -2153,48 +2167,48 @@
...
@@ -2153,48 +2167,48 @@
</div>
</div>
</div>
</div>
`
;
`
;
//if (result.address.Address != '') {
//if (result.address.Address != '') {
// var nmjalan = result.address.Address
// var nmjalan = result.address.Address
//} else {
//} else {
// var nmjalan = feature.properties.f2
// var nmjalan = feature.properties.f2
//};
//};
//
//
//var history
//var history
//if (feature.properties.f7 != null) {
//if (feature.properties.f7 != null) {
// var list_history = feature.properties.f7
// var list_history = feature.properties.f7
//
//
// var list_history_panel = ``
// var list_history_panel = ``
// for (var i = 0; i
<
list_history
.
length
;
i
++
)
{
// for (var i = 0; i
<
list_history
.
length
;
i
++
)
{
// var dt_history = list_history[i].split(",");
// var dt_history = list_history[i].split(",");
//
//
// var data_history = `
<
div
class
=
"
form-group
"
style
=
"
margin-bottom:0px;
"
>
// var data_history = `
<
div
class
=
"
form-group
"
style
=
"
margin-bottom:0px;
"
>
//
<
div
class
=
"
row
"
>
//
<
div
class
=
"
row
"
>
//
<
label
class
=
"
col-md-6
"
>
` + dt_history[1] + `
<
/label
>
//
<
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
=
"
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
>
//
<
a
class
=
"
col-md-3
"
onclick
=
"
getdetailper(` + dt_history[0] + `)
"
//data-toggle="modal" data-target="#modal_detail">
<
i
>
View
Detail
<
/i></
a
>
//
<
/div
>
//
<
/div
>
//
<
/div>`
;
//
<
/div>`
;
// list_history_panel += data_history
// list_history_panel += data_history
// };
// };
//
//
// history = `
<
p
class
=
"
text-center
"
>
// history = `
<
p
class
=
"
text-center
"
>
// History Perbaikan
// History Perbaikan
//
<
/p
>
//
<
/p
>
//
<
br
>
//
<
br
>
// ` + list_history_panel + `
// ` + list_history_panel + `
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Tambah
History
Perbaikan
<
/i></
//a>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Tambah
History
Perbaikan
<
/i></
//a>
//
<
/p>`
;
//
<
/p>`
;
//} else {
//} else {
// history = `
<
p
class
=
"
text-center
"
>
// history = `
<
p
class
=
"
text-center
"
>
// History Perbaikan
// History Perbaikan
//
<
/p
>
//
<
/p
>
//
<
br
>
//
<
br
>
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
p
class
=
"
text-center
"
style
=
"
margin-top: 10px;
"
>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Input
History
Perbaikan
<
/i></
a
>
//
<
a
href
=
"
#
"
id
=
'
btn_perbaikan_jalan
'
class
=
"
btn btn-default
"
><
i
>
Input
History
Perbaikan
<
/i></
a
>
//
<
/p>`
;
//
<
/p>`
;
//}
//}
//
//
$
(
'
#namajalanedit
'
).
val
(
feature
.
properties
.
f2
);
$
(
'
#namajalanedit
'
).
val
(
feature
.
properties
.
f2
);
...
@@ -2802,7 +2816,7 @@
...
@@ -2802,7 +2816,7 @@
// $("#input_perbaikan").css("display", "none");
// $("#input_perbaikan").css("display", "none");
// $("#edit_kelurahan").css("display", "none");
// $("#edit_kelurahan").css("display", "none");
// }
// }
$
(
document
).
on
(
"
click
"
,
"
#btn_perbaikan_jalan
"
,
function
()
{
$
(
document
).
on
(
"
click
"
,
"
#btn_perbaikan_jalan
"
,
function
()
{
...
@@ -2912,7 +2926,7 @@
...
@@ -2912,7 +2926,7 @@
}).
addTo
(
map_input
);
}).
addTo
(
map_input
);
geo_jalan_input
.
clearLayers
(
geo_jalan_input
)
geo_jalan_input
.
clearLayers
(
geo_jalan_input
)
// $("#input_perbaikan").css("display", "block");
// $("#input_perbaikan").css("display", "block");
var
id_jalan
=
$
(
"
#idjalan
"
).
val
();
var
id_jalan
=
$
(
"
#idjalan
"
).
val
();
editableLayers
.
clearLayers
();
editableLayers
.
clearLayers
();
...
@@ -2928,22 +2942,22 @@
...
@@ -2928,22 +2942,22 @@
},
},
dataType
:
'
json
'
,
dataType
:
'
json
'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
((
data
[
0
]
==
null
)
||
(
data
[
0
]
==
""
))
{
if
((
data
[
0
]
==
null
)
||
(
data
[
0
]
==
""
))
{
$
(
"
#namajalan2
"
).
val
();
$
(
"
#namajalan2
"
).
val
();
}
else
{
}
else
{
$
(
"
#namajalan2
"
).
val
(
data
[
0
]);
$
(
"
#namajalan2
"
).
val
(
data
[
0
]);
}
}
$
(
"
#typejalan
"
).
val
(
data
[
1
]);
$
(
"
#typejalan
"
).
val
(
data
[
1
]);
$
(
"
#panjangjalanall
"
).
val
(
data
[
2
]);
$
(
"
#panjangjalanall
"
).
val
(
data
[
2
]);
$
(
"
#id_jalan_perbaikan
"
).
val
(
data
[
4
]);
$
(
"
#id_jalan_perbaikan
"
).
val
(
data
[
4
]);
$
(
"
#type_id
"
).
val
(
data
[
5
])
$
(
"
#type_id
"
).
val
(
data
[
5
])
var
latlngs
=
data
[
3
];
var
latlngs
=
data
[
3
];
map_input
.
setView
([
latlngs
[
'
geometry
'
][
'
coordinates
'
][
0
][
0
][
1
],
latlngs
[
'
geometry
'
][
'
coordinates
'
][
0
][
0
][
0
]],
17
)
map_input
.
setView
([
latlngs
[
'
geometry
'
][
'
coordinates
'
][
0
][
0
][
1
],
latlngs
[
'
geometry
'
][
'
coordinates
'
][
0
][
0
][
0
]],
17
)
geo_jalan_input
.
addData
(
data
[
3
]);
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
"
)
$
(
"
#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 @@
...
@@ -2958,7 +2972,7 @@
});
});
$
(
document
).
on
(
"
click
"
,
"
#save-perbaikan
"
,
function
()
{
$
(
document
).
on
(
"
click
"
,
"
#save-perbaikan
"
,
function
()
{
// $("#save-perbaikan").click(function() {
// $("#save-perbaikan").click(function() {
// var hasil = JSON.stringify(editableLayers.toGeoJSON());
// var hasil = JSON.stringify(editableLayers.toGeoJSON());
// var hasil = $()
// var hasil = $()
...
@@ -3016,8 +3030,8 @@
...
@@ -3016,8 +3030,8 @@
'
lbr_perbaikan
'
:
lbr_perbaikan
'
lbr_perbaikan
'
:
lbr_perbaikan
},
{
},
{
'
jenis_perbaikan
'
:
jenis_perbaikan
'
jenis_perbaikan
'
:
jenis_perbaikan
// }, {
// }, {
// 'luas': luas
// 'luas': luas
},
{
},
{
'
kelurahan
'
:
kelurahan
'
kelurahan
'
:
kelurahan
},
{
},
{
...
@@ -4736,7 +4750,7 @@
...
@@ -4736,7 +4750,7 @@
})
})
$
(
"
#modal__create
"
).
modal
(
"
toggle
"
);
$
(
"
#modal__create
"
).
modal
(
"
toggle
"
);
$
(
"
#modal_option_create
"
).
modal
(
"
toggle
"
);
$
(
"
#modal_option_create
"
).
modal
(
"
toggle
"
);
// $("#modal_option_create").css("display", "none");
// $("#modal_option_create").css("display", "none");
}
else
{
}
else
{
swal
({
swal
({
...
...
templates/includes/permission.html
0 → 100644
View file @
4da68b7f
<script>
var
list_perm
=
[]
</script>
{% for p in perm_group %}
<script>
var
perm
=
"
{{p}}
"
list_perm
.
push
(
perm
)
</script>
{% endfor %}
<script>
console
.
log
(
list_perm
)
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
();
}
alert
(
list_perm
.
indexOf
(
'
change_rumah_sakit
'
)
>=
0
)
</script>
\ No newline at end of file
templates/layout/layout.html
View file @
4da68b7f
...
@@ -49,23 +49,20 @@
...
@@ -49,23 +49,20 @@
font-family
:
'gilroyultralight'
;
font-family
:
'gilroyultralight'
;
src
:
url('/static/css/Gilroy-UltraLight.woff')
format
(
'woff'
);
src
:
url('/static/css/Gilroy-UltraLight.woff')
format
(
'woff'
);
}
}
/* start hide fitur modal */
/* start hide fitur modal */
.tab_kdb_klb
{
.tab_kdb_klb
{
display
:
none
;
display
:
none
;
}
}
.btn_create_lahan
{
.btn_create_lahan
{
display
:
none
;
display
:
none
;
}
}
.btn_cek_KDBKLB
{
.btn_cek_KDBKLB
{
display
:
none
;
display
:
none
;
}
}
/* end hide fitur modal */
/* end hide fitur modal */
</style>
</style>
{% include 'includes/css-o.html' %} {% include 'includes/css-m.html' %}
{% include 'includes/css-o.html' %} {% include 'includes/css-m.html' %}
...
@@ -142,7 +139,7 @@
...
@@ -142,7 +139,7 @@
<div
class=
"content"
>
<div
class=
"content"
>
<div
id=
"map"
>
<div
id=
"map"
>
<div
class=
"help_bangunan"
style=
"position: absolute;z-index: 999;top: 0px;right: 60px;"
></div>
<div
class=
"help_bangunan"
style=
"position: absolute;z-index: 999;top: 0px;right: 60px;"
></div>
<div
class=
"row"
style=
"margin-top: 20px;"
>
<div
class=
"row"
style=
"margin-top: 20px;"
>
<div
class=
"col-sm-4 head"
>
<div
class=
"col-sm-4 head"
>
...
@@ -187,8 +184,8 @@
...
@@ -187,8 +184,8 @@
</div>
</div>
</div>
</div>
<!-- </div> -->
<!-- </div> -->
<!-- <div class="row" id="searchbar" style="margin-top: 2%;">
<!-- <div class="row" id="searchbar" style="margin-top: 2%;">
<div class="col-sm-4 head">
<div class="col-sm-4 head">
...
@@ -248,16 +245,16 @@
...
@@ -248,16 +245,16 @@
</button>
</button>
</span>
</span>
</div> -->
</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="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="row row-full-height" style="width: 100%;margin-left: 10px;"> -->
{% if user.is_authenticated %} {% else %}
{% 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=
"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=
"row row-full-height"
>
<div
class=
"col-md-1 col-sm-12"
>
<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;"
>
<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 @@
...
@@ -273,10 +270,10 @@
<a
href=
"{% url 'login' %}"
class=
"btn btn-primary vertical-centered"
id=
"btn-signin"
>
SIGN IN
</a>
<a
href=
"{% url 'login' %}"
class=
"btn btn-primary vertical-centered"
id=
"btn-signin"
>
SIGN IN
</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</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="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="row row-full-height" style="width: 100%;margin-left: 10px;">
<div class="col-md-1">
<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;">
<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 @@
...
@@ -295,7 +292,7 @@
</div> -->
</div> -->
{% if user.is_authenticated %}
{% if user.is_authenticated %}
<div
class=
"user-p-nav"
style=
"height: 10%;width: 10%;position: absolute;top: 30px;right: 65px;z-index: 999;"
>
<div
class=
"user-p-nav"
style=
"height: 10%;width: 10%;position: absolute;top: 30px;right: 65px;z-index: 999;"
>
<!-- <a href="#">
<!-- <a href="#">
...
@@ -440,9 +437,9 @@
...
@@ -440,9 +437,9 @@
<!-- /page content -->
<!-- /page content -->
</div>
</div>
{% include 'includes/modal.html' %}
{% include 'includes/modal.html' %}
<div
class=
"modal fade"
id=
"modal-kelurahan"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal fade"
id=
"modal-kelurahan"
tabindex=
"-1"
role=
"dialog"
>
...
@@ -873,8 +870,7 @@
...
@@ -873,8 +870,7 @@
</body>
</body>
</html>
</html>
{% include 'includes/permission.html' %} {% include 'includes/js-o.html' %} {% include 'includes/js-m.html' %}
{% include 'includes/js-o.html' %} {% include 'includes/js-m.html' %}
<script
type=
"text/javascript"
src=
"{% static 'js/action.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/action.js' %}"
></script>
<script>
<script>
// start disabled inspect
// start disabled inspect
...
@@ -903,7 +899,7 @@
...
@@ -903,7 +899,7 @@
// end disabled inspect
// end disabled inspect
var
dar
=
null
;
var
dar
=
null
;
$
(
'
#search_spes li a
'
).
on
(
'
click
'
,
function
()
{
$
(
'
#search_spes li a
'
).
on
(
'
click
'
,
function
()
{
...
@@ -916,7 +912,7 @@
...
@@ -916,7 +912,7 @@
$
(
"
#pilihcari
"
).
html
(
'
<i class="icon-home4 text-muted text-size-base" style="color: #5A9AFB;"></i>
'
)
$
(
"
#pilihcari
"
).
html
(
'
<i class="icon-home4 text-muted text-size-base" style="color: #5A9AFB;"></i>
'
)
}
else
if
(
dar
==
'
Jalan
'
)
{
}
else
if
(
dar
==
'
Jalan
'
)
{
$
(
"
#pilihcari
"
).
html
(
'
<i class="icon-git-branch text-muted text-size-base" style="color: #5A9AFB;"></i>
'
)
$
(
"
#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
(
''
)
$
(
"
#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