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
86c68770
Commit
86c68770
authored
Sep 23, 2021
by
Muhamad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create
parent
4958de4c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1494 additions
and
747 deletions
+1494
-747
OKU/settings.py
OKU/settings.py
+4
-4
static/css/layout-style.css
static/css/layout-style.css
+7
-0
templates/includes/insert.html
templates/includes/insert.html
+3
-3
templates/includes/js-m.html
templates/includes/js-m.html
+234
-231
templates/includes/js-o.html
templates/includes/js-o.html
+764
-2
templates/includes/modal.html
templates/includes/modal.html
+88
-105
templates/layout/user_layout.html
templates/layout/user_layout.html
+394
-402
No files found.
OKU/settings.py
View file @
86c68770
...
...
@@ -85,10 +85,10 @@ DATABASES = {
'NAME'
:
'oku_gis_new'
,
'USER'
:
'postgres'
,
'PASSWORD'
:
'khansia215758'
,
#
'HOST': '30.10.20.102',
#
'PORT': '5432',
'HOST'
:
'103.126.28.66'
,
'PORT'
:
'8082'
,
'HOST'
:
'30.10.20.102'
,
'PORT'
:
'5432'
,
#
'HOST': '103.126.28.66',
#
'PORT': '8082',
}
}
...
...
static/css/layout-style.css
View file @
86c68770
...
...
@@ -199,6 +199,13 @@ body>div.page-container>div>div.sidebar.sidebar-main>div>img {
transform
:
rotate
(
180deg
);
}
#map-create-all
>
div
.leaflet-control-container
>
div
.leaflet-top.leaflet-left
>
div
:nth-child
(
2
)>
div
>
div
>
a
.leaflet-draw-draw-marker
{
margin-top
:
-20px
;
margin-left
:
-10px
;
width
:
40px
;
height
:
20px
;
}
@media
(
max-width
:
1025px
)
{
.dock
{
position
:
absolute
;
...
...
templates/includes/insert.html
View file @
86c68770
...
...
@@ -270,7 +270,7 @@
map
.
openPopup
(
popup
);
$
(
"
#tipe_point
"
).
change
(
function
()
{
var
tipe
=
$
(
this
).
val
();
var
tipe
=
$
(
this
).
val
();
$
.
ajax
({
url
:
"
{% url 'api:change-tipe' %}
"
,
...
...
@@ -309,7 +309,7 @@
for
(
var
i
=
0
;
i
<
data
[
'
result
'
].
length
;
i
++
)
{
var
data_k
=
data
[
'
result
'
][
i
][
0
];
console
.
log
(
data_k
)
var
data_kab
=
`<option value="`
+
data_k
+
`">`
+
data_k
+
`</option>`
;
var
data_kab
=
`<option value="`
+
data_k
+
`">`
+
data_k
+
`</option>`
;
data_all_kab
.
push
(
data_kab
)
};
$
(
'
#tipe_point_2_b
'
).
html
(
`<option value="null" selected disabled>-- Pilih Tipe Point --</option>`
+
data_all_kab
);
...
...
@@ -334,7 +334,7 @@
for
(
var
i
=
0
;
i
<
data
[
'
result
'
].
length
;
i
++
)
{
var
data_id
=
data
[
'
result
'
][
i
][
0
];
var
data_po
=
data
[
'
result
'
][
i
][
1
];
var
data_kab
=
`<option value="`
+
data_id
+
`">`
+
data_po
+
`</option>`
;
var
data_kab
=
`<option value="`
+
data_id
+
`">`
+
data_po
+
`</option>`
;
data_all_kab
.
push
(
data_kab
)
};
$
(
'
#tipe_point_3_b
'
).
html
(
`<option value="null" selected disabled>-- Pilih Point --</option>`
+
data_all_kab
);
...
...
templates/includes/js-m.html
View file @
86c68770
...
...
@@ -3,7 +3,7 @@
.leaflet-popup
{
display
:
block
;
}
#btn_edit_kelurahan
{
display
:
block
;
}
...
...
@@ -71,11 +71,11 @@
#btn_edit_si
{
display
:
block
;
}
#btn_detail_per_bang
{
display
:
block
;
}
#btn_perbaikan_bangunan
{
display
:
block
;
}
...
...
@@ -670,7 +670,7 @@
data
.
append
(
'
alamat
'
,
$
(
'
#alamat_adm_edit
'
).
val
())
data
.
append
(
'
perangkat
'
,
$
(
'
#perangkat_adm_edit
'
).
val
())
data
.
append
(
'
point
'
,
poi
),
data
.
append
(
'
gambar
'
,
$
(
'
#gambar_adm_edit
'
).
val
())
data
.
append
(
'
gambar
'
,
$
(
'
#gambar_adm_edit
'
).
val
())
$
.
ajax
({
url
:
"
{% url 'api:kantor' %}
"
,
...
...
@@ -3054,7 +3054,7 @@
data
.
append
(
'
alamat
'
,
$
(
'
#alamat
'
).
val
())
data
.
append
(
'
perangkat
'
,
$
(
'
#perangkat
'
).
val
())
data
.
append
(
'
point
'
,
poi
),
data
.
append
(
'
gambar
'
,
$
(
'
#gambarspbu
'
).
val
())
data
.
append
(
'
gambar
'
,
$
(
'
#gambarspbu
'
).
val
())
$
.
ajax
({
url
:
"
{% url 'api:spbu' %}
"
,
data
:
data
,
...
...
@@ -3932,7 +3932,7 @@
</div>
</div>
</div>`
content_cabud
=
`
content_cabud
=
`
<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -4087,7 +4087,7 @@
data
.
append
(
'
alamat
'
,
$
(
'
#alamat
'
).
val
())
data
.
append
(
'
perangkat
'
,
$
(
'
#perangkat
'
).
val
())
data
.
append
(
'
point
'
,
poi
),
data
.
append
(
'
gambar
'
,
$
(
'
#gambar
'
).
val
())
data
.
append
(
'
gambar
'
,
$
(
'
#gambar
'
).
val
())
$
.
ajax
({
url
:
"
{% url 'api:cagarbudaya' %}
"
,
...
...
@@ -4289,8 +4289,8 @@
</div>
</div>
</div>`
content_gl
=
`
content_gl
=
`
<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
...
...
@@ -4735,9 +4735,9 @@
dataType
:
'
json
'
,
success
:
function
(
data
)
{
$
(
"
#modalsearch3d
"
).
modal
(
"
toggle
"
)
// console.log(data['polygon_o'])
// console.log(data['line_o'])
// console.log(data['kantor_administrasi'])
// console.log(data['polygon_o'])
// console.log(data['line_o'])
// console.log(data['kantor_administrasi'])
map_cesium
.
camera
.
flyTo
({
destination
:
Cesium
.
Cartesian3
.
fromDegrees
(
data
[
'
lat
'
],
data
[
'
lng
'
],
750
)
...
...
@@ -4749,7 +4749,7 @@
maxheight
=
[];
minheight
=
[];
for
(
var
x
=
0
;
x
<
(
poll
.
length
/
2
);
x
++
)
{
for
(
var
x
=
0
;
x
<
(
poll
.
length
/
2
);
x
++
)
{
max
=
data
[
"
tinggi_pol
"
][
i
];
maxheight
.
push
(
max
);
min
=
0
;
...
...
@@ -4763,7 +4763,9 @@
maximumHeights
:
maxheight
,
minimumHeights
:
minheight
,
// height: 0,
material
:
new
Cesium
.
ImageMaterialProperty
({
image
:
"
static/image/bangunan/3d/
"
+
data
[
"
tampak_depan_pol
"
][
i
]
+
""
}),
material
:
new
Cesium
.
ImageMaterialProperty
({
image
:
"
static/image/bangunan/3d/
"
+
data
[
"
tampak_depan_pol
"
][
i
]
+
""
}),
// closeTop: false,
// maximumHeights : data["tinggi_pol"][i],
// minimumHeights : 0,
...
...
@@ -4773,17 +4775,19 @@
name
:
data
[
"
info_polygon
"
][
i
]
});
// poly_osm.polygon.extrudedHeight = data["tinggi_pol"][i];
var
atap
=
map_cesium
.
entities
.
add
({
polygon
:
{
hierarchy
:
Cesium
.
Cartesian3
.
fromDegreesArray
(
poll
),
// material: materialatas,
material
:
new
Cesium
.
ImageMaterialProperty
({
image
:
"
static/image/bangunan/3d/
"
+
data
[
"
tampak_atas_pol
"
][
i
]
+
""
}),
material
:
new
Cesium
.
ImageMaterialProperty
({
image
:
"
static/image/bangunan/3d/
"
+
data
[
"
tampak_atas_pol
"
][
i
]
+
""
}),
outline
:
true
,
height
:
data
[
"
tinggi_pol
"
][
i
],
fill
:
true
,
fill
:
true
,
outlineColor
:
Cesium
.
Color
.
GREEN
,
},
name
:
data
[
"
info_polygon
"
][
i
]
...
...
@@ -4812,7 +4816,7 @@
var
long
=
data
[
'
longadm
'
];
var
poin
=
data
[
'
infoadm
'
];
var
rema
=
data
[
'
remaadm
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -4820,10 +4824,10 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Kantor Polisi
'
)
{
var
color
=
Cesium
.
Color
.
DARKCYAN
;
var
gmbcok
=
"
3d_police.svg
"
...
...
@@ -4836,7 +4840,7 @@
}
else
if
(
rema
==
'
Kantor Pemerintah Lainnya
'
)
{
var
color
=
Cesium
.
Color
.
GAINSBORO
;
var
gmbcok
=
"
3d_kadm_lain.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
GAINSBORO
;
var
gmbcok
=
"
3d_kadm.svg
"
}
...
...
@@ -4855,18 +4859,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
nameadm
:
data
[
'
infoadm
'
][
i
]
nameadm
:
data
[
'
infoadm
'
][
i
]
});
// console.log(nameadm)
var
entity
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -4874,14 +4878,14 @@
// console.log(name)
map_cesium
.
entities
.
add
(
entity
);
}
for
(
var
i
=
0
;
i
<
data
[
"
layanan_kesehatan
"
].
length
;
i
++
)
{
var
lk
=
data
[
'
layanan_kesehatan
'
]
var
lati
=
data
[
'
latlk
'
];
var
long
=
data
[
'
longlk
'
];
var
poin
=
data
[
'
infolk
'
];
var
rema
=
data
[
'
remalk
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -4889,10 +4893,10 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Poliklinik/Polindes/Posyandu
'
)
{
var
color
=
Cesium
.
Color
.
INDIANRED
;
var
gmbcok
=
"
3d_lk.svg
"
...
...
@@ -4915,18 +4919,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namelk
:
data
[
'
infolk
'
][
i
]
namelk
:
data
[
'
infolk
'
][
i
]
});
// console.log(nameadm)
var
entitylk
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -4941,7 +4945,7 @@
var
long
=
data
[
'
longpks
'
];
var
poin
=
data
[
'
infopks
'
];
var
rema
=
data
[
'
remapks
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -4949,14 +4953,14 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Puskesmas/Puskesmas Pembantu
'
)
{
var
color
=
Cesium
.
Color
.
INDIANRED
;
var
gmbcok
=
"
3d_pks.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
INDIANRED
;
var
gmbcok
=
"
3d_pks.svg
"
}
...
...
@@ -4975,18 +4979,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namepks
:
data
[
'
infopks
'
][
i
]
namepks
:
data
[
'
infopks
'
][
i
]
});
// console.log(nameadm)
var
entitypks
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5002,7 +5006,7 @@
var
poin
=
data
[
'
infors
'
];
var
rema
=
data
[
'
remars
'
][
i
];
console
.
log
(
rema
)
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5010,10 +5014,10 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Rumah Sakit Umum
'
)
{
var
color
=
Cesium
.
Color
.
INDIANRED
;
var
gmbcok
=
"
3d_rs.svg
"
...
...
@@ -5036,18 +5040,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namers
:
data
[
'
infors
'
][
i
]
namers
:
data
[
'
infors
'
][
i
]
});
// console.log(nameadm)
var
entityrs
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5062,7 +5066,7 @@
var
long
=
data
[
'
longsi
'
];
var
poin
=
data
[
'
infosi
'
];
var
rema
=
data
[
'
remasi
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5070,10 +5074,10 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Masjid
'
)
{
var
color
=
Cesium
.
Color
.
DIMGREY
;
var
gmbcok
=
"
3d_masjid.svg
"
...
...
@@ -5086,7 +5090,7 @@
}
else
if
(
rema
==
'
Pura
'
)
{
var
color
=
Cesium
.
Color
.
DIMGREY
;
var
gmbcok
=
"
3d_pura.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
DIMGREY
;
var
gmbcok
=
"
3d_ibadah_lain.svg
"
}
...
...
@@ -5105,18 +5109,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namesi
:
data
[
'
infosi
'
][
i
]
namesi
:
data
[
'
infosi
'
][
i
]
});
// console.log(nameadm)
var
entitysi
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5131,7 +5135,7 @@
var
long
=
data
[
'
longsp
'
];
var
poin
=
data
[
'
infosp
'
];
var
rema
=
data
[
'
remasp
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5139,10 +5143,10 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Pendidikan Dasar
'
)
{
var
color
=
Cesium
.
Color
.
INDIANRED
;
var
gmbcok
=
"
3d_sd.svg
"
...
...
@@ -5155,7 +5159,7 @@
}
else
if
(
rema
==
'
Pendidikan Tinggi
'
)
{
var
color
=
Cesium
.
Color
.
DIMGREY
;
var
gmbcok
=
"
3d_univ.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
GOLDENROD
;
var
gmbcok
=
"
3d_sp_lain.svg
"
}
...
...
@@ -5174,18 +5178,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namesp
:
data
[
'
infosp
'
][
i
]
namesp
:
data
[
'
infosp
'
][
i
]
});
// console.log(nameadm)
var
entitysp
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5200,7 +5204,7 @@
var
long
=
data
[
'
longspbu
'
];
var
poin
=
data
[
'
infospbu
'
];
var
rema
=
data
[
'
remaspbu
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5208,14 +5212,14 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Stasiun Pompa Bahan Bakar Umum
'
)
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_spbu.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_spbu.svg
"
}
...
...
@@ -5234,18 +5238,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namespbu
:
data
[
'
infospbu
'
][
i
]
namespbu
:
data
[
'
infospbu
'
][
i
]
});
// console.log(nameadm)
var
entityspbu
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5260,7 +5264,7 @@
var
long
=
data
[
'
longst
'
];
var
poin
=
data
[
'
infost
'
];
var
rema
=
data
[
'
remast
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5268,14 +5272,14 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Stasiun Kereta Api
'
)
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_stasiun.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_stasiun.svg
"
}
...
...
@@ -5294,18 +5298,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namest
:
data
[
'
infost
'
][
i
]
namest
:
data
[
'
infost
'
][
i
]
});
// console.log(nameadm)
var
entityst
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5320,7 +5324,7 @@
var
long
=
data
[
'
longst
'
];
var
poin
=
data
[
'
infost
'
];
var
rema
=
data
[
'
remast
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5328,14 +5332,14 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Stasiun Kereta Api
'
)
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_stasiun.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_stasiun.svg
"
}
...
...
@@ -5354,18 +5358,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namest
:
data
[
'
infost
'
][
i
]
namest
:
data
[
'
infost
'
][
i
]
});
// console.log(nameadm)
var
entityst
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5380,7 +5384,7 @@
var
long
=
data
[
'
longtr
'
];
var
poin
=
data
[
'
infotr
'
];
var
rema
=
data
[
'
rematr
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5388,14 +5392,14 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
if
(
rema
==
'
Terminal Bus/Angkutan Kendaraan Lainnya
'
)
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_terminal.svg
"
}
else
{
}
else
{
var
color
=
Cesium
.
Color
.
FORESTGREEN
;
var
gmbcok
=
"
3d_terminal.svg
"
}
...
...
@@ -5414,18 +5418,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
nametr
:
data
[
'
infotr
'
][
i
]
nametr
:
data
[
'
infotr
'
][
i
]
});
// console.log(nameadm)
var
entitytr
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5440,7 +5444,7 @@
var
long
=
data
[
'
longcb
'
];
var
poin
=
data
[
'
infocb
'
];
var
rema
=
data
[
'
remacb
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5448,13 +5452,13 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
var
color
=
Cesium
.
Color
.
ORANGE
;
var
gmbcok
=
"
3d_cagar.svg
"
var
polyline
=
new
Cesium
.
PolylineGraphics
();
polyline
.
material
=
new
Cesium
.
ColorMaterialProperty
(
color
);
polyline
.
width
=
new
Cesium
.
ConstantProperty
(
2
);
...
...
@@ -5469,18 +5473,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namecb
:
data
[
'
infocb
'
][
i
]
namecb
:
data
[
'
infocb
'
][
i
]
});
// console.log(nameadm)
var
entitycb
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5495,7 +5499,7 @@
var
long
=
data
[
'
longgl
'
];
var
poin
=
data
[
'
infogl
'
];
var
rema
=
data
[
'
remagl
'
][
i
];
var
surfacePosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
...
...
@@ -5503,13 +5507,13 @@
);
var
heightPosition
=
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
lati
[
i
],
100
);
var
color
=
Cesium
.
Color
.
YELLOW
;
var
gmbcok
=
"
3d_gardu.svg
"
var
polyline
=
new
Cesium
.
PolylineGraphics
();
polyline
.
material
=
new
Cesium
.
ColorMaterialProperty
(
color
);
polyline
.
width
=
new
Cesium
.
ConstantProperty
(
2
);
...
...
@@ -5524,18 +5528,18 @@
map_cesium
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
long
[
i
],
lati
[
i
],
100
),
billboard
:
{
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
// icon: facilityUrl,
image
:
`static/img/icon/`
+
gmbcok
+
``
,
// image: `static/img/icon/3d_police.svg`,
show
:
true
,
// default
scale
:
2.0
,
// default: 1.0
width
:
15
,
// default: undefined
height
:
15
,
// default: undefined
},
namegl
:
data
[
'
infogl
'
][
i
]
namegl
:
data
[
'
infogl
'
][
i
]
});
// console.log(nameadm)
var
entitygl
=
new
Cesium
.
Entity
({
polyline
:
polyline
,
// name: data['infoadm'][i]
...
...
@@ -5560,7 +5564,7 @@
}
else
{
var
path_img
=
`"static/image/bangunan/`
+
data
[
'
administrasi
'
][
'
f9
'
]
+
`"`
}
content_tampak
=
`
content_tampak
=
`
<div class="modal-dialog" style="width: max-content;height: max-content;">
<div class="modal-content">
<div class="modal-header bg-info" style="background-color:#40777c;">
...
...
@@ -5579,23 +5583,23 @@
<input type="text" class="hidden" name="coordinatebangunan" id="coordinatebangunantampak" value="">
</p>
<p>
<input type="text" name="idbangunan" id="idbangunantampak" class="form-control hidden" value="`
+
data
[
'
properties
'
][
'
f1
'
]
+
`" disable>
<input type="text" name="idbangunan" id="idbangunantampak" class="form-control hidden" value="`
+
data
[
'
properties
'
][
'
f1
'
]
+
`" disable>
</p>
<p>
<input type="text" name="namebangunan" id="namebangunantampak" class="form-control" value="`
+
data
[
'
properties
'
][
'
f2
'
]
+
`">
<input type="text" name="namebangunan" id="namebangunantampak" class="form-control" value="`
+
data
[
'
properties
'
][
'
f2
'
]
+
`">
</p>
<p>
<input type="text" name="infobangunan" id="infobangunantampak" class="form-control" value="`
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`">
<input type="text" name="infobangunan" id="infobangunantampak" class="form-control" value="`
+
data
[
'
administrasi
'
][
'
f12
'
]
+
`">
</p>
<p>
<span>Gambar Tampak Atas</span>
<input type="file" id="imgbangunanatas" name="images[]" multiple accept="image/jpg,image/png,image/jpeg,image/gif">
<input style="display:none;" id="gambaratas" type="text" class="form-control" value="`
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`"required>
<input style="display:none;" id="gambaratas" type="text" class="form-control" value="`
+
data
[
'
administrasi
'
][
'
f14
'
]
+
`"required>
</p>
<p>
<span>Gambar Tampak Depan</span>
<input type="file" id="imgbangunandepan" name="images[]" multiple accept="image/jpg,image/png,image/jpeg,image/gif">
<input style="display:none;" id="gambardepan" type="text" class="form-control" value="`
+
data
[
'
administrasi
'
][
'
f15
'
]
+
`"required>
<input style="display:none;" id="gambardepan" type="text" class="form-control" value="`
+
data
[
'
administrasi
'
][
'
f15
'
]
+
`"required>
</p>
</div>
</div>
...
...
@@ -5683,7 +5687,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
nameadm
))
{
var
id_3dadm
=
selectedEntity
.
nameadm
$
.
ajax
({
...
...
@@ -5758,7 +5762,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namelk
))
{
var
id_3dadm
=
selectedEntity
.
namelk
$
.
ajax
({
...
...
@@ -5833,7 +5837,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namepks
))
{
var
id_3dadm
=
selectedEntity
.
namepks
$
.
ajax
({
...
...
@@ -5908,7 +5912,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namers
))
{
var
id_3dadm
=
selectedEntity
.
namers
$
.
ajax
({
...
...
@@ -5983,7 +5987,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namesi
))
{
var
id_3dadm
=
selectedEntity
.
namesi
$
.
ajax
({
...
...
@@ -6058,7 +6062,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namesp
))
{
var
id_3dadm
=
selectedEntity
.
namesp
$
.
ajax
({
...
...
@@ -6133,7 +6137,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namespbu
))
{
var
id_3dadm
=
selectedEntity
.
namespbu
$
.
ajax
({
...
...
@@ -6208,7 +6212,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namest
))
{
var
id_3dadm
=
selectedEntity
.
namest
$
.
ajax
({
...
...
@@ -6283,7 +6287,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
nametr
))
{
var
id_3dadm
=
selectedEntity
.
nametr
$
.
ajax
({
...
...
@@ -6358,7 +6362,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namecb
))
{
var
id_3dadm
=
selectedEntity
.
namecb
$
.
ajax
({
...
...
@@ -6433,7 +6437,7 @@
panel_samp
();
}
})
}
else
if
(
Cesium
.
defined
(
selectedEntity
.
namegl
))
{
var
id_3dadm
=
selectedEntity
.
namegl
$
.
ajax
({
...
...
@@ -6508,7 +6512,7 @@
panel_samp
();
}
})
}
else
{
console
.
log
(
'
Unknown entity selected.
'
);
}
...
...
@@ -6684,9 +6688,9 @@
//
<
option
value
=
"
gardu_listrik
"
>
Gardu
Listrik
<
/option>
`
// }
var
history
if
(
feature
.
administrasi
.
f11
==
'
kantor_administrasi
'
||
feature
.
administrasi
.
f11
==
'
layanan_kesehatan
'
||
feature
.
administrasi
.
f11
==
'
puskesmas
'
||
feature
.
administrasi
.
f11
==
'
rumah_sakit
'
||
feature
.
administrasi
.
f11
==
'
sarana_pendidikan
'
||
feature
.
administrasi
.
f11
==
'
stasiun
'
||
feature
.
administrasi
.
f11
==
'
terminal_bus
'
||
feature
.
administrasi
.
f11
==
'
cagar_budaya
'
||
feature
.
administrasi
.
f11
==
'
gardu_listrik
'
)
{
if
(
feature
.
administrasi
.
f11
==
'
kantor_administrasi
'
||
feature
.
administrasi
.
f11
==
'
layanan_kesehatan
'
||
feature
.
administrasi
.
f11
==
'
puskesmas
'
||
feature
.
administrasi
.
f11
==
'
rumah_sakit
'
||
feature
.
administrasi
.
f11
==
'
sarana_pendidikan
'
||
feature
.
administrasi
.
f11
==
'
stasiun
'
||
feature
.
administrasi
.
f11
==
'
terminal_bus
'
||
feature
.
administrasi
.
f11
==
'
cagar_budaya
'
||
feature
.
administrasi
.
f11
==
'
gardu_listrik
'
)
{
if
(
feature
.
properties
.
f4
!=
null
)
{
var
list_history
=
feature
.
properties
.
f4
var
list_history_panel
=
``
...
...
@@ -6753,7 +6757,7 @@
</div>
</div>
<div class="col-md-4">
<input type="text" class="hidden" name="coordinatebangunan" id="coordinatebangunan" value="`
+
feature
.
geometry
+
`">
<input type="text" class="hidden" name="coordinatebangunan" id="coordinatebangunan" value="`
+
feature
.
geometry
+
`">
<table>
<tr style="margin-top: 10px">
<th>
...
...
@@ -6761,28 +6765,28 @@
</th>
<td>
<input type="file" id="imgbangunan" name="images[]" multiple accept="image/jpg,image/png,image/jpeg,image/gif">
<input style="display:none;" id="gambar" type="text" class="form-control" value="`
+
feature
.
administrasi
.
f9
+
`"required>
<input style="display:none;" id="gambar" type="text" class="form-control" value="`
+
feature
.
administrasi
.
f9
+
`"required>
</td>
</tr>
<tr>
<td>
<input type="text" name="idbangunan" id="idbangunan" class="form-control hidden" value="`
+
feature
.
properties
.
f1
+
`" disable>
<input type="text" name="idbangunan" id="idbangunan" class="form-control hidden" value="`
+
feature
.
properties
.
f1
+
`" disable>
<input style="display:none;" id="coordinateZoneeditbang" type="text" class="form-control" value=""required>
</td>
</tr>
<tr>
<th>Nama Bangunan</th>
<td>
<input type="text" name="namebangunan" id="namebangunan" class="form-control" value="`
+
feature
.
properties
.
f2
+
`">
<input type="text" name="namebangunan" id="namebangunan" class="form-control" value="`
+
feature
.
properties
.
f2
+
`">
</td>
</tr>
<tr>
<th>Jenis Bangunan</th>
<td>
<input type="text" class="hidden" name="tipe1" id="tipe111" value="`
+
feature
.
administrasi
.
f11
+
`">
<input type="text" class="hidden" name="tipe1" id="tipe222" value="`
+
feature
.
administrasi
.
f12
+
`">
<input type="text" class="hidden" name="tipe1" id="tipe333" value="`
+
feature
.
administrasi
.
f13
+
`">
<input type="text" class="hidden" name="tipe1" id="tipe444" value="`
+
feature
.
administrasi
.
f14
+
`">
<input type="text" class="hidden" name="tipe1" id="tipe111" value="`
+
feature
.
administrasi
.
f11
+
`">
<input type="text" class="hidden" name="tipe1" id="tipe222" value="`
+
feature
.
administrasi
.
f12
+
`">
<input type="text" class="hidden" name="tipe1" id="tipe333" value="`
+
feature
.
administrasi
.
f13
+
`">
<input type="text" class="hidden" name="tipe1" id="tipe444" value="`
+
feature
.
administrasi
.
f14
+
`">
<select style="border-bottom: 1px solid rgb(83, 83, 83) !important;width: 220px;" id="tipe_point_b_e" data-placeholder="select point.." class="select-size-md">
<option value="null" selected disabled>-- Pilih Jenis Point --</option>
<option value="bangunan">Bangunan Biasa</option>
...
...
@@ -6816,31 +6820,31 @@
<tr>
<th>Informasi Bangunan</th>
<td>
<input type="text" name="infobangunan" id="infobangunan" class="form-control" value="`
+
feature
.
properties
.
f3
+
`">
<input type="text" name="infobangunan" id="infobangunan" class="form-control" value="`
+
feature
.
properties
.
f3
+
`">
</td>
</tr>
<tr>
<th>Kelurahan</th>
<td>
<input type=" text " name="nmkelurahan " id="nmkelurahan" class="form-control " value="`
+
feature
.
administrasi
.
f1
+
`">
<input type=" text " name="nmkelurahan " id="nmkelurahan" class="form-control " value="`
+
feature
.
administrasi
.
f1
+
`">
</td>
</tr>
<tr>
<th>Kecamatan</th>
<td>
<input type="text " name="nmkecamatan " id="nmkecamatan" class="form-control " value="`
+
feature
.
administrasi
.
f2
+
`">
<input type="text " name="nmkecamatan " id="nmkecamatan" class="form-control " value="`
+
feature
.
administrasi
.
f2
+
`">
</td>
</tr>
<tr>
<th>Kab/Kota</th>
<td>
<input type="text " name="nmkabkota " id="nmkabkota" class="form-control " value="`
+
feature
.
administrasi
.
f3
+
`">
<input type="text " name="nmkabkota " id="nmkabkota" class="form-control " value="`
+
feature
.
administrasi
.
f3
+
`">
</td>
</tr>
<tr>
<th>Provinsi</th>
<td>
<input type="text " name="nmprovinsi " id="nmprovinsi" class="form-control " value="`
+
feature
.
administrasi
.
f4
+
`">
<input type="text " name="nmprovinsi " id="nmprovinsi" class="form-control " value="`
+
feature
.
administrasi
.
f4
+
`">
</td>
</tr>
...
...
@@ -6853,25 +6857,25 @@
<tr>
<th>Luas Bangunan</th>
<td>
<input type="text " name="luasbangunan " id="luasbangunan" class="form-control " value="`
+
feature
.
administrasi
.
f6
+
`">
<input type="text " name="luasbangunan " id="luasbangunan" class="form-control " value="`
+
feature
.
administrasi
.
f6
+
`">
</td>
</tr>
<tr>
<th>Luas Tanah</th>
<td>
<input type="text " name="luastanah " id="luastanah" class="form-control " value="`
+
feature
.
administrasi
.
f7
+
`">
<input type="text " name="luastanah " id="luastanah" class="form-control " value="`
+
feature
.
administrasi
.
f7
+
`">
</td>
</tr>
<tr>
<th>Tinggi Bangunan</th>
<td>
<input type="text " name="tinggibangunan " id="tinggibangunan" class="form-control " value="`
+
feature
.
administrasi
.
f8
+
`">
<input type="text " name="tinggibangunan " id="tinggibangunan" class="form-control " value="`
+
feature
.
administrasi
.
f8
+
`">
</td>
</tr>
<tr>
<th>Pemilik</th>
<td>
<input type="text " name="pemilik " id="pemilik" class="form-control " value="`
+
feature
.
administrasi
.
f10
+
`">
<input type="text " name="pemilik " id="pemilik" class="form-control " value="`
+
feature
.
administrasi
.
f10
+
`">
</td>
</tr>
</table>
...
...
@@ -6885,7 +6889,7 @@
</div>
</div>
</div>`
;
content_delete
=
`
content_delete
=
`
<div class="modal-dialog" style="width: max-content;height: max-content;">
<div class="modal-content">
<div class="modal-header bg-info" style="background-color:#40777c;">
...
...
@@ -6901,9 +6905,9 @@
<div class="form-group">
<div class="col-lg-12" style="margin-top:10px;margin-bottom:10px;">
<input type="text" class="hidden" name="coordinatebangunan" id="coordinatebangunanhps" value="">
<input type="text" name="idbangunan" id="idbangunanhps" class="form-control hidden" value="`
+
feature
.
properties
.
f1
+
`" disable>
<input type="text" name="namebangunan" id="namebangunanhps" class="form-control" value="`
+
feature
.
properties
.
f2
+
`">
<input type="text" name="infobangunan" id="infobangunanhps" class="form-control" value="`
+
feature
.
properties
.
f3
+
`">
<input type="text" name="idbangunan" id="idbangunanhps" class="form-control hidden" value="`
+
feature
.
properties
.
f1
+
`" disable>
<input type="text" name="namebangunan" id="namebangunanhps" class="form-control" value="`
+
feature
.
properties
.
f2
+
`">
<input type="text" name="infobangunan" id="infobangunanhps" class="form-control" value="`
+
feature
.
properties
.
f3
+
`">
</div>
</div>
</div>
...
...
@@ -7100,7 +7104,7 @@
</tr>
</div>
<div class="container">
`
+
history
+
`
`
+
history
+
`
</div>
</tbody>
</table>`
;
...
...
@@ -7223,9 +7227,9 @@
});
$
(
document
).
on
(
"
click
"
,
"
#btn_edit_bangunan
"
,
function
()
{
var
tipe1
=
$
(
'
#tipe111
'
).
val
();
$
(
'
#tipe_point_b_e option[value=
'
+
tipe1
+
'
]
'
).
attr
(
'
selected
'
,
'
selected
'
);
$
(
'
#tipe_point_b_e option[value=
'
+
tipe1
+
'
]
'
).
attr
(
'
selected
'
,
'
selected
'
);
$
(
"
#tipe_point_b_e
"
).
change
(
function
()
{
$
(
'
#tipe_point_2_b_e
'
).
empty
();
...
...
@@ -7243,7 +7247,7 @@
var
data_all_kab
=
[]
for
(
var
i
=
0
;
i
<
data
[
'
result
'
].
length
;
i
++
)
{
var
data_k
=
data
[
'
result
'
][
i
][
0
];
// if (feature.administrasi.f12 == data_k){
// var data_kab = `
<
option
value
=
"
` + data_k + `
"
selected
>
` + data_k + `
<
/option>`
;
// } else{
...
...
@@ -7260,8 +7264,8 @@
var
tipe2
=
$
(
'
#tipe222
'
).
val
();
if
(
tipe2
==
'
null
'
)
{
$
(
'
#tipe_point_2_b_e
'
).
html
(
`<option value="null" selected disabled>-- Pilih Tipe Point --</option>`
);
}
else
{
$
(
'
#tipe_point_2_b_e
'
).
html
(
`<option value="`
+
tipe2
+
`" selected>`
+
tipe2
+
`</option>`
);
}
else
{
$
(
'
#tipe_point_2_b_e
'
).
html
(
`<option value="`
+
tipe2
+
`" selected>`
+
tipe2
+
`</option>`
);
}
$
(
"
#tipe_point_2_b_e
"
).
change
(
function
()
{
...
...
@@ -7284,7 +7288,7 @@
var
data_po
=
data
[
'
result
'
][
i
][
1
];
console
.
log
(
data_id
)
console
.
log
(
data_po
)
var
data_kab
=
`<option value="`
+
data_id
+
`">`
+
data_po
+
`</option>`
;
var
data_kab
=
`<option value="`
+
data_id
+
`">`
+
data_po
+
`</option>`
;
data_all_kab
.
push
(
data_kab
)
};
$
(
'
#tipe_point_3_b_e
'
).
html
(
`<option value="null" selected disabled>-- Pilih Point --</option>`
+
data_all_kab
);
...
...
@@ -7294,17 +7298,17 @@
var
tipe3
=
$
(
'
#tipe333
'
).
val
();
var
tipe4
=
$
(
'
#tipe444
'
).
val
();
if
(
tipe3
==
'
null
'
)
{
$
(
'
#tipe_point_3_b_e
'
).
html
(
`<option value="null" selected disabled>-- Pilih Point --</option>`
);
}
else
{
$
(
'
#tipe_point_3_b_e
'
).
html
(
`<option value="`
+
tipe3
+
`" selected>`
+
tipe4
+
`</option>`
);
}
else
{
$
(
'
#tipe_point_3_b_e
'
).
html
(
`<option value="`
+
tipe3
+
`" selected>`
+
tipe4
+
`</option>`
);
}
var
map_edit
=
new
L
.
map
(
'
map-edit
'
,
{
editable
:
true
,
zoomControl
:
false
,
drawControl
:
true
editable
:
true
,
zoomControl
:
false
,
drawControl
:
true
}).
setView
([
-
2
,
118
],
5
);
mapss
=
L
.
tileLayer
(
'
https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}
'
,
{
...
...
@@ -7591,7 +7595,7 @@
polygigi
=
[
lop_poly_edit
[
i
][
1
],
lop_poly_edit
[
i
][
0
]]
list_poly_edit
.
push
(
polygigi
);
};
polylyly
=
L
.
polygon
(
list_poly_edit
).
addTo
(
map_bang
)
polylyly
.
enableEdit
();
var
hasil
=
(
JSON
.
stringify
(
polylyly
.
toGeoJSON
()))
...
...
@@ -7748,5 +7752,4 @@
}
});
};
</script>
{% include 'includes/insert.html' %}
\ No newline at end of file
</script>
\ No newline at end of file
templates/includes/js-o.html
View file @
86c68770
...
...
@@ -2027,9 +2027,9 @@
$
(
"
.nama_keterangan
"
).
html
(
feature
.
legend
.
f2
)
$
(
"
.isi_keterangan
"
).
html
(
`
<input type="text" name="id
tuplah" id="idtuplah
" class="hidden" value="">
<input type="text" name="id
jalan" id="idjalan
" class="hidden" value="">
<input type="text" name="coordinate
tuplah" id="coordinatetuplah
" class="hidden" value="">
<input type="text" name="coordinate
jalan" id="coordinatejalan
" class="hidden" value="">
<div class="col-md-6">
<div>
...
...
@@ -3463,4 +3463,766 @@
});
}
});
</script>
<script>
//klik kanan begin
map
.
on
(
'
contextmenu
'
,
function
(
e
)
{
$
(
"
#modal_option_create
"
).
modal
(
"
show
"
);
$
(
"
#map-create-all
"
).
remove
();
$
(
"
.btn_create_jalan
"
).
click
(
function
()
{
$
(
"
#modal__create
"
).
modal
(
"
show
"
);
$
(
"
.title-create
"
).
html
(
"
Create Jalan
"
)
$
(
"
.tombol_action_create
"
).
html
(
`<input type="button" id="create-jal" value="Create" style="z-index: 1000;position:relative;">`
)
$
(
"
.tab_1
"
).
html
(
"
Koordinat
"
)
$
(
"
.tab_2
"
).
html
(
"
Informasi Jalan
"
)
$
(
"
.tombol_save_create
"
).
html
(
`<input type="button" class="btn btn-primary" id="create_save_jalan" value="SAVE" style="margin-right:30px;">
<input type="text" name="poly_create" class="hidden" id="poly_create_jalan" value="">`
)
$
(
"
#koordinatjalan
"
).
html
(
`
<div class="form-group">
<div id="map-create-all" style="height: 300px;">
<div class="tombol_action_create">
<input type="button" id="create-jal" value="Create" style="z-index: 1000;position:relative;">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" style="margin-top:10px">Image</label>
<div class="col-lg-9" style="margin-top:10px">
<input type="file" id="img_jalan" name="images[]" multiple accept="image/jpg,image/png,image/jpeg,image/gif">
</div>
</div>
</div>`
)
$
(
"
#informasi_create
"
).
html
(
`
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-4 control-label lbl-top" style="margin-top: 15px;">Nama Jalan</label>
<div class="col-lg-8">
<input id="nama_jalan_create" type="text" class="form-control" value="" required>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-4 control-label lbl-top" style="margin-top: 15px;">Panjang Jalan (m)</label>
<div class="col-lg-8">
<input id="panjang_jalan_create" type="text" class="form-control" value="" required>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-4 control-label lbl-top" style="margin-top: 15px;">Lebar Jalan (m)</label>
<div class="col-lg-8">
<input id="lebar_jalan_create" type="text" class="form-control" value="" required>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-4 control-label lbl-top" style="margin-top: 15px;">Tipe Jalan</label>
<div class="col-lg-8">
<input id="tipe_jalan_create" type="text" class="form-control" value="" required>
</div>
</div>
</div>
`
);
var
map_create_all
=
L
.
map
(
'
map-create-all
'
,
{
editable
:
true
,
zoomControl
:
false
,
drawControl
:
true
}).
setView
([
e
.
latlng
.
lat
,
e
.
latlng
.
lng
],
20
);
L
.
tileLayer
(
'
https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}
'
,
{
maxZoom
:
22
,
minZoom
:
4
,
}).
addTo
(
map_create_all
);
setTimeout
(
function
()
{
map_create_all
.
invalidateSize
();
},
500
);
var
lineDraweredit
=
new
L
.
Draw
.
Polyline
(
map_create_all
,
polygon_options
);
lineDraweredit
.
on
(
"
click
"
,
function
(
event
)
{
shapecoords
.
innerHTML
=
event
.
latlng
.
toString
();
map_create_all
.
fire
(
"
click
"
,
event
);
// Trigger a map click as well.
});
map_create_all
.
on
(
'
draw:created
'
,
function
(
e
)
{
var
type
=
e
.
layerType
,
layer
=
e
.
layer
;
layer
.
options
.
color
=
'
yellow
'
;
layer
.
options
.
weight
=
10
;
var
koordina
=
""
if
(
type
===
'
polyline
'
)
{
var
tempLatLng
=
null
;
var
totalDistance
=
0.00000
;
$
.
each
(
e
.
layer
.
_latlngs
,
function
(
i
,
latlng
)
{
if
(
tempLatLng
==
null
)
{
tempLatLng
=
latlng
;
return
;
}
totalDistance
+=
tempLatLng
.
distanceTo
(
latlng
);
tempLatLng
=
latlng
;
});
e
.
layer
.
bindPopup
((
totalDistance
).
toFixed
(
2
)
+
'
meter
'
);
e
.
layer
.
openPopup
();
$
(
"
#panjang_jalan_create
"
).
val
((
totalDistance
).
toFixed
(
2
)
+
'
meter
'
);
}
$
(
"
#poly_create_jalan
"
).
val
(
JSON
.
stringify
(
layer
.
toGeoJSON
()));
layer
.
addTo
(
map_create_all
);
});
$
(
"
#create-jal
"
).
click
(
function
()
{
lineDraweredit
.
enable
();
})
$
(
"
#map-create-all>div.leaflet-control-container>div.leaflet-top.leaflet-left>div>div>div
"
).
css
(
"
display
"
,
"
none
"
)
$
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-top.leaflet-left > div
"
).
css
(
"
display
"
,
"
none
"
)
})
$
(
"
.btn_create_bangunan
"
).
click
(
function
()
{
$
(
"
#modal__create
"
).
modal
(
"
show
"
);
$
(
"
.title-create
"
).
html
(
"
Create Bangunan
"
)
$
(
"
.tombol_action_create
"
).
html
(
`<input type="button" id="create" value="Create" style="z-index: 1000;position:relative;">`
)
$
(
"
.tab_1
"
).
html
(
"
Koordinat
"
)
$
(
"
.tab_2
"
).
html
(
"
Informasi Bangunan
"
)
$
(
"
.tombol_save_create
"
).
html
(
`<input type="button" class="btn btn-primary" id="create_save_bangunan" value="SAVE" style="margin-right:30px;">
<input type="text" name="poly_create" class="hidden" id="poly_create_bangunan" value="">`
)
$
(
"
#koordinatjalan
"
).
html
(
`
<div class="form-group">
<div id="map-create-all" style="height: 300px;">
<div class="tombol_action_create">
<input type="button" id="create" value="Create" style="z-index: 1000;position:relative;">
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label" style="margin-top:10px">Image</label>
<div class="col-lg-9" style="margin-top:10px">
<input type="file" id="img_bangunan" name="images[]" multiple accept="image/jpg,image/png,image/jpeg,image/gif">
</div>
</div>
</div>`
)
$
(
"
#informasi_create
"
).
html
(
`
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Nama Bangunan</label>
<div class="col-lg-9">
<input id="name_create" type="text" class="form-control" value="" required>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Jenis Bangunan</label>
<div class="col-lg-9">
<select style="border-bottom: 1px solid rgb(83, 83, 83) !important;" id="tipe_point_b" data-placeholder="select point.." class="select-size-md">
<option value="null" selected disabled>-- Pilih Jenis Point --</option>
<option value="bangunan">Bangunan Biasa</option>
<option value="kantor_administrasi">Kantor Administrasi</option>
<option value="layanan_kesehatan">Layanan Kesehatan</option>
<option value="puskesmas">Puskesmas</option>
<option value="rumah_sakit">Rumah Sakit</option>
<option value="sarana_ibadah">Sarana Ibadah</option>
<option value="sarana_pendidikan">Sarana Pendidikan</option>
<option value="spbu">SPBU</option>
<option value="stasiun">Stasiun</option>
<option value="terminal_bus">Terminal Bus</option>
<option value="cagar_budaya">Cagar Budaya dan Tempat Wisata</option>
<option value="gardu_listrik">Gardu Listrik</option>
</select>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Tipe Bangunan</label>
<div class="col-lg-9">
<select style="border-bottom: 1px solid rgb(83, 83, 83) !important;width: 220px;" id="tipe_point_2_b" data-placeholder="select point.." class="select-size-md">
<option value="null" selected disabled>-- Pilih Tipe Point --</option>
</select>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Nama Point</label>
<div class="col-lg-9">
<select style="border-bottom: 1px solid rgb(83, 83, 83) !important;width: 220px;" id="tipe_point_3_b" data-placeholder="select point.." class="select-size-md">
<option value="null" selected disabled>-- Pilih Point --</option>
</select>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Informasi Bangunan</label>
<div class="col-lg-9">
<input id="info_create" type="text" class="form-control" value="" placeholder="Rumah/Gedung/Ruko/Pabrik/dsb" required>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Alamat</label>
<div class="col-lg-9">
<input id="alamat_create" type="text" class="form-control" value="" placeholder="cth : Jl. Contoh Rt 005/01 No.01" required>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Luas Bangunan</label>
<div class="col-lg-6">
<input id="luas_bangunan_create" type="text" class="form-control" value="" required>
</div>
<div class="col-lg-3">
<select id="satuan_luas_bangunan" >
<option>m2</option>
</select>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top">Luas Tanah</label>
<div class="col-lg-6">
<input id="luas_tanah_create" type="text" class="form-control" value="" required>
</div>
<div class="col-lg-3">
<select id="satuan_luas_tanah">
<option>m2</option>
</select>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top">Tinggi Bangunan</label>
<div class="col-lg-6">
<input id="tinggi_bangunan_create" type="text" class="form-control" value="" required>
</div>
<div class="col-lg-3">m</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top">Jumlah Lantai</label>
<div class="col-lg-9">
<input id="lantai" type="text" class="form-control" value="" placeholder="Estimasi Per Lantai = 3m" required>
</div>
</div>
</div>
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" >Pemilik</label>
<div class="col-lg-9">
<input id="pemilik_create" type="text" class="form-control" value="" placeholder="cth : Ali Budiman, S.Si." required>
</div>
</div>
</div>
`
);
var
map_create_all
=
L
.
map
(
'
map-create-all
'
,
{
editable
:
true
,
zoomControl
:
false
,
drawControl
:
true
}).
setView
([
e
.
latlng
.
lat
,
e
.
latlng
.
lng
],
20
);
L
.
tileLayer
(
'
https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}
'
,
{
maxZoom
:
22
,
minZoom
:
4
,
}).
addTo
(
map_create_all
);
setTimeout
(
function
()
{
map_create_all
.
invalidateSize
();
},
500
);
$
(
'
#create
'
).
click
(
function
()
{
map_create_all
.
enable
();
});
var
Marker
=
{};
var
Poly
=
{};
map_create_all
.
on
(
L
.
Draw
.
Event
.
CREATED
,
function
(
e
)
{
var
layer
=
e
.
layer
;
$
(
"
#poly_create_bangunan
"
).
empty
();
var
type
=
e
.
layerType
;
var
layer
=
e
.
layer
;
var
shape
=
layer
.
toGeoJSON
();
let
geoShape
=
shape
.
geometry
.
coordinates
[
0
];
let
kordinat
=
""
;
for
(
j
in
geoShape
)
{
kordinat
+=
geoShape
[
j
][
0
]
+
'
'
+
geoShape
[
j
][
1
];
if
(
j
<=
(
geoShape
.
length
-
2
))
{
kordinat
+=
'
,
'
;
}
}
window
.
thisBaseDrawPolygonLayer
=
layer
;
$
(
"
#poly_create_bangunan
"
).
val
(
JSON
.
stringify
(
kordinat
));
});
polygon_options
=
{
showArea
:
false
,
shapeOptions
:
{
stroke
:
true
,
color
:
'
#6e83f0
'
,
weight
:
1.5
,
opacity
:
2
,
fill
:
false
,
fillColor
:
null
,
//same as color by default
clickable
:
true
}
}
var
polygonDraweredit
=
new
L
.
Draw
.
Polygon
(
map_create_all
,
polygon_options
);
map_create_all
.
on
(
"
click
"
,
function
(
event
)
{
shapecoords
.
innerHTML
=
event
.
latlng
.
toString
();
map_create_all
.
fire
(
"
click
"
,
event
);
// Trigger a map click as well.
});
map_create_all
.
on
(
'
draw:created
'
,
function
(
e
)
{
var
type
=
e
.
layerType
,
layer
=
e
.
layer
;
var
lay
=
layer
.
addTo
(
map_create_all
);
Poly
=
lay
;
});
$
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-top.leaflet-left > div
"
).
css
(
"
display
"
,
"
none
"
)
});
$
(
"
.btn_create_point
"
).
click
(
function
()
{
$
(
"
#modal__create
"
).
modal
(
"
show
"
);
$
(
"
.title-create
"
).
html
(
"
Create Point
"
)
$
(
"
.tombol_action_create
"
).
html
(
``
)
$
(
"
.tab_1
"
).
html
(
"
Koordinat
"
)
$
(
"
.tab_2
"
).
html
(
"
Informasi Point
"
)
$
(
"
.tombol_save_create
"
).
html
(
`<input type="button" class="btn btn-primary" id="btnsavepoint" value="SAVE" style="margin-right:30px;">
<input type="text" name="poly_create_point" class="hidden" id="poly_create_point" value="">`
)
$
(
"
#koordinatjalan
"
).
html
(
`
<div class="form-group">
<div id="map-create-all" style="height: 300px;">
<!-- <div class="tombol_action_create">
<input type="button" class="leaflet-draw-draw-marker" value="Create" style="z-index: 1000;position:relative;">
</div> -->
</div>
<div class="form-group">
<label class="col-lg-2 control-label" style="margin-top:10px">Image</label>
<div class="col-lg-9" style="margin-top:10px">
<input type="file" id="gambar_pitik" name="images[]" multiple accept="image/jpg,image/png,image/jpeg,image/gif">
</div>
</div>
</div>`
)
$
(
"
#informasi_create
"
).
html
(
`
<div class="row" style="margin-top: 15px;">
<div class="form-group">
<label class="col-lg-3 control-label lbl-top" style="margin-top: 15px;">Nama Point</label>
<div class="col-lg-9">
<input id="name_create_point" type="text" class="form-control" value="" required>
</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;">Jenis Point</label>
<div class="col-lg-9">
<select style="border-bottom: 1px solid rgb(83, 83, 83) !important;" id="tipe_point" data-placeholder="select point.." class="select-size-md">
<option value="null" selected disabled>-- Pilih Jenis Point --</option>
<option value="kantor_administrasi">Kantor Administrasi</option>
<option value="layanan_kesehatan">Layanan Kesehatan</option>
<option value="puskesmas">Puskesmas</option>
<option value="rumah_sakit">Rumah Sakit</option>
<option value="sarana_ibadah">Sarana Ibadah</option>
<option value="sarana_pendidikan">Sarana Pendidikan</option>
<option value="spbu">SPBU</option>
<option value="stasiun">Stasiun</option>
<option value="terminal_bus">Terminal Bus</option>
<option value="cagar_budaya">Cagar Budaya dan Tempat Wisata</option>
<option value="gardu_listrik">Gardu Listrik</option>
</select>
</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;">Tipe Point</label>
<div class="col-lg-9">
<select style="border-bottom: 1px solid rgb(83, 83, 83) !important;width: 220px;" id="tipe_point_2" data-placeholder="select point.." class="select-size-md">
<option value="null" selected disabled>-- Pilih Tipe Point --</option>
</select>
</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>
<div class="col-lg-9">
<input id="alamat_create_point" type="text" class="form-control" value="" placeholder="cth : Jl. Contoh Rt 005/01 No.01" required>
</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;">Luas Tanah</label>
<div class="col-lg-6">
<input id="luas_tanah_point" type="text" class="form-control" value="" required>
</div>
<div class="col-lg-3">
<select id="satuan_luas_tanah" style="margin-top: 15px;">
<option>m2</option>
</select>
</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;">Pimpinan</label>
<div class="col-lg-9">
<input id="pemilik_point" type="text" class="form-control" value="" placeholder="cth : Ali Budiman, S.Si." required>
</div>
</div>
</div>
`
);
var
map_create_all
=
L
.
map
(
'
map-create-all
'
,
{
editable
:
true
,
zoomControl
:
false
,
drawControl
:
true
}).
setView
([
e
.
latlng
.
lat
,
e
.
latlng
.
lng
],
20.5
);
L
.
tileLayer
(
'
https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}
'
,
{
maxZoom
:
22
,
minZoom
:
4
,
}).
addTo
(
map_create_all
);
setTimeout
(
function
()
{
map_create_all
.
invalidateSize
();
},
500
);
$
(
"
.leaflet-draw-draw-marker
"
).
html
(
'
<span>Create</span>
'
)
var
drawControl
=
new
L
.
Control
.
Draw
(
drawPluginOptions
);
map_create_all
.
addControl
(
drawControl
);
var
editableLayers
=
new
L
.
FeatureGroup
();
map_create_all
.
addLayer
(
editableLayers
);
// define custom marker
var
MyCustomMarker
=
L
.
Icon
.
extend
({
options
:
{
shadowUrl
:
null
,
iconAnchor
:
new
L
.
Point
(
12
,
12
),
iconSize
:
new
L
.
Point
(
24
,
24
),
}
});
var
drawPluginOptions
=
{
position
:
'
topright
'
,
draw
:
{
marker
:
{
title
:
"
soyel1
"
,
icon
:
new
MyCustomMarker
()
},
marker
:
true
},
edit
:
{
featureGroup
:
editableLayers
,
//REQUIRED!!
remove
:
true
}
};
var
drawControl
=
new
L
.
Control
.
Draw
(
drawPluginOptions
);
map_create_all
.
addControl
(
drawControl
);
var
editableLayers
=
new
L
.
FeatureGroup
();
map_create_all
.
addLayer
(
editableLayers
);
map_create_all
.
on
(
'
draw:created
'
,
function
(
e
)
{
var
type
=
e
.
layerType
,
layer
=
e
.
layer
;
editableLayers
.
addLayer
(
layer
);
$
(
"
#poly_create_point
"
).
val
(
JSON
.
stringify
(
layer
.
toGeoJSON
()));
$
(
"
#modal_point
"
).
modal
()
map
.
closePopup
();
});
$
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-top.leaflet-left > div:nth-child(2) > div > div
"
).
css
(
"
display
"
,
"
none
"
)
$
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-top.leaflet-right
"
).
css
(
"
display
"
,
"
none
"
)
$
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-top.leaflet-left > div:nth-child(1) > div > div > a.leaflet-draw-draw-polyline
"
).
css
(
"
display
"
,
"
none
"
)
$
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-top.leaflet-left > div:nth-child(2) > div > div > a.leaflet-draw-draw-marker
"
).
css
(
"
display
"
,
"
block!important
"
)
})
$
(
"
#tipe_point
"
).
change
(
function
()
{
var
tipe
=
$
(
this
).
val
();
$
.
ajax
({
url
:
"
{% url 'api:change-tipe' %}
"
,
data
:
{
'
tipe
'
:
tipe
},
dataType
:
'
json
'
,
success
:
function
(
data
)
{
console
.
log
(
data
)
var
data_all_kab
=
[]
for
(
var
i
=
0
;
i
<
data
[
'
result
'
].
length
;
i
++
)
{
var
data_k
=
data
[
'
result
'
][
i
][
0
];
var
data_kab
=
`<option value="`
+
data_k
+
`">`
+
data_k
+
`</option>`
;
data_all_kab
.
push
(
data_kab
)
};
$
(
'
#tipe_point_2
'
).
html
(
`<option value="null" selected disabled>-- Pilih Tipe Point --</option>`
+
data_all_kab
);
}
});
});
$
(
"
#tipe_point_b
"
).
change
(
function
()
{
var
tipe
=
$
(
this
).
val
();
$
.
ajax
({
url
:
"
{% url 'api:change-tipe' %}
"
,
data
:
{
'
tipe
'
:
tipe
},
dataType
:
'
json
'
,
success
:
function
(
data
)
{
var
data_all_kab
=
[]
for
(
var
i
=
0
;
i
<
data
[
'
result
'
].
length
;
i
++
)
{
var
data_k
=
data
[
'
result
'
][
i
][
0
];
console
.
log
(
data_k
)
var
data_kab
=
`<option value="`
+
data_k
+
`">`
+
data_k
+
`</option>`
;
data_all_kab
.
push
(
data_kab
)
};
$
(
'
#tipe_point_2_b
'
).
html
(
`<option value="null" selected disabled>-- Pilih Tipe Point --</option>`
+
data_all_kab
);
}
});
});
$
(
"
#tipe_point_2_b
"
).
change
(
function
()
{
var
jenis
=
$
(
this
).
val
();
var
tipx
=
$
(
"
#tipe_point_b
"
).
val
();
$
.
ajax
({
url
:
"
{% url 'api:change-jenis' %}
"
,
data
:
{
'
tipe
'
:
tipx
,
'
jenis
'
:
jenis
},
dataType
:
'
json
'
,
success
:
function
(
data
)
{
console
.
log
(
data
)
var
data_all_kab
=
[]
for
(
var
i
=
0
;
i
<
data
[
'
result
'
].
length
;
i
++
)
{
var
data_id
=
data
[
'
result
'
][
i
][
0
];
var
data_po
=
data
[
'
result
'
][
i
][
1
];
var
data_kab
=
`<option value="`
+
data_id
+
`">`
+
data_po
+
`</option>`
;
data_all_kab
.
push
(
data_kab
)
};
$
(
'
#tipe_point_3_b
'
).
html
(
`<option value="null" selected disabled>-- Pilih Point --</option>`
+
data_all_kab
);
}
});
});
});
$
(
document
).
on
(
"
click
"
,
"
#create_save_jalan
"
,
function
(
e
)
{
data
=
new
FormData
()
data
.
append
(
"
gambar
"
,
$
(
"
input[id^='img_jalan']
"
)[
0
].
files
[
0
]);
data
.
append
(
"
polyline
"
,
$
(
"
#poly_create_jalan
"
).
val
())
data
.
append
(
"
name_jalan
"
,
$
(
"
#nama_jalan_create
"
).
val
())
data
.
append
(
"
panjang_jalan
"
,
$
(
"
#panjang_jalan_create
"
).
val
())
data
.
append
(
"
lebar_jalan
"
,
$
(
"
#lebar_jalan_create
"
).
val
())
data
.
append
(
"
tipe_jalan
"
,
$
(
"
#tipe_jalan_create
"
).
val
())
$
.
ajax
({
url
:
"
{% url 'api:create-jalan' %}
"
,
data
:
data
,
dataType
:
'
json
'
,
type
:
'
POST
'
,
processData
:
false
,
contentType
:
false
,
success
:
function
(
data
)
{
let
response
=
data
if
(
response
.
status
==
0
)
{
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
success
"
,
icon
:
"
success
"
,
confirmButtonColor
:
"
#00BCD4
"
})
}
else
{
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
warning
"
,
icon
:
"
error
"
,
confirmButtonColor
:
"
#00BCD4
"
})
}
map
.
closePopup
();
}
});
});
$
(
document
).
on
(
"
click
"
,
"
#create_save_bangunan
"
,
function
(
e
)
{
var
polygin
=
$
(
'
#poly_create_bangunan
'
).
val
();
var
name_poly
=
$
(
'
#name_create
'
).
val
();
var
tdb
=
$
(
'
#tipe_point_b
'
).
val
();
var
remark
=
$
(
'
#tipe_point_2_b
'
).
val
();
var
poin_id
=
$
(
'
#tipe_point_3_b
'
).
val
();
var
napo
=
$
(
"
#tipe_point_3_b option:selected
"
).
text
();
var
info_poly
=
$
(
'
#info_create
'
).
val
();
var
alamat_poly
=
$
(
'
#alamat_create
'
).
val
();
var
lb_poly
=
$
(
'
#luas_bangunan_create
'
).
val
();
var
lt_poly
=
$
(
'
#luas_tanah_create
'
).
val
();
var
tb_poly
=
$
(
'
#tinggi_bangunan_create
'
).
val
();
var
ltbang
=
$
(
'
#lantai
'
).
val
();
var
mpu_poly
=
$
(
'
#pemilik_create
'
).
val
();
$
.
ajax
({
url
:
"
{% url 'api:c_bangunan' %}
"
,
data
:
{
'
polygon
'
:
polygin
,
'
name
'
:
name_poly
,
'
tipedb
'
:
tdb
,
'
poin_id
'
:
poin_id
,
'
nama_po
'
:
napo
,
'
remark
'
:
remark
,
'
info
'
:
info_poly
,
'
alamat
'
:
alamat_poly
,
'
lb
'
:
lb_poly
,
'
lt
'
:
lt_poly
,
'
tb
'
:
tb_poly
,
'
ltb
'
:
ltbang
,
'
pemilik
'
:
mpu_poly
},
dataType
:
'
json
'
,
// type: 'POST',
// processData: false,
// contentType: false,
success
:
function
(
data
)
{
let
response
=
data
if
(
response
.
status
==
0
)
{
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
success
"
,
icon
:
"
success
"
,
confirmButtonColor
:
"
#00BCD4
"
})
}
else
{
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
warning
"
,
icon
:
"
error
"
,
confirmButtonColor
:
"
#00BCD4
"
})
}
map
.
closePopup
();
}
});
});
$
(
document
).
on
(
"
click
"
,
"
#btnsavepoint
"
,
function
(
e
)
{
data
=
new
FormData
()
data
.
append
(
"
gambar
"
,
$
(
"
input[id^='gambar_pitik']
"
)[
0
].
files
[
0
]);
data
.
append
(
"
point
"
,
$
(
"
#poly_create_point
"
).
val
())
data
.
append
(
"
name_create_point
"
,
$
(
"
#name_create_point
"
).
val
())
data
.
append
(
"
tipe_point
"
,
$
(
"
#tipe_point
"
).
val
())
data
.
append
(
"
info_create_point
"
,
$
(
"
#tipe_point_2
"
).
val
())
data
.
append
(
"
alamat_create_point
"
,
$
(
"
#alamat_create_point
"
).
val
())
data
.
append
(
"
luas_tanah_point
"
,
$
(
"
#luas_tanah_point
"
).
val
())
data
.
append
(
"
pemilik_point
"
,
$
(
"
#pemilik_point
"
).
val
())
$
.
ajax
({
url
:
"
{% url 'api:create-point' %}
"
,
data
:
data
,
dataType
:
'
json
'
,
type
:
'
POST
'
,
processData
:
false
,
contentType
:
false
,
success
:
function
(
data
)
{
let
response
=
data
if
(
response
.
status
==
0
)
{
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
success
"
,
icon
:
"
success
"
,
confirmButtonColor
:
"
#00BCD4
"
},
function
()
{
$
(
"
#modal_point
"
).
css
(
'
display
'
,
'
none
'
);
})
}
else
{
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
warning
"
,
icon
:
"
error
"
,
confirmButtonColor
:
"
#00BCD4
"
})
}
map
.
closePopup
();
}
});
});
</script>
\ No newline at end of file
templates/includes/modal.html
View file @
86c68770
...
...
@@ -320,111 +320,6 @@
<div
class=
"modal fade"
id=
"modal_tampak"
>
</div>
<div
id=
"modal_point"
class=
"modal fade"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-info"
style=
"background-color: #40777c;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h6
class=
"modal-title"
>
Insert Point
</h6>
</div>
<input
type=
"text"
name=
"poly_create_point"
class=
"hidden"
id=
"poly_create_point"
value=
""
>
<div
class=
"modal-body"
style=
"max-height: 450px;overflow-y: auto;"
>
<div
class=
"row"
style=
"margin-top: 15px;"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label"
style=
"margin-top:10px"
>
Image
</label>
<div
class=
"col-lg-9"
style=
"margin-top:10px"
>
<input
type=
"file"
id=
"gambar_pitik"
name=
"images[]"
multiple
accept=
"image/jpg,image/png,image/jpeg,image/gif"
>
</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;"
>
Nama Point
</label>
<div
class=
"col-lg-9"
>
<input
id=
"name_create_point"
type=
"text"
class=
"form-control"
value=
""
required
>
</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;"
>
Jenis Point
</label>
<div
class=
"col-lg-9"
>
<select
style=
"border-bottom: 1px solid rgb(83, 83, 83) !important;"
id=
"tipe_point"
data-placeholder=
"select point.."
class=
"select-size-md"
>
<option
value=
"null"
selected
disabled
>
-- Pilih Jenis Point --
</option>
<option
value=
"kantor_administrasi"
>
Kantor Administrasi
</option>
<option
value=
"layanan_kesehatan"
>
Layanan Kesehatan
</option>
<option
value=
"puskesmas"
>
Puskesmas
</option>
<option
value=
"rumah_sakit"
>
Rumah Sakit
</option>
<option
value=
"sarana_ibadah"
>
Sarana Ibadah
</option>
<option
value=
"sarana_pendidikan"
>
Sarana Pendidikan
</option>
<option
value=
"spbu"
>
SPBU
</option>
<option
value=
"stasiun"
>
Stasiun
</option>
<option
value=
"terminal_bus"
>
Terminal Bus
</option>
<option
value=
"cagar_budaya"
>
Cagar Budaya dan Tempat Wisata
</option>
<option
value=
"gardu_listrik"
>
Gardu Listrik
</option>
</select>
</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;"
>
Tipe Point
</label>
<div
class=
"col-lg-9"
>
<select
style=
"border-bottom: 1px solid rgb(83, 83, 83) !important;width: 220px;"
id=
"tipe_point_2"
data-placeholder=
"select point.."
class=
"select-size-md"
>
<option
value=
"null"
selected
disabled
>
-- Pilih Tipe Point --
</option>
</select>
</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>
<div
class=
"col-lg-9"
>
<input
id=
"alamat_create_point"
type=
"text"
class=
"form-control"
value=
""
placeholder=
"cth : Jl. Contoh Rt 005/01 No.01"
required
>
</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;"
>
Luas Tanah
</label>
<div
class=
"col-lg-6"
>
<input
id=
"luas_tanah_point"
type=
"text"
class=
"form-control"
value=
""
required
>
</div>
<div
class=
"col-lg-3"
>
<select
id=
"satuan_luas_tanah"
style=
"margin-top: 15px;"
>
<option>
m2
</option>
</select>
</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;"
>
Pimpinan
</label>
<div
class=
"col-lg-9"
>
<input
id=
"pemilik_point"
type=
"text"
class=
"form-control"
value=
""
placeholder=
"cth : Ali Budiman, S.Si."
required
>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-link"
data-dismiss=
"modal"
>
Close
</button>
<button
type=
"button"
id=
"btnsavepoint"
class=
"btn btn-info"
>
Save
</button>
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"modalsearch3d"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal-dialog modal-xs"
>
<div
class=
"modal-content"
>
...
...
@@ -685,4 +580,92 @@
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"modal_option_create"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal-dialog modal-xs"
style=
"width: 350px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
Pilih jenis create
</h4>
</div>
<div
class=
"modal-body"
>
<fieldset>
<div
class=
"row"
>
<div
class=
"col-md-4 text-center"
>
<a
href=
"#"
class=
"btn btn_create_jalan"
>
<div>
<img
src=
"{% static 'img/icon-1/Vectorjalan.svg' %}"
alt=
""
style=
"width: 35px;
height: 35px;"
>
</div>
<div
style=
"margin-top: 10px;"
>
<span>
Jalan
</span>
</div>
</a>
</div>
<div
class=
"col-md-4 text-center"
>
<a
href=
"#"
class=
"btn btn_create_bangunan"
>
<div>
<img
src=
"{% static 'img/icon-1/Buildingsbangunan.svg' %}"
alt=
""
style=
"width: 35px;
height: 35px;"
>
</div>
<div
style=
"margin-top: 10px;"
>
<span>
Bangunan
</span>
</div>
</a>
</div>
<div
class=
"col-md-4 text-center"
>
<a
href=
"#"
class=
"btn btn_create_point"
>
<div>
<img
src=
"{% static 'img/icon-1/Vectorpoint.svg' %}"
alt=
""
style=
"width: 35px;
height: 35px;"
>
</div>
<div
style=
"margin-top: 10px;"
>
<span>
Point
</span>
</div>
</a>
</div>
</div>
</fieldset>
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"modal__create"
tabindex=
"-1"
role=
"dialog"
>
<div
class=
"modal-dialog modal-md"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h5
class=
"modal-title title-create"
>
Create
</h5>
</div>
<div
class=
"modal-body"
id=
"create_all"
>
<div
class=
"tabbable"
style=
"height:450px!important;width: 560px!important;"
>
<ul
class=
"nav nav-tabs nav-tabs-bottom nav-justified"
>
<li
onclick=
"changetabs(this)"
class=
"active"
><a
href=
".koordinatjalan"
data-toggle=
"tab"
class=
"tab_1"
>
Koordinat
</a></li>
<li
onclick=
"changetabs(this)"
><a
href=
"#informasi_create"
data-toggle=
"tab"
class=
"tab_2"
>
Informasi Jalan
</a></li>
</ul>
<div
class=
"tab-content"
>
<div
class=
"tab-pane active koordinatjalan"
id=
"koordinatjalan"
>
</div>
<div
class=
"tab-pane"
id=
"informasi_create"
>
</div>
</div>
</div>
<div
class=
"tombol_save_create"
>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
templates/layout/user_layout.html
View file @
86c68770
...
...
@@ -38,7 +38,6 @@
.modal-backdrop
{
z-index
:
-1
!important
;
}
.sidebar
{
...
...
@@ -103,69 +102,66 @@
::-webkit-scrollbar-thumb:hover
{
background
:
#555
;
}
.image_area
{
position
:
relative
;
}
#uploaded_image
{
display
:
block
;
object-fit
:
cover
;
position
:
relative
;
}
#uploaded_image
{
display
:
block
;
object-fit
:
cover
;
object-position
:
center
center
;
width
:
270px
;
height
:
270px
;
}
#placelg
{
object-fit
:
cover
;
}
#placelg
{
object-fit
:
cover
;
object-position
:
center
center
;
width
:
30px
;
height
:
30px
;
}
.preview
{
overflow
:
hidden
;
width
:
160px
;
height
:
160px
;
margin
:
10px
;
border
:
1px
solid
red
;
}
.modal-lg
{
max-width
:
1000px
!important
;
}
.overlay
{
position
:
absolute
;
bottom
:
10px
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
255
,
255
,
255
,
0.5
);
overflow
:
hidden
;
height
:
0
;
transition
:
.5s
ease
;
width
:
100%
;
}
.image_area
:hover
.overlay
{
height
:
50%
;
cursor
:
pointer
;
}
.textover
{
color
:
#333
;
font-size
:
20px
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
-webkit-transform
:
translate
(
-50%
,
-50%
);
-ms-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
text-align
:
center
;
}
.preview
{
overflow
:
hidden
;
width
:
160px
;
height
:
160px
;
margin
:
10px
;
border
:
1px
solid
red
;
}
.modal-lg
{
max-width
:
1000px
!important
;
}
.overlay
{
position
:
absolute
;
bottom
:
10px
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
255
,
255
,
255
,
0.5
);
overflow
:
hidden
;
height
:
0
;
transition
:
.5s
ease
;
width
:
100%
;
}
.image_area
:hover
.overlay
{
height
:
50%
;
cursor
:
pointer
;
}
.textover
{
color
:
#333
;
font-size
:
20px
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
-webkit-transform
:
translate
(
-50%
,
-50%
);
-ms-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
text-align
:
center
;
}
</style>
</head>
...
...
@@ -212,6 +208,7 @@
<ul
class=
"dropdown-menu dropdown-menu-right"
>
{% if user.is_superuser or user.is_staff %}
<li><a
href=
"{% url 'usermanagement' %}?page=userprofile"
><i
class=
"icon-user-tie"
></i>
User Profile
</a></li>
<li><a
href=
"{% url 'usermanagement' %}"
><i
class=
"icon-user"
></i>
User Management
</a></li>
<li><a
href=
"{% url 'apps:perbaikan' %}"
><i
class=
"icon-list"
></i>
Repair
&
Renovation
</a></li>
{% endif %}
...
...
@@ -239,15 +236,13 @@
<div
class=
"sidebar-user"
>
<div
class=
"category-content"
>
<div
class=
"media"
>
{% for us in thisUser %}
{% if us.filepath %}
<a
href=
"?page=userprofile"
class=
"media-left"
><img
src=
"{% static 'img/' %}{{us.filepath}}"
class=
"img-circle img-sm"
alt=
""
></a>
{% else %}
<a
href=
"?page=userprofile"
class=
"media-left"
><img
src=
"{% static '/img/placeholder.jpg' %}"
class=
"img-circle img-sm"
alt=
""
></a>
{% endif %}
{% endfor %}
{% for us in thisUser %} {% if us.filepath %}
<a
href=
"?page=userprofile"
class=
"media-left"
><img
src=
"{% static 'img/' %}{{us.filepath}}"
class=
"img-circle img-sm"
alt=
""
></a>
{% else %}
<a
href=
"?page=userprofile"
class=
"media-left"
><img
src=
"{% static '/img/placeholder.jpg' %}"
class=
"img-circle img-sm"
alt=
""
></a>
{% endif %} {% endfor %}
<div
class=
"media-body"
>
<span
class=
"media-heading text-semibold"
>
{{user.username}}
</span>
<div
class=
"text-size-mini text-muted"
>
...
...
@@ -461,7 +456,7 @@
<div
class=
"content"
style=
"padding: 15px;"
>
<!-- Main charts -->
<!-- Sales stats -->
<div
class=
"panel panel-flat"
style=
"display: block;"
>
<div
class=
"panel-body"
>
...
...
@@ -486,25 +481,25 @@
</form>
</div>
</div>
<div
class=
"col-lg-9 col-md-6"
>
<div
class=
"panel panel-flat"
>
<div
class=
"panel-heading"
>
<h6
class=
"panel-title"
>
Informasi Profil
</h6>
</div>
<div
class=
"panel-body"
id=
"user-mahasiswa"
style=
"display:block"
>
{% for us in thisUser %}
{% for us in thisUser %}
<form
action=
"#"
>
<div
class=
"form-group"
id=
"dosormhs"
>
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<label>
Username
</label>
<input
type=
"text"
id=
"username"
class=
"form-control"
value=
"{{us.username}}"
readonly
>
<input
type=
"text"
id=
"username"
class=
"form-control"
value=
"{{us.username}}"
readonly
>
</div>
</div>
</div>
...
...
@@ -514,7 +509,7 @@
<label>
Nama Depan
</label>
<input
type=
"text"
id=
"namadepan"
class=
"form-control"
value=
"{{us.firstname}}"
readonly
>
</div>
</div>
</div>
...
...
@@ -524,7 +519,7 @@
<label>
Nama Belakang
</label>
<input
type=
"text"
id=
"namabelakang"
class=
"form-control"
value=
"{{us.lastname}}"
readonly
>
</div>
</div>
</div>
...
...
@@ -532,162 +527,162 @@
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<label>
Email
</label>
<input
type=
"text"
id=
"useremail"
class=
"form-control"
value=
"{{us.email}}"
readonly
>
<input
type=
"text"
id=
"useremail"
class=
"form-control"
value=
"{{us.email}}"
readonly
>
</div>
</div>
</div>
</form>
{% endfor %}
{% endfor %}
</div>
<div
class=
"panel-footer"
style=
"margin-top: 20px;"
>
<div
class=
"pull-right mr-5"
>
<button
type=
"button"
type=
"button"
class=
"btn btn-primary btn-labeled btn-labeled-right "
id=
'edit-profile-mhs'
data-toggle=
"modal"
data-target=
"#modal-edit-data-mhs"
>
Edit Profile
<b><i
class=
"icon-circle-right2"
></i></b></button>
<button
type=
"button"
type=
"button"
class=
"btn btn-primary btn-labeled btn-labeled-right "
id=
'edit-profile-mhs'
data-toggle=
"modal"
data-target=
"#modal-edt-password"
>
Edit Password
<b><i
class=
"icon-lock"
></i></b></button>
</div>
</div>
</div>
</div>
</div>
<!-- /form validation -->
</div>
<!-- /form validation -->
</div>
<!-- /main charts -->
</div>
<!-- /main charts -->
</div>
</div>
<!-- end content profile -->
<!-- end content profile -->
<!-- /main content -->
<!-- /main content -->
</div>
<!-- /page content -->
</div>
<!-- /page content -->
</div>
<!-- /page container -->
<div
id=
"modal_theme_info"
class=
"modal fade"
>
<div
class=
"modal-dialog md"
style=
"margin-top: 100px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-info"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
×
</button>
<h6
class=
"modal-title modstit"
>
Modal Tambah User
</h6>
</div>
<!-- /page container -->
<div
id=
"modal_theme_info"
class=
"modal fade"
>
<div
class=
"modal-dialog md"
style=
"margin-top: 100px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-info"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
×
</button>
<h6
class=
"modal-title modstit"
>
Modal Tambah User
</h6>
</div>
<div
class=
"modal-body"
style=
"max-height: 450px;overflow-y: auto;"
>
<input
type=
"hidden"
id=
"iduser"
>
<div
class=
"modal-body"
style=
"max-height: 450px;overflow-y: auto;"
>
<input
type=
"hidden"
id=
"iduser"
>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Username
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inUsername"
type=
"text"
class=
"form-control"
value=
""
required
>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Username
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inUsername"
type=
"text"
class=
"form-control"
value=
""
required
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
First Name
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inNameF"
type=
"text"
class=
"form-control"
value=
""
required
>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
First Name
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inNameF"
type=
"text"
class=
"form-control"
value=
""
required
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Last Name
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inNameL"
type=
"text"
class=
"form-control"
value=
""
required
>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Last Name
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inNameL"
type=
"text"
class=
"form-control"
value=
""
required
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Email
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inEmail"
type=
"text"
class=
"form-control"
value=
""
required
>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Email
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inEmail"
type=
"text"
class=
"form-control"
value=
""
required
>
</div>
</div>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 20px;"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label"
>
Staff
</label>
<div
class=
"col-lg-9"
>
<label
class=
"radio-inline"
>
<div
class=
"row"
style=
"margin-top: 20px;"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label"
>
Staff
</label>
<div
class=
"col-lg-9"
>
<label
class=
"radio-inline"
>
<input
type=
"radio"
class=
"styled"
value=
"true"
name=
"isStaff"
checked=
"checked"
>
Ya
</label>
<label
class=
"radio-inline"
>
<label
class=
"radio-inline"
>
<input
type=
"radio"
class=
"styled"
value=
"false"
name=
"isStaff"
>
Tidak
</label>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"form-group"
style=
"margin-top: 10px !important;"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Groups
</label>
<div
class=
"col-lg-9"
>
<select
style=
"border-bottom: 1px solid rgb(83, 83, 83) !important;"
id=
"select_group"
data-placeholder=
"select group.."
class=
"select-size-xs"
>
<div
class=
"row"
>
<div
class=
"form-group"
style=
"margin-top: 10px !important;"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Groups
</label>
<div
class=
"col-lg-9"
>
<select
style=
"border-bottom: 1px solid rgb(83, 83, 83) !important;"
id=
"select_group"
data-placeholder=
"select group.."
class=
"select-size-xs"
>
<option></option>
</select>
</div>
</div>
</div>
</div>
</div>
<hr>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-link"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-info"
id=
"saveuser"
>
Save changes
</button>
</div>
<hr>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-link"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-info"
id=
"saveuser"
>
Save changes
</button>
</div>
</div>
</div>
</div>
</div>
<div
id=
"modal-edit-data-mhs"
role=
"dialog"
class=
"modal fade"
tabindex=
"-9999999"
style=
"margin-top:5%;"
>
<div
class=
"modal-dialog modal-md"
role=
"dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-primary"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h6
class=
"modal-title"
>
Edit Profile
</h6>
</div>
<div
class=
"modal-body"
>
<div
class=
"alert alert-danger"
id=
"notificationsprop"
style=
"display: none"
>
<div
id=
"modal-edit-data-mhs"
role=
"dialog"
class=
"modal fade"
tabindex=
"-9999999"
style=
"margin-top:5%;"
>
<div
class=
"modal-dialog modal-md"
role=
"dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-primary"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h6
class=
"modal-title"
>
Edit Profile
</h6>
</div>
<form
class=
"form-horizontal"
id=
"formmen"
method=
"post"
enctype=
"multipart/form-data"
>
<div
class=
"panel panel-flat"
>
<div
class=
"panel-body"
style=
"margin: 20px !important"
>
<div
class=
"modal-body"
>
<div
class=
"alert alert-danger"
id=
"notificationsprop"
style=
"display: none"
>
</div>
<form
class=
"form-horizontal"
id=
"formmen"
method=
"post"
enctype=
"multipart/form-data"
>
<div
class=
"panel panel-flat"
>
<div
class=
"panel-body"
style=
"margin: 20px !important"
>
<div
class=
"row"
>
{% for us in thisUser %}
<input
type=
"text"
id=
"iduseredt"
value=
"{{us.id}}"
hidden
>
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Username :
</label>
<input
type=
"text"
id=
"usernamepedt"
class=
"form-control"
value=
"{{us.username}}"
readonly
>
</div>
<!-- <div class="col-md-6">
<label class="control-label"> Password saat ini :</label>
<input type="text" id="nama-mhs-edt" class="form-control" >
</div> -->
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Nama Depan:
</label>
<input
type=
"text"
id=
"firstnameedt"
class=
"form-control"
value=
"{{us.firstname}}"
>
...
...
@@ -697,293 +692,292 @@
<label class="control-label"> Password baru :</label>
<input type="text" id="nama-mhs-edt" class="form-control" >
</div> -->
</div>
<div
class=
"form-group"
>
</div>
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Nama Belakang:
</label>
<input
type=
"text"
id=
"lastnameedt"
class=
"form-control"
value=
"{{us.lastname}}"
>
</div>
<!-- <div class="col-md-6">
<label class="control-label"> Ulangi password baru :</label>
<input type="text" id="nama-mhs-edt" class="form-control" >
</div> -->
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Email :
</label>
<input
type=
"text"
id=
"emailedts"
class=
"form-control"
value=
"{{us.email}}"
>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
class=
"btn btn-lg btn-success"
id=
"save-edit-profile"
>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
class=
"btn btn-lg btn-success"
id=
"save-edit-profile"
>
<i
class=
"icon-checkmark2"
></i>
Simpan
</button>
<button
class=
"btn btn-lg"
data-dismiss=
"modal"
>
<button
class=
"btn btn-lg"
data-dismiss=
"modal"
>
<i
class=
"icon-cross3"
></i>
Batal
</button>
</div>
</div>
</div>
</div>
</div>
<div
id=
"modal-edt-password"
role=
"dialog"
class=
"modal fade"
tabindex=
"-9999999"
style=
"margin-top:5%;"
>
<div
class=
"modal-dialog modal-md"
role=
"dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-primary"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h6
class=
"modal-title"
>
Edit Password
</h6>
</div>
<div
class=
"modal-body"
>
<div
>
<div
class=
"alert alert-danger"
id=
"notifications"
style=
"display: none"
>
</div>
<div
id=
"modal-edt-password"
role=
"dialog"
class=
"modal fade"
tabindex=
"-9999999"
style=
"margin-top:5%;"
>
<div
class=
"modal-dialog modal-md"
role=
"dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-primary"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h6
class=
"modal-title"
>
Edit Password
</h6>
</div>
<form
class=
"form-horizontal"
id=
"formmen"
method=
"post"
enctype=
"multipart/form-data"
>
<div
class=
"panel panel-flat"
>
<div
class=
"panel-body"
style=
"margin: 20px !important"
>
<div
class=
"modal-body"
>
<div>
<div
class=
"alert alert-danger"
id=
"notifications"
style=
"display: none"
>
</div>
</div>
<form
class=
"form-horizontal"
id=
"formmen"
method=
"post"
enctype=
"multipart/form-data"
>
<div
class=
"panel panel-flat"
>
<div
class=
"panel-body"
style=
"margin: 20px !important"
>
<div
class=
"row"
>
{% for us in thisUser %}
<input
type=
"text"
id=
"usernameedt"
value=
"{{us.username}}"
hidden
>
<input
type=
"text"
id=
"iduseredt"
value=
"{{us.id}}"
hidden
>
<!-- <input type="text" id="current" value="{{us.password}}"> -->
{% endfor %}
<div
class=
"form-group"
>
<input
type=
"text"
id=
"iduseredt"
value=
"{{us.id}}"
hidden
>
<!-- <input type="text" id="current" value="{{us.password}}"> -->
{% endfor %}
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Password saat ini :
</label>
<input
type=
"password"
id=
"currentPass"
class=
"form-control"
>
<input
type=
"password"
id=
"currentPass"
class=
"form-control"
>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Password baru :
</label>
<input
type=
"password"
id=
"newPass"
class=
"form-control"
>
<input
type=
"password"
id=
"newPass"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-group"
>
</div>
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Ulangi password baru :
</label>
<input
type=
"password"
id=
"renewPass"
class=
"form-control"
>
<input
type=
"password"
id=
"renewPass"
class=
"form-control"
>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
class=
"btn btn-lg btn-success"
id=
"save-edt-password"
>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
class=
"btn btn-lg btn-success"
id=
"save-edt-password"
>
<i
class=
"icon-checkmark2"
></i>
Simpan
</button>
<button
class=
"btn btn-lg"
data-dismiss=
"modal"
>
<button
class=
"btn btn-lg"
data-dismiss=
"modal"
>
<i
class=
"icon-cross3"
></i>
Batal
</button>
</div>
</div>
</div>
</div>
</div>
<div
id=
"modal-edit-profil"
role=
"dialog"
class=
"modal fade"
tabindex=
"-9999999"
style=
"margin-top:5%;"
>
<div
class=
"modal-dialog modal-lg"
role=
"dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-primary"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h6
class=
"modal-title"
>
Edit Picture
</h6>
</div>
<div
class=
"modal-body"
>
<div
class=
"row"
id=
"set-crop-ratio"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"image-cropper-container"
><img
src=
"{% static 'img/placeholder.jpg' %}"
alt=
""
class=
"crop-4-3"
></div>
<div
id=
"modal-edit-profil"
role=
"dialog"
class=
"modal fade"
tabindex=
"-9999999"
style=
"margin-top:5%;"
>
<div
class=
"modal-dialog modal-lg"
role=
"dialog"
>
<!-- Modal content-->
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-primary"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
>
×
</button>
<h6
class=
"modal-title"
>
Edit Picture
</h6>
</div>
<div
class=
"modal-body"
>
<div
class=
"row"
id=
"set-crop-ratio"
>
<div
class=
"col-md-6 col-md-offset-3"
>
<div
class=
"image-cropper-container"
><img
src=
"{% static 'img/placeholder.jpg' %}"
alt=
""
class=
"crop-4-3"
></div>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
class=
"btn btn-lg btn-success"
id=
"save-picture"
>
<div
class=
"modal-footer"
>
<button
class=
"btn btn-lg btn-success"
id=
"save-picture"
>
<i
class=
"icon-checkmark2"
></i>
Simpan
</button>
<button
class=
"btn btn-lg"
data-dismiss=
"modal"
>
<button
class=
"btn btn-lg"
data-dismiss=
"modal"
>
<i
class=
"icon-cross3"
></i>
Batal
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
>
Crop Image Before Upload
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<div
class=
"modal fade"
id=
"modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
>
Crop Image Before Upload
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<div
class=
"img-container"
>
<div
class=
"row"
>
<div
class=
"col-md-8"
>
<img
src=
""
id=
"sample_image"
/>
</div>
<div
class=
"col-md-4"
>
<div
class=
"eg-preview"
>
<div
class=
"preview preview-lg"
></div>
<!-- <div class="preview preview-md"></div>
</div>
<div
class=
"modal-body"
>
<div
class=
"img-container"
>
<div
class=
"row"
>
<div
class=
"col-md-8"
>
<img
src=
""
id=
"sample_image"
/>
</div>
<div
class=
"col-md-4"
>
<div
class=
"eg-preview"
>
<div
class=
"preview preview-lg"
></div>
<!-- <div class="preview preview-md"></div>
<div class="preview preview-sm"></div>
<div class="preview preview-xs"></div> -->
</div>
</div>
</div>
</div>
</div>
</div>
</div
>
<div
class=
"modal-footer"
>
<button
type=
"button"
id=
"crop"
class=
"btn btn-primary"
>
Crop
</button>
<
button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Cancel
</button
>
<div
class=
"modal-footer"
>
<button
type=
"button"
id=
"crop"
class=
"btn btn-primary"
>
Crop
</button
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Cancel
</button>
<
/div
>
</div>
</div>
</div>
</div>
<div
id=
"modal_group"
class=
"modal fade"
>
<div
class=
"modal-dialog md"
style=
"margin-top: 200px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-info"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
×
</button>
<h6
class=
"modal-title modstitg"
>
Modal Tambah Group
</h6>
</div>
<div
class=
"modal-body"
style=
"max-height: 450px;overflow-y: auto;"
>
<input
type=
"hidden"
id=
"idgroup"
>
<div
id=
"modal_group"
class=
"modal fade"
>
<div
class=
"modal-dialog md"
style=
"margin-top: 200px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header bg-info"
style=
"background-color: #1a222f !important;"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
×
</button>
<h6
class=
"modal-title modstitg"
>
Modal Tambah Group
</h6>
</div>
<div
class=
"modal-body"
style=
"max-height: 450px;overflow-y: auto;"
>
<input
type=
"hidden"
id=
"idgroup"
>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Nama Group
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inGroupName"
type=
"text"
class=
"form-control"
value=
""
required
>
<div
class=
"row"
>
<div
class=
"form-group"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Nama Group
</label>
<div
class=
"col-lg-9"
>
<input
id=
"inGroupName"
type=
"text"
class=
"form-control"
value=
""
required
>
</div>
</div>
</div>
</div>
<div
class
>
<div
class
>
<div
class=
"row"
id=
"container_sparent"
>
<div
class=
"form-group"
style=
"margin-top: 10px !important;"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Group Parent
</label>
<div
class=
"col-lg-9"
>
<select
style=
"border-bottom: 1px solid rgb(83, 83, 83) !important;"
id=
"select_group_parent"
data-placeholder=
"select group.."
class=
"select-size-xs"
>
<div
class=
"row"
id=
"container_sparent"
>
<div
class=
"form-group"
style=
"margin-top: 10px !important;"
>
<label
class=
"col-lg-3 control-label lbl-top"
>
Group Parent
</label>
<div
class=
"col-lg-9"
>
<select
style=
"border-bottom: 1px solid rgb(83, 83, 83) !important;"
id=
"select_group_parent"
data-placeholder=
"select group.."
class=
"select-size-xs"
>
<option></option>
</select>
</div>
</div>
</div>
</div>
</div>
<hr>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-link"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-info"
id=
"savegroup"
>
Save changes
</button>
</div>
<hr>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-link"
data-dismiss=
"modal"
onclick=
"destroyfade()"
>
Close
</button>
<button
type=
"button"
class=
"btn btn-info"
id=
"savegroup"
>
Save changes
</button>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
<div
class=
"page_loader"
></div>
{% endblock %}
<div
class=
"page_loader"
></div>
<!-- Core JS files -->
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/loaders/pace.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/core/libraries/jquery.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/core/libraries/bootstrap.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/loaders/blockui.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/nicescroll.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/drilldown.js' %}"
></script>
<!-- /core JS files -->
<!-- Core JS files -->
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/loaders/pace.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/core/libraries/jquery.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/core/libraries/bootstrap.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/loaders/blockui.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/nicescroll.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/drilldown.js' %}"
></script>
<!-- /core JS files -->
<script
src=
"https://use.fontawesome.com/d232835e93.js"
></script>
<script
src=
"https://use.fontawesome.com/d232835e93.js"
></script>
<script
src=
"https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"
></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol/dist/L.Control.Locate.min.js" charset="utf-8"></script>
<script
src=
"https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"
></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol/dist/L.Control.Locate.min.js" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol/dist/L.Control.Locate.min.js" charset="utf-8"></script> -->
<script
src=
"https://unpkg.com/esri-leaflet@2.5.1/dist/esri-leaflet.js"
></script>
<script
src=
"https://unpkg.com/esri-leaflet-geocoder@2.3.3/dist/esri-leaflet-geocoder.js"
></script>
<script
src=
"https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"
></script>
<script
src=
"https://code.jquery.com/jquery-3.5.1.js"
></script>
<script
src=
"https://code.jquery.com/ui/1.12.1/jquery-ui.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw-src.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.6/handlebars.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.11.1/typeahead.bundle.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/leaflet.fullscreen/1.4.2/Control.FullScreen.min.js"
></script>
<!-- Theme JS files -->
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/visualization/d3/d3.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/visualization/d3/d3_tooltip.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/styling/switchery.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/styling/uniform.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/selects/bootstrap_multiselect.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/moment/moment.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/pickers/daterangepicker.js' %}"
></script>
<!-- <script type="text/javascript" src="{% static 'js/plugins/ui/ripple.min.js' %}"></script> -->
<!-- /theme JS files -->
{% include 'includes/scripts.html' %}
{% include 'layout/userprofile.html' %}
<script
src=
"{% static 'js/leaflet-bing-layer.js' %}"
></script>
<!-- <script src="https://unpkg.com/sweetalert/dists/sweetalert.min.js"></script> -->
<script
type=
"text/javascript"
src=
"{% static 'js/core/libraries/jquery_ui/interactions.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/selects/select2.min.js' %}"
></script>
<!-- <script type="text/javascript" src="{% static 'js/plugins/media/cropper.min.js' %}"></script>
<script
src=
"https://unpkg.com/esri-leaflet@2.5.1/dist/esri-leaflet.js"
></script>
<script
src=
"https://unpkg.com/esri-leaflet-geocoder@2.3.3/dist/esri-leaflet-geocoder.js"
></script>
<script
src=
"https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"
></script>
<script
src=
"https://code.jquery.com/jquery-3.5.1.js"
></script>
<script
src=
"https://code.jquery.com/ui/1.12.1/jquery-ui.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw-src.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.7.6/handlebars.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.11.1/typeahead.bundle.min.js"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/leaflet.fullscreen/1.4.2/Control.FullScreen.min.js"
></script>
<!-- Theme JS files -->
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/visualization/d3/d3.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/visualization/d3/d3_tooltip.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/styling/switchery.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/styling/uniform.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/selects/bootstrap_multiselect.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/moment/moment.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/pickers/daterangepicker.js' %}"
></script>
<!-- <script type="text/javascript" src="{% static 'js/plugins/ui/ripple.min.js' %}"></script> -->
<!-- /theme JS files -->
{% include 'includes/scripts.html' %} {% include 'layout/userprofile.html' %}
<script
src=
"{% static 'js/leaflet-bing-layer.js' %}"
></script>
<!-- <script src="https://unpkg.com/sweetalert/dists/sweetalert.min.js"></script> -->
<script
type=
"text/javascript"
src=
"{% static 'js/core/libraries/jquery_ui/interactions.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/forms/selects/select2.min.js' %}"
></script>
<!-- <script type="text/javascript" src="{% static 'js/plugins/media/cropper.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/pages/extension_image_cropper.js' %}"></script> -->
<script
type=
"text/javascript"
src=
"{% static 'js/pages/form_select2.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/pages/form_select2.js' %}"
></script>
</body>
</html>
...
...
@@ -1054,15 +1048,15 @@
const
urlParams
=
new
URLSearchParams
(
queryString
);
const
page
=
urlParams
.
get
(
'
page
'
)
if
(
page
==
"
group
"
)
{
if
(
page
==
"
group
"
)
{
$
(
"
#usergroup
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
#info-maps
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#userprofile
"
).
css
(
"
display
"
,
"
none
"
);
}
else
if
(
page
==
"
user
"
||
page
==
null
)
{
}
else
if
(
page
==
"
user
"
||
page
==
null
)
{
$
(
"
#usergroup
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#info-maps
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
#userprofile
"
).
css
(
"
display
"
,
"
none
"
)
}
else
{
}
else
{
$
(
"
#usergroup
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#info-maps
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#userprofile
"
).
css
(
"
display
"
,
"
block
"
);
...
...
@@ -1577,76 +1571,76 @@
//user profile js
$
(
"
#save-edt-password
"
).
on
(
"
click
"
,
function
(){
$
(
"
#save-edt-password
"
).
on
(
"
click
"
,
function
()
{
changepassword
();
})
function
changepassword
(){
function
changepassword
()
{
var
isObject
=
{};
isObject
.
id
=
$
(
"
#iduseredt
"
).
val
();
isObject
.
currPass
=
$
(
'
#currentPass
'
).
val
();
isObject
.
newPass
=
$
(
"
#newPass
"
).
val
();
isObject
.
id
=
$
(
"
#iduseredt
"
).
val
();
isObject
.
currPass
=
$
(
'
#currentPass
'
).
val
();
isObject
.
newPass
=
$
(
"
#newPass
"
).
val
();
isObject
.
renewPass
=
$
(
"
#renewPass
"
).
val
();
isObject
.
username
=
$
(
"
#usernameedt
"
).
val
();
isObject
.
username
=
$
(
"
#usernameedt
"
).
val
();
if
(
isObject
.
currPass
==
""
||
isObject
.
newPass
==
""
||
isObject
.
renewPass
==
""
)
{
if
(
isObject
.
currPass
==
""
||
isObject
.
newPass
==
""
||
isObject
.
renewPass
==
""
)
{
$
(
"
#notifications
"
).
css
(
"
display
"
,
"
block
"
)
$
(
"
#notifications
"
).
html
(
"
Inputan tidak boleh kosong
"
)
return
false
;
}
}
$
.
ajax
({
url
:
"
{% url 'changepassword' %}
"
,
data
:
isObject
,
dataType
:
'
json
'
,
type
:
'
post
'
,
success
:
function
(
data
)
{
let
response
=
data
;
if
(
response
.
code
==
0
)
{
var
datas
=
response
.
data
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
success
"
,
icon
:
"
success
"
,
confirmButtonColor
:
"
#00BCD4
"
}).
then
((
isConfirm
)
=>
{
window
.
location
=
"
{% url 'apps:dashboard' %}
"
})
}
else
{
$
(
"
#notifications
"
).
html
(
response
.
data
)
$
(
"
#notifications
"
).
css
(
"
display
"
,
"
block
"
)
}
url
:
"
{% url 'changepassword' %}
"
,
data
:
isObject
,
dataType
:
'
json
'
,
type
:
'
post
'
,
success
:
function
(
data
)
{
let
response
=
data
;
if
(
response
.
code
==
0
)
{
var
datas
=
response
.
data
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
success
"
,
icon
:
"
success
"
,
confirmButtonColor
:
"
#00BCD4
"
}).
then
((
isConfirm
)
=>
{
window
.
location
=
"
{% url 'apps:dashboard' %}
"
})
}
else
{
$
(
"
#notifications
"
).
html
(
response
.
data
)
$
(
"
#notifications
"
).
css
(
"
display
"
,
"
block
"
)
}
});
}
});
}
$
(
"
#save-edit-profile
"
).
on
(
"
click
"
,
function
(){
$
(
"
#save-edit-profile
"
).
on
(
"
click
"
,
function
()
{
editprofile
();
})
function
editprofile
(){
function
editprofile
()
{
var
isObject
=
{}
isObject
.
id
=
$
(
"
#iduseredt
"
).
val
();
isObject
.
first_name
=
$
(
"
#firstnameedt
"
).
val
();
isObject
.
last_name
=
$
(
"
#lastnameedt
"
).
val
();
isObject
.
email
=
$
(
"
#emailedts
"
).
val
()
isObject
.
last_name
=
$
(
"
#lastnameedt
"
).
val
();
isObject
.
email
=
$
(
"
#emailedts
"
).
val
()
if
(
isObject
.
first_name
==
""
||
isObject
.
last_name
==
""
||
isObject
.
email
==
""
)
{
if
(
isObject
.
first_name
==
""
||
isObject
.
last_name
==
""
||
isObject
.
email
==
""
)
{
$
(
"
#notificationsprop
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
#notificationsprop
"
).
html
(
"
Inputan tidak boleh kosong
"
)
return
false
}
else
{
}
else
{
var
mail_format
=
/^
((
"
[\w
-
\s]
+"
)
|
([\w
-
]
+
(?:\.[\w
-
]
+
)
*
)
|
(
"
[\w
-
\s]
+"
)([\w
-
]
+
(?:\.[\w
-
]
+
)
*
))(
@
((?:[\w
-
]
+
\.)
*
\w[\w
-
]{0,66})\.([
a-z
]{2,6}(?:\.[
a-z
]{2})?)
$
)
|
(
@
\[?((
25
[
0-5
]\.
|2
[
0-4
][
0-9
]\.
|1
[
0-9
]{2}\.
|
[
0-9
]{1,2}\.))((
25
[
0-5
]
|2
[
0-4
][
0-9
]
|1
[
0-9
]{2}
|
[
0-9
]{1,2})\.){2}(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|1
[
0-9
]{2}
|
[
0-9
]{1,2})\]?
$
)
/
;
if
(
!
isObject
.
email
.
match
(
mail_format
))
{
if
(
!
isObject
.
email
.
match
(
mail_format
))
{
$
(
"
#notificationsprop
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
#notificationsprop
"
).
html
(
"
Format email tidak valid, silahkan coba kembali.
"
)
return
false
...
...
@@ -1678,7 +1672,7 @@
}
}
});
}
...
...
@@ -1697,7 +1691,7 @@
$
(
"
#upload_image
"
).
change
(
function
()
{
loaderPage
(
true
)
readURL
(
this
);
const
fileupload1
=
$
(
this
).
prop
(
'
files
'
)[
0
];
var
formData
=
new
FormData
();
...
...
@@ -1733,10 +1727,8 @@
confirmButtonColor
:
"
#00BCD4
"
})
}
}
})
});
</script>
\ No newline at end of file
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