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
0ad599b2
Commit
0ad599b2
authored
Jul 12, 2021
by
Manggar Mahardhika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
92c4273e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3027 additions
and
350 deletions
+3027
-350
API/urls.py
API/urls.py
+23
-9
API/views.py
API/views.py
+656
-32
Application/views.py
Application/views.py
+22
-11
templates/includes/js-m.html
templates/includes/js-m.html
+2319
-295
templates/includes/modal.html
templates/includes/modal.html
+1
-1
templates/layout/base.html
templates/layout/base.html
+6
-2
No files found.
API/urls.py
View file @
0ad599b2
...
@@ -18,15 +18,29 @@ urlpatterns = [
...
@@ -18,15 +18,29 @@ urlpatterns = [
path
(
'editkependudukan/'
,
views
.
editkependudukan
,
name
=
'kependudukan'
),
path
(
'editkependudukan/'
,
views
.
editkependudukan
,
name
=
'kependudukan'
),
path
(
'edit-point-rumahsakit'
,
views
.
editrumahsakit
,
name
=
'rumahsakit'
),
path
(
'editkantor'
,
views
.
editpointka
,
name
=
'editkantor'
),
path
(
'edit-point-cagarbudaya'
,
views
.
editcagarbudaya
,
name
=
'cagarbudaya'
),
path
(
'editlakes'
,
views
.
editpointlk
,
name
=
'editlakes'
),
path
(
'edit-point-kantor'
,
views
.
editkantoradmin
,
name
=
'kantor'
),
path
(
'editpks'
,
views
.
editpointpks
,
name
=
'editpks'
),
path
(
'edit-point-puskesmas'
,
views
.
editpuskesmas
,
name
=
'puskesmas'
),
path
(
'editrs'
,
views
.
editpointrs
,
name
=
'editrs'
),
path
(
'edit-point-ibadah'
,
views
.
editibadah
,
name
=
'ibadah'
),
path
(
'editsi'
,
views
.
editpointsi
,
name
=
'editsi'
),
path
(
'edit-point-sekolah'
,
views
.
editsekolah
,
name
=
'sekolah'
),
path
(
'editsp'
,
views
.
editpointsp
,
name
=
'editsp'
),
path
(
'edit-point-spbu'
,
views
.
editspbu
,
name
=
'spbu'
),
path
(
'editpom'
,
views
.
editpointspbu
,
name
=
'editpom'
),
path
(
'edit-point-stasiun'
,
views
.
editstasiun
,
name
=
'stasiun'
),
path
(
'editst'
,
views
.
editpointst
,
name
=
'editst'
),
path
(
'edit-point-terminal'
,
views
.
editterminal
,
name
=
'terminal'
),
path
(
'editgl'
,
views
.
editpointgl
,
name
=
'editgl'
),
path
(
'edittr'
,
views
.
editpointtr
,
name
=
'edittr'
),
path
(
'editcb'
,
views
.
editpointcb
,
name
=
'editcb'
),
path
(
'rumahsakit'
,
views
.
editrumahsakit
,
name
=
'rumahsakit'
),
path
(
'cagarbudaya'
,
views
.
editcagarbudaya
,
name
=
'cagarbudaya'
),
path
(
'kantor'
,
views
.
editkantoradmin
,
name
=
'kantor'
),
path
(
'layanankesehatan'
,
views
.
editlayanankesehatan
,
name
=
'layanankesehatan'
),
path
(
'puskesmas'
,
views
.
editpuskesmas
,
name
=
'puskesmas'
),
path
(
'ibadah'
,
views
.
editibadah
,
name
=
'ibadah'
),
path
(
'sekolah'
,
views
.
editsekolah
,
name
=
'sekolah'
),
path
(
'spbu'
,
views
.
editspbu
,
name
=
'spbu'
),
path
(
'stasiun'
,
views
.
editstasiun
,
name
=
'stasiun'
),
path
(
'terminal'
,
views
.
editterminal
,
name
=
'terminal'
),
path
(
'gardu'
,
views
.
editgardu
,
name
=
'gardu'
),
path
(
'edit-tuplah'
,
views
.
edittuplah
,
name
=
'tuplah'
),
path
(
'edit-tuplah'
,
views
.
edittuplah
,
name
=
'tuplah'
),
path
(
'cobsgambar'
,
views
.
cobagam
,
name
=
"coba"
),
path
(
'cobsgambar'
,
views
.
cobagam
,
name
=
"coba"
),
...
...
API/views.py
View file @
0ad599b2
This diff is collapsed.
Click to expand it.
Application/views.py
View file @
0ad599b2
...
@@ -58,7 +58,8 @@ class Dashboard(generic.TemplateView):
...
@@ -58,7 +58,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -94,7 +95,8 @@ class Dashboard(generic.TemplateView):
...
@@ -94,7 +95,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -132,7 +134,8 @@ class Dashboard(generic.TemplateView):
...
@@ -132,7 +134,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -169,7 +172,8 @@ class Dashboard(generic.TemplateView):
...
@@ -169,7 +172,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -206,7 +210,8 @@ class Dashboard(generic.TemplateView):
...
@@ -206,7 +210,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -245,7 +250,8 @@ class Dashboard(generic.TemplateView):
...
@@ -245,7 +250,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -284,7 +290,8 @@ class Dashboard(generic.TemplateView):
...
@@ -284,7 +290,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -321,7 +328,8 @@ class Dashboard(generic.TemplateView):
...
@@ -321,7 +328,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -359,7 +367,8 @@ class Dashboard(generic.TemplateView):
...
@@ -359,7 +367,8 @@ class Dashboard(generic.TemplateView):
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa,
d.desa,
a.luas
a.luas,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -392,7 +401,8 @@ class Dashboard(generic.TemplateView):
...
@@ -392,7 +401,8 @@ class Dashboard(generic.TemplateView):
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa,
d.desa,
a.luas
a.luas,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
@@ -429,7 +439,8 @@ class Dashboard(generic.TemplateView):
...
@@ -429,7 +439,8 @@ class Dashboard(generic.TemplateView):
A.tipe_gambar,
A.tipe_gambar,
b.kabupaten,
b.kabupaten,
c.kecamatan,
c.kecamatan,
d.desa
d.desa,
a.id
),
),
'geometry',
'geometry',
ST_AsGeoJSON ( A.geom :: geometry ) :: json
ST_AsGeoJSON ( A.geom :: geometry ) :: json
...
...
templates/includes/js-m.html
View file @
0ad599b2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
templates/includes/modal.html
View file @
0ad599b2
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
{% include 'includes/js-m.html' %}
<div
class=
"modal fade"
id=
"modal_delete_1"
tabindex=
"+1"
role=
"dialog"
>
<div
class=
"modal fade"
id=
"modal_delete_1"
tabindex=
"+1"
role=
"dialog"
>
<div
class=
"modal-dialog modal-md"
>
<div
class=
"modal-dialog modal-md"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
...
...
templates/layout/base.html
View file @
0ad599b2
...
@@ -66,6 +66,9 @@
...
@@ -66,6 +66,9 @@
.leaflet-draw-section
{
.leaflet-draw-section
{
display
:
none
;
display
:
none
;
}
}
.modal-backdrop
{
z-index
:
-999
!important
;
}
.geocoder-control
{
.geocoder-control
{
margin
:
auto
;
margin
:
auto
;
...
@@ -183,6 +186,8 @@
...
@@ -183,6 +186,8 @@
<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 type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> -->
<!-- CSS Files -->
<!-- CSS Files -->
<link
href=
"{% static 'css/plugin.css'%}"
rel=
"stylesheet"
/>
<link
href=
"{% static 'css/plugin.css'%}"
rel=
"stylesheet"
/>
<!-- CSS Just for demo purpose, don't include it in your project -->
<!-- CSS Just for demo purpose, don't include it in your project -->
...
@@ -289,7 +294,7 @@
...
@@ -289,7 +294,7 @@
</div>
</div>
<!-- end modal location -->
<!-- end modal location -->
{% include 'includes/modal.html' %} {% include 'includes/o.html' %} {% include 'includes/m.html' %}
{% include 'includes/modal.html' %} {% include 'includes/o.html' %} {% include 'includes/m.html' %}
<div
class=
"page_loader"
></div>
<div
class=
"page_loader"
></div>
...
@@ -329,7 +334,6 @@
...
@@ -329,7 +334,6 @@
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/moment/moment.min.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/pickers/daterangepicker.js' %}"
></script>
{% include 'includes/scripts.html' %}
{% include 'includes/scripts.html' %}
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/ripple.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/plugins/ui/ripple.min.js' %}"
></script>
<!-- /theme JS files -->
<!-- /theme JS files -->
...
...
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