Commit bda279e5 authored by Manggar Mahardhika's avatar Manggar Mahardhika

Merge branch 'master' of http://git.khansia.co.id/Nahrowi/oku-gis

Conflicts:
templates/includes/js-m.html
parents 3a8f4735 fdba7023
...@@ -73,4 +73,8 @@ urlpatterns = [ ...@@ -73,4 +73,8 @@ urlpatterns = [
path('deletejalan', views.deletejalan, name='hapus-jalan'), path('deletejalan', views.deletejalan, name='hapus-jalan'),
path('search_spes', views.search_spes, name='search_spes'), path('search_spes', views.search_spes, name='search_spes'),
path('search_lanjut', views.search_lanjut, name='search_lanjut'), path('search_lanjut', views.search_lanjut, name='search_lanjut'),
path('load_point_id', views.load_point_id),
path('edit_detail_poin', views.edit_detail_poin),
path('download_perbaikan_data', views.download_perbaikan_data)
] ]
\ No newline at end of file
This diff is collapsed.
...@@ -21,5 +21,6 @@ urlpatterns = [ ...@@ -21,5 +21,6 @@ urlpatterns = [
path('get-jalan-perbaikan', views.getjalanperbaikan, name='get-jalan-perbaikan'), path('get-jalan-perbaikan', views.getjalanperbaikan, name='get-jalan-perbaikan'),
path('get-detail-perbaikan', views.getdetailperbaikan, name='get-detail-perbaikan'), path('get-detail-perbaikan', views.getdetailperbaikan, name='get-detail-perbaikan'),
path('get-detail-perbaikan-bang', views.getdetailperbaikanbangunan, name='get-detail-perbaikan-bang'), path('get-detail-perbaikan-bang', views.getdetailperbaikanbangunan, name='get-detail-perbaikan-bang'),
path('loadPointbyId', views.loadPointbyId)
] ]
\ No newline at end of file
...@@ -504,6 +504,7 @@ class Dashboard(generic.TemplateView): ...@@ -504,6 +504,7 @@ class Dashboard(generic.TemplateView):
} }
res_all.append(data_all) res_all.append(data_all)
if request.user.is_authenticated:
current_user = request.user current_user = request.user
thisUser = current_user.id thisUser = current_user.id
...@@ -530,73 +531,76 @@ class Dashboard(generic.TemplateView): ...@@ -530,73 +531,76 @@ class Dashboard(generic.TemplateView):
user_data.append(datas) user_data.append(datas)
# with conn.cursor() as userlist_: with conn.cursor() as userlist_:
# if request.user.is_superuser: if request.user.is_superuser or request.user.is_staff:
# # print("is superuser") # print("is superuser")
# sql = """ sql = """
# SELECT SELECT
# au.id, au.id,
# au.username, au.username,
# au.first_name, au.first_name,
# au.last_name, au.last_name,
# au.is_active, au.is_active,
# au.last_login, au.last_login,
# au.email, au.email,
# ag.name, ag.name,
# au.is_staff, au.is_staff,
# au.is_superuser, au.is_superuser,
# au.file_path au.file_path
# FROM FROM
# auth_user au, auth_user au,
# auth_user_groups aug, auth_user_groups aug,
# auth_group ag auth_group ag
# WHERE WHERE
# au.id = aug.user_id AND au.id = aug.user_id AND
# ag.id = aug.group_id ag.id = aug.group_id
# ORDER BY ORDER BY
# au.username ASC""" au.username ASC"""
# else: else:
# if request.user.is_staff: sql = """
# sql = """ SELECT
# SELECT au.id,
# au.id, au.username,
# au.username, au.first_name,
# au.first_name, au.last_name,
# au.last_name, au.is_active,
# au.is_active, au.last_login,
# au.last_login, au.email,
# au.email, ag.name,
# ag.name, au.is_staff,
# au.is_staff, au.is_superuser,
# au.is_superuser, au.file_path
# au.file_path FROM
# FROM auth_user au,
# auth_user au, auth_user_groups aug,
# auth_user_groups aug, auth_group ag
# auth_group ag WHERE
# WHERE au.id = aug.user_id AND
# au.id = aug.user_id AND ag.id = aug.group_id AND
# ag.id = aug.group_id AND ORDER BY
# ORDER BY au.username ASC"""
# au.username ASC""" userlist_.execute(sql)
# else: allUser = userlist_.fetchall()
# print('not staff')
# userlist_.execute(sql) user_res = []
# allUser = userlist_.fetchall() for rows in allUser:
datas = {
# user_res = [] "id": rows[0],
# for rows in allUser: "username": rows[1],
# datas = { "name": rows[2] +" "+ rows[3],
# "id": rows[0], "email": rows[6],
# "username": rows[1], "isactive": rows[4],
# "name": rows[2] +" "+ rows[3], "last": rows[5],
# "email": rows[6], "group": rows[7],
# "isactive": rows[4], "filepath": rows[10]
# "last": rows[5], }
# "group": rows[7], user_res.append(datas)
# "filepath": rows[10]
# } else:
# user_res.append(datas) user_data = [{"id":"Not Login", "username":"Not Login", "firstname":"Not Login", "lastname":"Not Login","email":"Not Login","filepath":"Not Login"}]
user_res = [{"id":"Not Login", "username":"Not Login", "name":"Not Login", "isactive":"Not Login","email":"Not Login","last":"Not Login", "group":"Not Login", "filepath":"Not Login"}]
context = { context = {
'title':'Dashboard', 'title':'Dashboard',
...@@ -1256,3 +1260,13 @@ def editkelurahan(request): ...@@ -1256,3 +1260,13 @@ def editkelurahan(request):
prov = res_edit_poly[0][0]['administrasi'][4] prov = res_edit_poly[0][0]['administrasi'][4]
context = {'desa':desa, 'kec':kec, 'kab':kab, 'prov':prov,'result_poly': res_edit_poly[0][0], 'avg_la':avg_la, 'avg_lo':avg_lo} context = {'desa':desa, 'kec':kec, 'kab':kab, 'prov':prov,'result_poly': res_edit_poly[0][0], 'avg_la':avg_la, 'avg_lo':avg_lo}
return Response(context) return Response(context)
@api_view(('GET',))
def loadPointbyId(request):
tab = request.GET.get("db")
id = request.GET.get("idx")
tipe = request.GET.get("type")
print(tab, id, tipe)
context = {'result':'result'}
return Response(context)
\ No newline at end of file
...@@ -85,10 +85,10 @@ DATABASES = { ...@@ -85,10 +85,10 @@ DATABASES = {
'NAME': 'oku_gis_new', 'NAME': 'oku_gis_new',
'USER': 'postgres', 'USER': 'postgres',
'PASSWORD' : 'khansia215758', 'PASSWORD' : 'khansia215758',
'HOST': '30.10.20.102', # 'HOST': '30.10.20.102',
'PORT': '5432', # 'PORT': '5432',
# 'HOST': '103.126.28.66', 'HOST': '103.126.28.66',
# 'PORT': '8082', 'PORT': '8082',
} }
} }
......
...@@ -39,5 +39,7 @@ urlpatterns = [ ...@@ -39,5 +39,7 @@ urlpatterns = [
path('userprofile/', views.Userprofile.as_view(), name='userprofile'), path('userprofile/', views.Userprofile.as_view(), name='userprofile'),
path('changepassword/', views.changepassword, name="changepassword"), path('changepassword/', views.changepassword, name="changepassword"),
path('editprofile/', views.editprofile, name='editprofile'), path('editprofile/', views.editprofile, name='editprofile'),
path('editpp/', views.editpp, name='editpp') path('editpp/', views.editpp, name='editpp'),
path('welcome', views.welcom)
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
\ No newline at end of file
from django.contrib import auth from django.contrib import auth
from django.db.models.expressions import F from django.db.models.expressions import F
from django.http import request, response from django.http import request, response, HttpResponseRedirect
from django.views import View, generic from django.views import View, generic
from django.shortcuts import render from django.shortcuts import render, redirect
from django.contrib import messages from django.contrib import messages
from django.contrib.auth.views import LoginView, LogoutView from django.contrib.auth.views import LoginView, LogoutView
from django.db import connection as conn, models from django.db import connection as conn, models
...@@ -13,7 +13,7 @@ from django.contrib.auth.hashers import make_password ...@@ -13,7 +13,7 @@ from django.contrib.auth.hashers import make_password
from rest_framework import status from rest_framework import status
from rest_framework.decorators import api_view, renderer_classes from rest_framework.decorators import api_view, renderer_classes
from rest_framework.response import Response from rest_framework.response import Response
from django.contrib.auth import authenticate from django.contrib.auth import authenticate, login
from django.core.files.storage import FileSystemStorage from django.core.files.storage import FileSystemStorage
import random import random
import string import string
...@@ -22,8 +22,24 @@ import string ...@@ -22,8 +22,24 @@ import string
# Create your views here. # Create your views here.
class CustomLoginView(LoginView): class CustomLoginView(LoginView):
template_name = 'user/login.html' def get(self, request):
redirect_authenticated_user = True if request.user.is_authenticated:
return render(request, 'layout/layout.html')
else:
return render(request, 'user/login.html')
def post(self, request):
username = request.POST['username']
password = request.POST['password']
user = authenticate(request, username=username, password=password)
# print(user)
if user is not None:
login(request, user)
return redirect("/welcome")
else:
messages.error(request, "Invalid username or password.")
return render(request, 'user/login.html')
class HomeView(View): class HomeView(View):
template_name = 'layout/layout.html' template_name = 'layout/layout.html'
...@@ -759,3 +775,6 @@ def editpp(request): ...@@ -759,3 +775,6 @@ def editpp(request):
return Response(data) return Response(data)
def welcom(request):
return render(request, "layout/welcome.html")
\ No newline at end of file
...@@ -746,12 +746,17 @@ li.active>a:after { ...@@ -746,12 +746,17 @@ li.active>a:after {
.modal-header { .modal-header {
background-color: #1B1F2D !important; background-color: #1B1F2D !important;
border: #1B1F2D; border: #1B1F2D;
border-top-right-radius: 10px; border-top-right-radius: 10px!important;
border-top-left-radius: 10px; border-top-left-radius: 10px!important;
color: white;
} }
#modal_adm>.modal-content { .modal-header>button {
border-radius: 10px; color: white;
}
.modal-content {
border-radius: 10px!important;
} }
#modal_detail_non_kelurahan>div>div>div.modal-body>fieldset>div>div:nth-child(1)>div.gambar_keterangan>img { #modal_detail_non_kelurahan>div>div>div.modal-body>fieldset>div>div:nth-child(1)>div.gambar_keterangan>img {
...@@ -759,6 +764,50 @@ li.active>a:after { ...@@ -759,6 +764,50 @@ li.active>a:after {
border-bottom-right-radius: 10px; border-bottom-right-radius: 10px;
} }
#maps_detail_p>div.leaflet-control-container>div.leaflet-top.leaflet-left>div>div {
display: none;
}
.icon-location3:before {
margin-left: -14px;
}
#maps_detail_p>div.leaflet-control-container>div.leaflet-top.leaflet-left {
display: none;
}
#map-edit-tuplah>div.leaflet-control-container>div.leaflet-top.leaflet-left>div>div>div {
display: none;
}
#modal_bangunan_delete>div {
width: 360px!important;
}
.apexcharts-toolbar>div.apexcharts-menu-icon>div>span {
color: white;
position: absolute;
top: -22px;
font-size: 16px;
margin-left: 40px;
}
.apexcharts-toolbar>div.apexcharts-menu-icon>div>i {
color: white;
}
#modal_detail_kelurahan>div>div>div>fieldset>div>div:nth-child(1)>div.tombol-edit.text-center>a {
color: white;
}
#modal_detail_kelurahan>div>div>div>fieldset>div>div:nth-child(1)>div.tombol-edit.text-center>a:hover {
box-shadow: 0 0 0 100px rgb(0 0 0 / 0%) inset;
}
.apexcharts-menu.apexcharts-menu-open {
color: black!important;
}
@media (max-width: 1025px) { @media (max-width: 1025px) {
.dock { .dock {
position: absolute; position: absolute;
......
<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.75 18.6875L3.25 20.3125V5.6875L9.75 4.0625" stroke="#E86250" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M12 23L4 25V7L12 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16.25 21.9375L9.75 18.6875V4.0625L16.25 7.3125V21.9375Z" stroke="#E86250" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M20 27L12 23V5L20 9V27Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16.25 7.3125L22.75 5.6875V20.3125L16.25 21.9375" stroke="#E86250" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M20 9L28 7V25L20 27" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg> </svg>
This diff is collapsed.
<svg width="1440" height="1024" viewBox="0 0 1440 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="1440" height="1024" fill="#090909" fill-opacity="0.25"/>
</svg>
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
<svg width="278" height="330" viewBox="0 0 278 330" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="278" height="330">
<rect width="278" height="330" rx="10" fill="url(#paint0_linear)"/>
</mask>
<g mask="url(#mask0)">
<path opacity="0.2" d="M199.78 294.593C292.322 334.061 278.284 169.675 277.764 130H297V332H262.687H101C113.477 306.835 147.667 272.367 199.78 294.593Z" fill="#4077B4"/>
<path d="M203.252 297.185C292.489 333.918 278.952 180.925 278.451 144H297V332H263.912H108C120.032 308.579 153 276.5 203.252 297.185Z" fill="#4077B4"/>
</g>
<defs>
<linearGradient id="paint0_linear" x1="169" y1="-34" x2="133.5" y2="359.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#3085E8"/>
<stop offset="1" stop-color="#3D7DB8"/>
</linearGradient>
</defs>
</svg>
This diff is collapsed.
This diff is collapsed.
...@@ -1154,6 +1154,7 @@ ...@@ -1154,6 +1154,7 @@
<input type="text" name="idtuplah" id="idtuplah" class="hidden" value=""> <input type="text" name="idtuplah" id="idtuplah" class="hidden" value="">
<input type="text" name="coordinatetuplah" id="coordinatetuplah" class="hidden" value=""> <input type="text" name="coordinatetuplah" id="coordinatetuplah" class="hidden" value="">
<input type="text" name="luastuplah" id="lwastuplah" class="hidden" value="">
<div class="col-md-12"> <div class="col-md-12">
<div> <div>
...@@ -1169,13 +1170,14 @@ ...@@ -1169,13 +1170,14 @@
<span>Luas Lahan</span> <span>Luas Lahan</span>
</div> </div>
<div> <div>
<span style="font-family: 'Roboto';">` + feature.legend.f3 + `m2</span> <span style="font-family: 'Roboto';">` + feature.legend.f3 + ` m2</span>
</div> </div>
</div> </div>
</div>`) </div>`)
$('#idtuplah').val(feature.legend.f1); $('#idtuplah').val(feature.legend.f1);
$('#lwastuplah').val(feature.legend.f3);
$("#coordinatetuplah").val(feature.geometry); $("#coordinatetuplah").val(feature.geometry);
$("#button_hide_panel").css("display", "block"); $("#button_hide_panel").css("display", "block");
...@@ -1271,6 +1273,7 @@ ...@@ -1271,6 +1273,7 @@
} }
var id_poly = $('#idtuplah').val(); var id_poly = $('#idtuplah').val();
var lwastup = $("#lwastuplah").val();
$.ajax({ $.ajax({
url: "{% url 'api:edit-tuplah' %}", url: "{% url 'api:edit-tuplah' %}",
...@@ -1282,6 +1285,7 @@ ...@@ -1282,6 +1285,7 @@
$("#modal-edit-tuplah").modal("show") $("#modal-edit-tuplah").modal("show")
$("#modal_detail_non_kelurahan").modal("toggle") $("#modal_detail_non_kelurahan").modal("toggle")
loaderPage(false); loaderPage(false);
$("#luas_tuplah_edit").val(lwastup);
let response = data let response = data
if (response.code == 0) { if (response.code == 0) {
setTimeout(function() { setTimeout(function() {
...@@ -1294,10 +1298,8 @@ ...@@ -1294,10 +1298,8 @@
var longg = 0; var longg = 0;
for (var i = 0; i < lop_poly_edit.length; i++) { for (var i = 0; i < lop_poly_edit.length; i++) {
geoj = lop_poly_edit[i]; geoj = lop_poly_edit[i];
console.log(lop_poly_edit[i])
for (var i = 0; i < geoj.length; i++) { for (var i = 0; i < geoj.length; i++) {
console.log(geoj[i])
polygigi = [geoj[i][1], geoj[i][0]] polygigi = [geoj[i][1], geoj[i][0]]
list_poly_edit.push(polygigi); list_poly_edit.push(polygigi);
latt += geoj[i][0] latt += geoj[i][0]
...@@ -1306,8 +1308,6 @@ ...@@ -1306,8 +1308,6 @@
}; };
var lattt = latt / list_poly_edit.length var lattt = latt / list_poly_edit.length
var longgg = longg / list_poly_edit.length var longgg = longg / list_poly_edit.length
console.log(list_poly_edit)
map_edit_tuplah.setView([longgg, lattt], 14); map_edit_tuplah.setView([longgg, lattt], 14);
...@@ -2056,10 +2056,13 @@ ...@@ -2056,10 +2056,13 @@
</div> </div>
`) `)
if (feature.properties.f16 != null) {
var list_history = feature.properties.f16 if (feature.properties.f7 != null) {
console.log(feature.properties.f7)
var list_history = feature.properties.f7
console.log(list_history[0].split(",")[0]) console.log(list_history[0].split(",")[0])
var perbaikan_pt = `<div class='row'> var perbaikan_jl = `<div class='row'>
<label class="col-md-8">` + list_history[0].split(",")[1] + `</label> <label class="col-md-8">` + list_history[0].split(",")[1] + `</label>
...@@ -2070,7 +2073,7 @@ ...@@ -2070,7 +2073,7 @@
<a class="col-md-6" class="btn" id="btn_perbaikan_jalan"><i>Input Perbaikan</i></a>` <a class="col-md-6" class="btn" id="btn_perbaikan_jalan"><i>Input Perbaikan</i></a>`
} else { } else {
var perbaikan_pt = `<div class='row'> var perbaikan_jl = `<div class='row'>
<div class="col-md-6"> <div class="col-md-6">
<label class="col-md-6">Null</label> <label class="col-md-6">Null</label>
</div> </div>
...@@ -2093,7 +2096,8 @@ ...@@ -2093,7 +2096,8 @@
$(".isi_keterangan").html(` $(".isi_keterangan").html(`
<input type="text" name="idjalan" id="idjalan" class="hidden" value=""> <input type="text" name="idjalan" id="idjalan" class="hidden" value="">
<input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value=""> <input type="text" name="coordinatejalan" id="coordinatejalan" class="hidden" value="">
<div> <div class="row">
<div class="col-md-6">
<div> <div>
<span>Panjang Jalan</span> <span>Panjang Jalan</span>
</div> </div>
...@@ -2101,7 +2105,7 @@ ...@@ -2101,7 +2105,7 @@
<span>` + feature.properties.f3 + `m</span> <span>` + feature.properties.f3 + `m</span>
</div> </div>
</div> </div>
<div> <div class="col-md-6">
<div> <div>
<span>Lebar Jalan</span> <span>Lebar Jalan</span>
</div> </div>
...@@ -2110,6 +2114,8 @@ ...@@ -2110,6 +2114,8 @@
</div> </div>
</div> </div>
</div>
<div> <div>
<div> <div>
<span>Tipe Jalan</span> <span>Tipe Jalan</span>
...@@ -2290,12 +2296,11 @@ ...@@ -2290,12 +2296,11 @@
}); });
$(document).on("click", "#btn_jalan", function() { $(document).on("click", "#btn_jalan", function() {
if (map_edit_jalan.hasLayer(polygon_edit_jalan)) { if (map_edit_jalan.hasLayer(polygon_edit_jalan)) {
polygon_edit_jalan.remove() polygon_edit_jalan.remove()
} }
var id_poly = $('#idjalan').val(); var id_poly = $('#idjalan').val();
$("#modal-jalan").modal("show")
$.ajax({ $.ajax({
url: "{% url 'api:edit-jalan' %}", url: "{% url 'api:edit-jalan' %}",
data: { data: {
...@@ -2304,8 +2309,8 @@ ...@@ -2304,8 +2309,8 @@
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
loaderPage(false); loaderPage(false);
$("#modal-jalan").modal("show")
$(".modal_detail_non_kelurahan").modal("hide") $("#modal_detail_non_kelurahan").modal("hide")
setTimeout(function() { setTimeout(function() {
map_edit_jalan.invalidateSize(); map_edit_jalan.invalidateSize();
}, 1000); }, 1000);
...@@ -2348,7 +2353,8 @@ ...@@ -2348,7 +2353,8 @@
$(document).on("click", "#btn_hapus_jalan", function() { $(document).on("click", "#btn_hapus_jalan", function() {
$("#modal-hapus-jalan").modal("show")
$("#modal_detail_non_kelurahan").modal("hide")
var id_poly = $('#idjalan').val(); var id_poly = $('#idjalan').val();
$.ajax({ $.ajax({
...@@ -2383,7 +2389,7 @@ ...@@ -2383,7 +2389,7 @@
icon: "success", icon: "success",
confirmButtonColor: "#00BCD4" confirmButtonColor: "#00BCD4"
}, function() { }, function() {
$("#modal-hapus-jalan").css('display', 'none'); $("#modal-hapus-jalan").modal('hide');
}) })
} else { } else {
swal({ swal({
...@@ -2428,7 +2434,7 @@ ...@@ -2428,7 +2434,7 @@
icon: "success", icon: "success",
confirmButtonColor: "#00BCD4" confirmButtonColor: "#00BCD4"
}, function() { }, function() {
$("#modal-jalan").css('display', 'none'); $("#modal-jalan").modal('hide');
}) })
} else { } else {
swal({ swal({
...@@ -2759,6 +2765,8 @@ ...@@ -2759,6 +2765,8 @@
$(".modal-backdrop").css("display", "none") $(".modal-backdrop").css("display", "none")
$(".modal-backdrop").removeClass('show'); $(".modal-backdrop").removeClass('show');
$("body").css('padding-right', '0px !important') $("body").css('padding-right', '0px !important')
document.querySelector("#right-tab2-feas-upli > div > div:nth-child(6) > div > label").html(`Pimpinan`)
document.querySelector("#right-tab2-feas-upli > div > div:nth-child(3)").css("display", "block")
} }
function destroyWraper() { function destroyWraper() {
...@@ -3848,7 +3856,7 @@ ...@@ -3848,7 +3856,7 @@
$(".tombol_action_create").html(``) $(".tombol_action_create").html(``)
$(".tab_1").html("Koordinat") $(".tab_1").html("Koordinat")
$(".tab_2").html("Informasi Point") $(".tab_2").html("Informasi Point")
$(".tombol_save_create").html(`<input type="button" class="btn btn-primary" id="btnsavepoint" value="SAVE" style="margin-right:30px;"> $(".tombol_save_create").html(`<input type="button" class="btn btn-primary" id="btnsavepoint" value="SAVE">
<input type="text" name="poly_create_point" class="hidden" id="poly_create_point" value="">`) <input type="text" name="poly_create_point" class="hidden" id="poly_create_point" value="">`)
$("#koordinatjalan").html(` $("#koordinatjalan").html(`
......
This diff is collapsed.
...@@ -7,10 +7,7 @@ ...@@ -7,10 +7,7 @@
<input type="checkbox" name="checkbox" onclick="mapsganti()" id="mapschange" style="position: absolute;opacity: 0;width: 40px;height: 40px;margin-top: -5px;"> <input type="checkbox" name="checkbox" onclick="mapsganti()" id="mapschange" style="position: absolute;opacity: 0;width: 40px;height: 40px;margin-top: -5px;">
<div id="labelchange"> <div id="labelchange">
<img src="{% static 'img/icon-1/Vector3d.svg' %}" alt="" style="height: 50px; <img src="{% static 'img/icon-1/Vector3d.svg' %}" alt="" style="height: 50px;
width: 50px; width: 50px;">
margin-top: -1px;
margin-left: -4px;">
</div> </div>
</a> </a>
</div> </div>
...@@ -24,9 +21,7 @@ ...@@ -24,9 +21,7 @@
<div class="dropdown show-dropdown" style="top: 1px;"> <div class="dropdown show-dropdown" style="top: 1px;">
<a href="#" data-toggle="dropdown"> <a href="#" data-toggle="dropdown">
<img src="{% static 'img/icon-1/Vectorbasemaps.svg' %}" alt="" style="height: 50px; <img src="{% static 'img/icon-1/Vectorbasemaps.svg' %}" alt="" style="height: 50px;
width: 50px; width: 50px;">
margin-top: -1px;
margin-left: -4px;">
</a> </a>
<ul class="dropdown-menu" x-placement="bottom-start"> <ul class="dropdown-menu" x-placement="bottom-start">
<li class="header-title text-center">Maps BaseLayer</li> <li class="header-title text-center">Maps BaseLayer</li>
...@@ -81,9 +76,7 @@ ...@@ -81,9 +76,7 @@
<div class="dropdown show-dropdown "> <div class="dropdown show-dropdown ">
<a href="#" data-toggle="dropdown"> <a href="#" data-toggle="dropdown">
<img src="{% static 'img/icon-1/Vectoroverlay.svg' %}" alt="" style="height: 50px; <img src="{% static 'img/icon-1/Vectoroverlay.svg' %}" alt="" style="height: 50px;
width: 50px; width: 50px;">
margin-top: -1px;
margin-left: -4px;">
</a> </a>
<ul class="dropdown-menu" style="top: 12px; <ul class="dropdown-menu" style="top: 12px;
width: 300px; width: 300px;
......
This diff is collapsed.
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</head> </head>
<body style="font-family: 'gilroylight';"> <body style="font-family: 'gilroylight';" oncontextmenu="return false">
...@@ -136,9 +136,9 @@ ...@@ -136,9 +136,9 @@
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu" id="search_spes"> <ul class="dropdown-menu" id="search_spes">
<li><input type="hidden" value="bangunan"/><a href="#"><i class="icon-home4 text-muted text-size-base" style="color: #5A9AFB;"></i> Bangunan</a></li> <li><input type="hidden" value="bangunan" /><a href="#"><i class="icon-home4 text-muted text-size-base" style="color: #5A9AFB;"></i> Bangunan</a></li>
<li><input type="hidden" value="jalan"/><a href="#"><i class="icon-git-branch text-muted text-size-base" style="color: #5A9AFB;"></i> Jalan</a></li> <li><input type="hidden" value="jalan" /><a href="#"><i class="icon-git-branch text-muted text-size-base" style="color: #5A9AFB;"></i> Jalan</a></li>
<li><input type="hidden" value="point"/><a href="#"><i class="icon-location4 text-muted text-size-base" style="color: #5A9AFB;"></i> Point</a></li> <li><input type="hidden" value="point" /><a href="#"><i class="icon-location4 text-muted text-size-base" style="color: #5A9AFB;"></i> Point</a></li>
</ul> </ul>
</div> </div>
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
</div> </div>
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<a href="#" class="btn btn-default" style="background-color: #ffffff; <!-- <a href="#" class="btn btn-default" style="background-color: #ffffff;
border: 1px solid #dadce0; border: 1px solid #dadce0;
-webkit-border-radius: 100px; -webkit-border-radius: 100px;
border-radius: 100px; border-radius: 100px;
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
padding: 8px 16px; padding: 8px 16px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis;" id="pengaturan_btn" data-toggle="modal" data-target="#user_profile" data-backdrop="static" data-keyboard="false">Pengaturan</a> text-overflow: ellipsis;" id="pengaturan_btn" data-toggle="modal" data-target="#user_profile" data-backdrop="static" data-keyboard="false">Pengaturan</a> -->
</div> </div>
</div> </div>
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
<li> <li>
<div style="border-bottom: 0.5px solid #DCDCDC;margin-bottom:10px;"> <div style="border-bottom: 0.5px solid #DCDCDC;margin-bottom:10px;">
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<a href="{% url 'usermanagement' %}" style=" background-color: #ffffff; <a href="#" style=" background-color: #ffffff;
color: #3c4043; color: #3c4043;
display: table; display: table;
font: 500 14px/16px Google Sans,Roboto,RobotoDraft,Helvetica,Arial,sans-serif; font: 500 14px/16px Google Sans,Roboto,RobotoDraft,Helvetica,Arial,sans-serif;
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
padding: 14px 41px; padding: 14px 41px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
width: 100%;"><i class="icon-user"></i>&nbsp;&nbsp;Kelola User</a> width: 100%;" id="pengaturan_btn" data-toggle="modal" data-target="#user_profile" data-backdrop="static" data-keyboard="false" onclick="load_manage()"><i class="icon-user"></i>&nbsp;&nbsp;Management</a>
</div> </div>
</div> </div>
</li> </li>
...@@ -377,8 +377,32 @@ ...@@ -377,8 +377,32 @@
{% include 'includes/js-o.html' %} {% include 'includes/js-m.html' %} {% include 'includes/js-o.html' %} {% include 'includes/js-m.html' %}
<script type="text/javascript" src="{% static 'js/action.js' %}"></script> <script type="text/javascript" src="{% static 'js/action.js' %}"></script>
<script> <script>
// start disabled inspect
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
});
document.onkeydown = function(e) {
if(event.keyCode == 123) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
return false;
}
if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
return false;
}
}
// end disabled inspect
var dar = null; var dar = null;
$('#search_spes li a').on('click', function(){ $('#search_spes li a').on('click', function() {
$('#input_search').val(null) $('#input_search').val(null)
tes = $(this).text(); tes = $(this).text();
dar = tes dar = tes
...@@ -2131,4 +2155,7 @@ ...@@ -2131,4 +2155,7 @@
}); });
} }
}); });
$('.leaflet-bottom.leaflet-right>.leaflet-control-attribution.leaflet-control').html(`Powered by <a href="https://khansia.co.id" target="_blank">Khansia</a> with <a href="https://leafletjs.com" target="_blank">Leaflet</a>`)
$('.leaflet-bottom.leaflet-right>.leaflet-control-attribution.leaflet-control').css("right", "50px")
</script> </script>
\ No newline at end of file
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome</title>
</head>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
<link href="{% static 'css/icons/icomoon/styles.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'css/bootstrap.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'css/core.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'css/components.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'css/colors.css' %}" rel="stylesheet" type="text/css">
<style>
@font-face {
font-family: 'gilroybold';
src: url('/static/css/gilroy-bold.woff') format('woff');
}
@font-face {
font-family: 'gilroylight';
src: url('/static/css/gilroy-light.woff') format('woff');
}
@font-face {
font-family: 'gilroysemibold';
src: url('/static/css/gilroy-semibold.woff') format('woff');
}
@font-face {
font-family: 'gilroymedium';
src: url('/static/css/Gilroy-Medium.woff') format('woff');
}
@font-face {
font-family: 'gilroyreguler';
src: url('/static/css/Gilroy-Regular.woff') format('woff');
}
@font-face {
font-family: 'gilroythin';
src: url('/static/css/Gilroy-Thin.woff') format('woff');
}
@font-face {
font-family: 'gilroyultralight';
src: url('/static/css/Gilroy-UltraLight.woff') format('woff');
}
</style>
<body>
<div style="background: url(/static/img/icon-1/bg1.png);
width: 100%;
height: 100%;
background-size: 100% 100%;">
<!-- <div> -->
<div style=" position: absolute;
background: url(/static/img/icon-1/bg4.svg);
width: 742px;
height: 130px;
bottom: 15%;
left: 10%;"></div>
<div style="position: absolute;background: url(/static/img/icon-1/bg3.svg);width: 65%;height: 75%;top: 0;left: 35%;background-size: 100% 100%;z-index: 9;"></div>
<!-- </div> -->
<div style="height: 100vh;width: 100%;background-color: rgba(9, 9, 9, 0.3);margin:0px;">
<div style="margin-left: 10%;padding-top: 10%;">
<div style="/* margin-top: 10%; */font-size: 50px;color: white;font-family: 'gilroybold';">
Hai {{user.username}},
</div>
<div style="font-size: 50px;color: white;font-family: 'gilroylight';">
Selamat datang di website
</div>
<div style="font-size: 60px;color: #1F6ABD;font-family: 'gilroybold';">
Temanku!
</div>
<div style="font-size: 30px;color: white;font-family:'gilroylight';">
Sistem Informasi Pembangunan OKU
</div>
</div>
</div>
</div>
<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://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js" integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/" crossorigin="anonymous"></script>
<script src="{% static 'js/plugins/notifications/sweet_alert.min.js' %}"></script>
</body>
</html>
<script>
setTimeout(function() {
window.location.href = "{% url 'apps:dashboard' %}";
}, 1000);
</script>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment