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
6d5c957d
Commit
6d5c957d
authored
Oct 25, 2021
by
Muhamad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help&support
parent
48cf2759
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
187 additions
and
12 deletions
+187
-12
API/views.py
API/views.py
+1
-1
Application/urls.py
Application/urls.py
+3
-1
Application/views.py
Application/views.py
+32
-0
OKU/settings.py
OKU/settings.py
+10
-0
static/img/icon-1/photo_2021-10-22_16-46-16.jpg
static/img/icon-1/photo_2021-10-22_16-46-16.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-46-21.jpg
static/img/icon-1/photo_2021-10-22_16-46-21.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-46-27.jpg
static/img/icon-1/photo_2021-10-22_16-46-27.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-46-34.jpg
static/img/icon-1/photo_2021-10-22_16-46-34.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-46-40.jpg
static/img/icon-1/photo_2021-10-22_16-46-40.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-46-46.jpg
static/img/icon-1/photo_2021-10-22_16-46-46.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-46-50.jpg
static/img/icon-1/photo_2021-10-22_16-46-50.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-46-56.jpg
static/img/icon-1/photo_2021-10-22_16-46-56.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-47-03.jpg
static/img/icon-1/photo_2021-10-22_16-47-03.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-47-07.jpg
static/img/icon-1/photo_2021-10-22_16-47-07.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-47-11.jpg
static/img/icon-1/photo_2021-10-22_16-47-11.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-47-18.jpg
static/img/icon-1/photo_2021-10-22_16-47-18.jpg
+0
-0
static/img/icon-1/photo_2021-10-22_16-47-23.jpg
static/img/icon-1/photo_2021-10-22_16-47-23.jpg
+0
-0
static/js/action.js
static/js/action.js
+48
-0
templates/includes/modal.html
templates/includes/modal.html
+86
-8
templates/layout/layout.html
templates/layout/layout.html
+7
-2
No files found.
API/views.py
View file @
6d5c957d
...
...
@@ -135,7 +135,7 @@ def building(request):
FROM
geo_bangunan gb
WHERE
st_intersects (
gb.geom, 'SRID=0
;POLYGON((
%
s
%
s,
%
s
%
s,
%
s
%
s,
%
s
%
s,
%
s
%
s))' )"""
%
(
kulon
,
lor
,
wetan
,
lor
,
wetan
,
kidul
,
kulon
,
kidul
,
kulon
,
lor
))
st_intersects (
st_setsrid(gb.geom, 4326), 'SRID=4326
;POLYGON((
%
s
%
s,
%
s
%
s,
%
s
%
s,
%
s
%
s,
%
s
%
s))' )"""
%
(
kulon
,
lor
,
wetan
,
lor
,
wetan
,
kidul
,
kulon
,
kidul
,
kulon
,
lor
))
prov_res
=
buldings
.
fetchall
()
polbang
=
[]
...
...
Application/urls.py
View file @
6d5c957d
...
...
@@ -21,6 +21,8 @@ urlpatterns = [
path
(
'get-jalan-perbaikan'
,
views
.
getjalanperbaikan
,
name
=
'get-jalan-perbaikan'
),
path
(
'get-detail-perbaikan'
,
views
.
getdetailperbaikan
,
name
=
'get-detail-perbaikan'
),
path
(
'get-detail-perbaikan-bang'
,
views
.
getdetailperbaikanbangunan
,
name
=
'get-detail-perbaikan-bang'
),
path
(
'loadPointbyId'
,
views
.
loadPointbyId
)
path
(
'loadPointbyId'
,
views
.
loadPointbyId
),
path
(
'sendmail'
,
views
.
sendmail
),
]
\ No newline at end of file
Application/views.py
View file @
6d5c957d
...
...
@@ -7,6 +7,8 @@ from django.views import View, generic
from
django.contrib.auth.decorators
import
login_required
,
user_passes_test
from
django.utils.decorators
import
method_decorator
from
django.db
import
connection
as
conn
from
django.core.mail
import
send_mail
from
django.conf
import
settings
# from edit import *
class
Dashboard
(
generic
.
TemplateView
):
...
...
@@ -1269,4 +1271,34 @@ def loadPointbyId(request):
print
(
tab
,
id
,
tipe
)
context
=
{
'result'
:
'result'
}
return
Response
(
context
)
@
api_view
((
'POST'
,))
def
sendmail
(
request
):
pengirimh
=
request
.
POST
.
get
(
'pengirimh'
)
emailh
=
request
.
POST
.
get
(
'emailh'
)
isih
=
request
.
POST
.
get
(
'pesanh'
)
pengirim
=
request
.
POST
.
get
(
'pengirim'
)
email
=
request
.
POST
.
get
(
'email'
)
isi
=
request
.
POST
.
get
(
'pesan'
)
if
isi
!=
''
:
mess
=
f
"nama pengirim : {pengirim}
\n
email pengirim : {email}
\n
isi pesan :
\n\n
{isi}"
elif
isih
!=
''
:
mess
=
f
"nama pengirim : {pengirimh}
\n
email pengirim : {emailh}
\n
isi pesan :
\n\n
{isih}"
try
:
send_mail
(
subject
=
'help & support'
,
message
=
mess
,
from_email
=
settings
.
EMAIL_HOST_USER
,
recipient_list
=
[
settings
.
RECIPIENT_ADDRESS
])
data
=
{
"info"
:
"success"
,
"code"
:
0
,
"data"
:
"Pesan anda telah terkirim"
}
except
:
data
=
{
"code"
:
4
,
"data"
:
"Gagal mengirim pesan, silahkan coba beberapa saat lagi"
,
"info"
:
"failed"
}
context
=
data
return
Response
(
context
)
\ No newline at end of file
OKU/settings.py
View file @
6d5c957d
...
...
@@ -153,3 +153,13 @@ LOGIN_REDIRECT_URL = '/'
MEDIA_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'media'
)
MEDIA_URL
=
'/var/www/django/oku.khansia.co.id/media/'
EMAIL_BACKEND
=
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
=
'smtp.gmail.com'
EMAIL_PORT
=
587
EMAIL_USE_TLS
=
True
EMAIL_HOST_USER
=
'khansiakhansia5@gmail.com'
EMAIL_HOST_PASSWORD
=
'khansia1234'
RECIPIENT_ADDRESS
=
'muhamadnahrowi17@gmail.com'
\ No newline at end of file
static/img/icon-1/photo_2021-10-22_16-46-16.jpg
0 → 100644
View file @
6d5c957d
23.8 KB
static/img/icon-1/photo_2021-10-22_16-46-21.jpg
0 → 100644
View file @
6d5c957d
32.8 KB
static/img/icon-1/photo_2021-10-22_16-46-27.jpg
0 → 100644
View file @
6d5c957d
31.6 KB
static/img/icon-1/photo_2021-10-22_16-46-34.jpg
0 → 100644
View file @
6d5c957d
37.1 KB
static/img/icon-1/photo_2021-10-22_16-46-40.jpg
0 → 100644
View file @
6d5c957d
20 KB
static/img/icon-1/photo_2021-10-22_16-46-46.jpg
0 → 100644
View file @
6d5c957d
29 KB
static/img/icon-1/photo_2021-10-22_16-46-50.jpg
0 → 100644
View file @
6d5c957d
26.8 KB
static/img/icon-1/photo_2021-10-22_16-46-56.jpg
0 → 100644
View file @
6d5c957d
53.1 KB
static/img/icon-1/photo_2021-10-22_16-47-03.jpg
0 → 100644
View file @
6d5c957d
18.6 KB
static/img/icon-1/photo_2021-10-22_16-47-07.jpg
0 → 100644
View file @
6d5c957d
20.8 KB
static/img/icon-1/photo_2021-10-22_16-47-11.jpg
0 → 100644
View file @
6d5c957d
25.9 KB
static/img/icon-1/photo_2021-10-22_16-47-18.jpg
0 → 100644
View file @
6d5c957d
48.1 KB
static/img/icon-1/photo_2021-10-22_16-47-23.jpg
0 → 100644
View file @
6d5c957d
41.2 KB
static/js/action.js
View file @
6d5c957d
...
...
@@ -1027,5 +1027,53 @@ $("#btnsaveuser").click(function() {
// }
// }
$
(
"
.send_pesan
"
).
click
(
function
()
{
var
pengirimh
=
$
(
"
#nama_pengirimh
"
).
val
();
var
emailh
=
$
(
"
#email_pengirimh
"
).
val
();
var
pesan_pengirimh
=
$
(
"
#pesan_pengirimh
"
).
val
();
var
pengirim
=
$
(
"
#nama_pengirim
"
).
val
();
var
email
=
$
(
"
#email_pengirim
"
).
val
();
var
pesan_pengirim
=
$
(
"
#pesan_pengirim
"
).
val
();
$
.
ajax
({
url
:
"
sendmail
"
,
data
:
{
'
pengirimh
'
:
pengirimh
,
'
emailh
'
:
emailh
,
'
pesanh
'
:
pesan_pengirimh
,
'
pengirim
'
:
pengirim
,
'
email
'
:
email
,
'
pesan
'
:
pesan_pengirim
},
dataType
:
'
json
'
,
type
:
'
post
'
,
success
:
function
(
data
)
{
let
response
=
data
if
(
response
.
code
==
0
)
{
swal
({
title
:
response
.
info
,
text
:
response
.
data
,
type
:
"
success
"
,
icon
:
"
success
"
,
confirmButtonColor
:
"
#00BCD4
"
},
function
()
{
$
(
"
#nama_pengirimh
"
).
values
(
''
);
$
(
"
#email_pengirimh
"
).
values
(
''
);
$
(
"
#pesan_pengirimh
"
).
values
(
''
);
$
(
"
#nama_pengirim
"
).
values
(
''
);
$
(
"
#email_pengirim
"
).
values
(
''
);
$
(
"
#pesan_pengirim
"
).
values
(
''
);
})
}
}
});
})
document
.
querySelector
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-bottom.leaflet-right > div
"
).
html
(
`Powered by <a href="https://khansia.co.id" target="_blank">Khansia</a> with <a href="https://leafletjs.com" target="_blank">Leaflet</a>`
)
document
.
querySelector
(
"
#map-create-all > div.leaflet-control-container > div.leaflet-bottom.leaflet-right > div
"
).
css
(
"
right
"
,
"
50px
"
)
\ No newline at end of file
templates/includes/modal.html
View file @
6d5c957d
...
...
@@ -1144,7 +1144,7 @@
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Nama :
</label>
<input
type=
"text"
id=
"nama_pengirim"
class=
"form-control"
>
<input
type=
"text"
id=
"nama_pengirim"
class=
"form-control
nama_pengirim
"
>
</div>
</div>
</div>
...
...
@@ -1152,7 +1152,7 @@
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Email:
</label>
<input
type=
"text"
id=
"email_pengirim"
class=
"form-control"
>
<input
type=
"text"
id=
"email_pengirim"
class=
"form-control
email_pengirim
"
>
</div>
</div>
</div>
...
...
@@ -1160,11 +1160,11 @@
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Pesan :
</label>
<textarea
rows=
"5"
cols=
"5"
class=
"form-control"
id=
"pesan_pengirim"
placeholder=
"Tuliskan Pesan disini"
style=
"height: 240px;"
></textarea>
<textarea
rows=
"5"
cols=
"5"
class=
"form-control
pesan_pengirim
"
id=
"pesan_pengirim"
placeholder=
"Tuliskan Pesan disini"
style=
"height: 240px;"
></textarea>
</div>
</div>
</div>
<button
type=
"button"
class=
"btn btn-info"
id=
"send_pesan"
style=
" margin: 10px;float: right;border: none;"
>
Send Messages
</button>
<button
type=
"button"
class=
"btn btn-info
send_pesan
"
id=
"send_pesan"
style=
" margin: 10px;float: right;border: none;"
>
Send Messages
</button>
</div>
</div>
...
...
@@ -2150,7 +2150,7 @@
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Nama :
</label>
<input
type=
"text"
id=
"nama_pengirim
"
class=
"form-control
"
>
<input
type=
"text"
id=
"nama_pengirim
h"
class=
"form-control nama_pengirim
"
>
</div>
</div>
</div>
...
...
@@ -2158,7 +2158,7 @@
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Email:
</label>
<input
type=
"text"
id=
"email_pengirim
"
class=
"form-control
"
>
<input
type=
"text"
id=
"email_pengirim
h"
class=
"form-control email_pengirim
"
>
</div>
</div>
</div>
...
...
@@ -2166,11 +2166,11 @@
<div
class=
"form-group"
>
<div
class=
"col-md-12"
>
<label
class=
"control-label"
>
Pesan :
</label>
<textarea
rows=
"5"
cols=
"5"
class=
"form-control
"
id=
"pesan_pengirim
"
placeholder=
"Tuliskan Pesan disini"
style=
"height: 240px;"
></textarea>
<textarea
rows=
"5"
cols=
"5"
class=
"form-control
pesan_pengirim"
id=
"pesan_pengirimh
"
placeholder=
"Tuliskan Pesan disini"
style=
"height: 240px;"
></textarea>
</div>
</div>
</div>
<button
type=
"button"
class=
"btn btn-info"
id=
"send_pesan"
style=
" margin: 10px;float: right;border: none;"
>
Send Messages
</button>
<button
type=
"button"
class=
"btn btn-info
send_pesan
"
id=
"send_pesan"
style=
" margin: 10px;float: right;border: none;"
>
Send Messages
</button>
</div>
</div>
...
...
@@ -2201,24 +2201,48 @@
<td>
1.
</td>
<td>
Pada halaman dashboard, klik tombol “SIGN IN” untuk melakukan login
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-16.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
2.
</td>
<td>
Masukkan
<i>
username
</i>
dan
<i>
password
</i>
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-21.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
3.
</td>
<td>
Kemudian klik tombol “Log In”
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-27.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
4.
</td>
<td>
Akan muncul Welcome Page seperti di bawah
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-34.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
</table>
</div>
</div>
...
...
@@ -2240,24 +2264,48 @@
<td>
1.
</td>
<td>
Pada halaman utama aplikasi, klik icon
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-40.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
2.
</td>
<td>
Setelah itu akan muncul form 3D Searching, lalu pilih desa,
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-46.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
3.
</td>
<td>
Lalu klik tombol “Search”
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-50.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
4.
</td>
<td>
Maka akan muncul desa yang dicari
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-46-56.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
</table>
</div>
</div>
...
...
@@ -2279,29 +2327,59 @@
<td>
1.
</td>
<td>
Pada halaman utama aplikasi, klik icon
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-47-03.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
2.
</td>
<td>
Setelah itu akan muncul halaman sidebar filters
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-47-07.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
3.
</td>
<td>
Kemudian checklist pada bagian bagunan
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-47-11.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
4.
</td>
<td>
Maka akan muncul tampilan bangunan (polygon bangunan akan muncul ketika zoom > 17)
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-47-18.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
<tr>
<td>
5.
</td>
<td>
Untuk melihat informasi bangunan, klik bagian bangunan yang akan di lihat informasinya.
</td>
</tr>
<tr>
<td></td>
<td>
<img
src=
"{% static 'img/icon-1/photo_2021-10-22_16-47-23.jpg' %}"
alt=
""
style=
"width: 500px;margin-bottom: 15px;"
>
</td>
</tr>
</table>
</div>
</div>
...
...
templates/layout/layout.html
View file @
6d5c957d
...
...
@@ -185,9 +185,14 @@
{% if user.is_authenticated %} {% else %}
<div
class=
"col-md-6 col-md-offset-3 modal-login input-group content-group foot centered"
style=
"z-index: 999;"
>
<div
class=
"row row-full-height"
style=
"width: 100%;margin-left: 10px;"
>
<!-- <div class="col-md-6 col-md-offset-3 modal-login input-group content-group foot centered" style="z-index: 999;">
<div class="row row-full-height" style="width: 100%;margin-left: 10px;"> -->
<div
class=
"col-md-6 col-md-offset-3 modal-login input-group content-group foot centered"
>
<div
class=
"row row-full-height"
>
<div
class=
"col-md-1"
>
<!-- <img src="/static/img/logo-ok.png" alt="" class="img-centered" style="max-height: 28px;max-width: 21.999998092651367px;/* left: 27px; *//* top: 14px; */border-radius: 0px;"> -->
<img
src=
"/static/img/logo-ok.png"
alt=
""
class=
"img-centered"
style=
"max-height: 28px;max-width: 21.999998092651367px;/* left: 27px; *//* top: 14px; */border-radius: 0px;"
>
</div>
<div
class=
"col-md-9"
>
...
...
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