Commit 6561492a authored by Manggar Mahardhika's avatar Manggar Mahardhika

search ganti

parents 6f034801 13e958f1
......@@ -82,5 +82,6 @@ urlpatterns = [
path('edit_detail_poin', views.edit_detail_poin),
path('dpoint', views.dpoint, name='dpoint'),
path('download_perbaikan_data', views.download_perbaikan_data)
path('download_perbaikan_data', views.download_perbaikan_data),
path('search_list_perbaikan', views.search_list_perbaikan)
]
\ No newline at end of file
......@@ -3689,4 +3689,29 @@ def dpoint(request):
status = 1
respon={'data':data, 'info': info, 'status':status}
return Response(respon)
\ No newline at end of file
return Response(respon)
@api_view(('GET',))
def search_list_perbaikan(request):
v = request.GET.get('v_list')
with conn.cursor() as list_s:
list_s.execute(
"""SELECT
gl.NAME,
tp.id_object,
tp.NAME,
tp.TYPE,
tp.tgl_perbaikan,
tp.anggaran,
tp.tgl_selesai
FROM
( SELECT tbl_perbaikan.*, ROW_NUMBER ( ) OVER ( PARTITION BY id_object ORDER BY tgl_selesai DESC ) AS rn FROM tbl_perbaikan ) tp
JOIN geo_label gl ON gl.ID = tp.type_id
WHERE
rn = 1
AND ( gl.NAME ILIKE'{}%' OR tp.NAME ILIKE'{}%' OR tp.TYPE ILIKE'{}%' OR tp.anggaran ILIKE'{}%' )""".format(v,v,v,v))
search_list = list_s.fetchall()
return Response(search_list)
\ No newline at end of file
......@@ -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
......@@ -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} \nemail pengirim : {email} \nisi pesan : \n\n{isi}"
elif isih != '':
mess = f"nama pengirim : {pengirimh} \nemail pengirim : {emailh} \nisi 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
......@@ -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
......@@ -234,6 +234,7 @@ def addUser(request):
password = request.POST.get('username')
iduser = request.POST.get('id')
isStaff = request.POST.get('isStaff')
phone = request.POST.get('phone')
# arrGroup = group.split("~")
......@@ -245,10 +246,11 @@ def addUser(request):
try:
if iduser:
with conn.cursor() as cursor:
cursor.execute("UPDATE auth_user SET first_name = '"+first_name+"', last_name = '"+last_name+"', email = '"+email+"' WHERE id="+iduser)
cursor.execute("UPDATE auth_user SET first_name = '"+first_name+"', last_name = '"+last_name+"', email = '"+email+"', phone = '"+phone+"' WHERE id="+iduser)
with conn.cursor() as curGroup:
curGroup.execute("DELETE FROM auth_user_groups WHERE user_id="+iduser)
if group != 'none':
with conn.cursor() as curGroup:
curGroup.execute("DELETE FROM auth_user_groups WHERE user_id="+iduser)
users = User.objects.get(username=usernames)
......@@ -282,13 +284,19 @@ def addUser(request):
user.password = make_password(password)
user.save()
# add user to group
userinsert = User.objects.get(username=usernames)
insertgroups = Group.objects.get(name=group)
insertgroups.user_set.add(userinsert)
# add phone
with conn.cursor() as cursor:
cursor.execute("UPDATE auth_user SET phone = '%s' WHERE username = '%s' and first_name = '%s' and last_name = '%s'"%(phone, usernames, first_name, last_name))
print(user)
data = {
"code" : 0,
......@@ -424,7 +432,8 @@ def loadUserbyId(request):
"last" : rows[2],
"group" : group_res,
"is_staff" : rows[9],
"filepath" : rows[11]
"filepath" : rows[11],
"phone" : rows[12]
}
user_res.append(datas)
......
......@@ -808,6 +808,50 @@ li.active>a:after {
color: black!important;
}
.modal-login {
top: 80%;
background-color: white;
z-index: 999;
border-radius: 8px
}
#btn-signin {
border-radius: 5px;
background: linear-gradient(147.95deg, #4C97DC -38.4%, #4969DA 140.26%);
margin-right: 8px;
color: white;
}
.row-full-height {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
.img-centered {
top: 50%;
position: absolute;
left: 50%;
transform: translate(-50%, -50%);
}
.vertical-centered {
top: 50%;
transform: translateY(-50%);
}
.img-features {
position: absolute;
background: url(/static/img/icon-1/bg4.svg);
width: 742px;
height: 130px;
top: 65%;
right: 0;
margin-right: 24px;
}
input#change_stat {
display: block!important;
}
......@@ -832,6 +876,31 @@ input#change_stat {
margin: 10px;
}
.navbar .navbar-inverse {
display: none
}
.page-content {
display: table;
}
body>ul>li.fixed-plugin.no3d.overlay-cek>div.dropdown.show-dropdown.open>ul {
width: 300px;
margin-left: -270px!important;
}
/*
#DataTables_Table_0>thead>tr>th:nth-child(1) {
width: 5%!important;
;
}
#DataTables_Table_0>thead>tr>th:nth-child(2) {
width: 20%!important;
} */
@media (max-width: 1025px) {
.dock {
position: absolute;
......@@ -859,4 +928,215 @@ input#change_stat {
#map>div.col-md-6.col-md-offset-3.input-group.content-group.foot>div>div.col-md-2>button {
right: 0px!important;
}
.modal-login {
background-color: white;
z-index: 999;
border-radius: 8px;
}
#btn-signin {
border-radius: 5px;
background: linear-gradient(147.95deg, #4C97DC -38.4%, #4969DA 140.26%);
color: white;
padding-right: 16px;
}
#searchbar {
margin-left: 16px;
margin-right: 16px;
}
.centered {
top: 50% !important;
transform: translateY(-50%) !important;
margin-left: auto !important;
margin-right: auto !important;
}
}
@media (max-width: 720px) {
/* html {
transform: rotate(-90deg);
transform-origin: left top;
width: 100vh;
height: 100vw;
overflow-x: hidden;
position: absolute;
top: 100%;
left: 0;
} */
.dock {
position: absolute;
top: -4px;
left: 95%;
}
#map>div.leaflet-control-container>div.leaflet-bottom.leaflet-right {
right: 5px;
}
#map .head {
top: 1%!important;
}
.dock {
left: 93%;
}
.navbar .navbar-inverse {
display: block
}
#map>div.row>div.col-sm-4.input-group.content-group.head {
width: 80%;
margin-top: -15px;
margin-left: 60px;
}
.user-p-nav {
display: none
}
li.fixed-plugin .dropdown-menu {
transform: scale(0.769230);
float: right;
position: absolute;
right: -550px;
width: 190px;
margin-left: -175px !important;
margin-top: -137px !important;
top: 20px;
margin-right: -550px;
}
li.overlay-cek .dropdown-menu {
transform: scale(0.769230);
float: right;
position: absolute;
right: -550px;
width: 190px;
margin-left: -175px !important;
margin-top: -127px !important;
top: 13px;
margin-right: -550px;
}
.menu-heading {
color: black;
}
.menu-list>a>img {
min-width: 120px!important;
min-height: 20px!important;
max-height: 90px!important;
}
#bottom-tab2>div>div:nth-child(2) {
display: none;
}
#panel-sm {
width: 100%!important;
top: 0px;
}
#panel-sm2 {
width: 100%!important;
top: 0px;
position: absolute;
}
#panel-sm>div {
margin-left: 0px
}
body>div.page-container>div>div.sidebar.sidebar-main {
/* transform: rotate( 270deg);
height: 100%;
float: right;
margin-left: 282px;
top: -290px; */
display: block;
}
#bottom-tab1>div {
margin-left: 10px;
}
#bottom-tab1>div>div.col-sm-2 {
display: none;
}
#bottom-tab2>div>div:nth-child(4) {
margin-left: 18px;
}
#bottom-tab2>div>div {
margin-left: 10px;
}
#panel-sm>div>div.bod>div>ul {
background: #1B1F2D;
}
#panel-sm>div>div.bod>div>ul>li.active>a {
background: #353847;
}
#panel-sm>div>div.bod>div>ul {
border-top: none;
border-left: none;
}
#panel-sm>div>div.bod>div>div {
margin-left: 10px;
}
body>ul>li.fixed-plugin.no3d.overlay-cek>div.dropdown.show-dropdown.open>ul {
width: 270px!important;
margin-left: -245px!important;
}
body>div.page-container>div>div.sidebar.sidebar-main>div.sidebar-category.sidebar-category-visible>div>ul:nth-child(1) {
margin-bottom: 47vh!important;
}
body>div.page-container>div>div.sidebar.sidebar-main>div.sidebar-category.sidebar-category-visible>div>ul:nth-child(2)>li:nth-child(1)>a {
display: none
}
.modal-dialog {
margin-top: 0px;
top: 7%!important;
}
.modal-content {
margin-left: 20px!important;
}
#modal_detail_non_kelurahan>div>div>div.modal-body>fieldset>div>div:nth-child(2)>div>div {
margin-left: 5px
}
#panel-sm2>div:nth-child(2) {
max-height: 103vh;
height: 103vh!important;
overflow: scroll;
left: 50px!important;
width: 90%!important;
}
#panel-sm2>div:nth-child(1) {
display: none;
}
/* #modal_detail_perbaikan>div>div>div>div.isi.text {
max-height: 93vh!important;
}
#modal_detail_perbaikan {
max-height: 100vh!important;
} */
#modal_detail_perbaikan>div {
top: 0%!important;
}
#modal_detail_perbaikan>div>div>div>div.isi.text {
max-height: 94vh!important;
}
#modal_detail_perbaikan {
max-height: 100vh!important;
}
#DataTables_Table_0>thead>tr>th:nth-child(4),
#DataTables_Table_0>thead>tr>th:nth-child(5),
#DataTables_Table_0>thead>tr>th:nth-child(6),
#DataTables_Table_0>thead>tr>th:nth-child(7),
#DataTables_Table_0>tbody>tr>td:nth-child(4),
#DataTables_Table_0>tbody>tr>td:nth-child(5),
#DataTables_Table_0>tbody>tr>td:nth-child(6),
#DataTables_Table_0>tbody>tr>td:nth-child(7) {
display: none;
}
#DataTables_Table_0>tbody>tr>td:nth-child(8)>a>td>i {
display: none;
}
#DataTables_Table_0>tbody>tr>td:nth-child(8)>a {
width: 75px!important;
}
}
@media (min-width: 1025px) {
#map>div.col-md-6.col-md-offset-3.modal-login.input-group.content-group.foot.centered {
top: 75%;
}
#map>div.col-md-6.col-md-offset-3.modal-login.input-group.content-group.foot.centered>div>div.col-md-1 {
padding: 20px;
margin-left: 10px;
}
#map>div.col-md-6.col-md-offset-3.modal-login.input-group.content-group.foot.centered>div>div.col-md-2 {
margin-right: 10px;
}
}
\ No newline at end of file
......@@ -69,11 +69,269 @@ input:checked+.slider:before {
border-radius: 50%;
}
#user_profile>.table-sm>thead>tr>th,
.table-sm>tbody>tr>th,
.table-sm>tfoot>tr>th,
.table-sm>thead>tr>td,
.table-sm>tbody>tr>td,
.table-sm>tfoot>tr>td {
#user_profile>.table-sm>thead>tr>th {
padding: 13px 20px;
}
/*
* Table
*/
table.dataTable {
margin: 0 auto;
clear: both;
width: 100%;
margin-bottom: 20px!important;
}
table.dataTable thead th {
padding: 3px 0px 3px 10px;
cursor: pointer;
*cursor: hand;
}
table.dataTable tfoot th {
padding: 3px 10px;
}
table.dataTable td {
padding: 3px 10px;
}
table.dataTable td.center,
table.dataTable td.dataTables_empty {
text-align: center;
}
#DataTables_Table_0>tbody>tr>td:nth-child(8)>a>td {
padding: 0;
}
/*
* Table wrapper
*/
.dataTables_wrapper {
position: relative;
clear: both;
*zoom: 1;
}
.dataTables_wrapper .ui-widget-header {
font-weight: normal;
}
.dataTables_wrapper .ui-toolbar {
padding: 5px;
}
/*
* Page length menu
*/
.dataTables_length {
float: left;
display: none;
}
/*
* Filter
*/
.dataTables_filter {
text-align: right;
}
/*
* Table information
*/
.dataTables_info {
padding-top: 3px;
clear: both;
float: left;
}
/*
* Pagination
*/
.dataTables_paginate {
float: right;
text-align: right;
}
.dataTables_paginate .ui-button {
margin-right: -0.1em !important;
}
.paging_two_button .ui-button {
float: left;
cursor: pointer;
cursor: hand;
}
.paging_full_numbers .ui-button {
padding: 2px 6px;
margin: 0;
cursor: pointer;
cursor: hand;
color: #333 !important;
}
/* Two button pagination - previous / next */
.paginate_disabled_previous,
.paginate_enabled_previous,
.paginate_disabled_next,
.paginate_enabled_next {
height: 19px;
float: left;
cursor: pointer;
*cursor: hand;
color: #111 !important;
}
.paginate_disabled_previous:hover,
.paginate_enabled_previous:hover,
.paginate_disabled_next:hover,
.paginate_enabled_next:hover {
text-decoration: none !important;
}
.paginate_disabled_previous:active,
.paginate_enabled_previous:active,
.paginate_disabled_next:active,
.paginate_enabled_next:active {
outline: none;
}
.paginate_disabled_previous,
.paginate_disabled_next {
color: #666 !important;
}
.paginate_disabled_previous,
.paginate_enabled_previous {
padding-left: 23px;
}
.paginate_disabled_next,
.paginate_enabled_next {
padding-right: 23px;
margin-left: 10px;
}
.paginate_enabled_previous {
background: url('../images/back_enabled.png') no-repeat top left;
}
.paginate_enabled_previous:hover {
background: url('../images/back_enabled_hover.png') no-repeat top left;
}
.paginate_disabled_previous {
background: url('../images/back_disabled.png') no-repeat top left;
}
.paginate_enabled_next {
background: url('../images/forward_enabled.png') no-repeat top right;
}
.paginate_enabled_next:hover {
background: url('../images/forward_enabled_hover.png') no-repeat top right;
}
.paginate_disabled_next {
background: url('../images/forward_disabled.png') no-repeat top right;
}
/* Full number pagination */
.paging_full_numbers a:active {
outline: none
}
.paging_full_numbers a:hover {
text-decoration: none;
}
.paging_full_numbers a.paginate_button,
.paging_full_numbers a.paginate_active {
border: 1px solid #aaa;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
padding: 2px 5px;
margin: 0 3px;
cursor: pointer;
*cursor: hand;
color: #333 !important;
}
.paging_full_numbers a.paginate_button:hover {
text-decoration: none !important;
}
/*
* Processing indicator
*/
.dataTables_processing {
position: absolute;
top: 50%;
left: 50%;
width: 250px;
height: 30px;
margin-left: -125px;
margin-top: -15px;
padding: 14px 0 2px 0;
border: 1px solid #ddd;
text-align: center;
color: #999;
font-size: 14px;
}
/*
* Sorting
*/
table.dataTable thead th div.DataTables_sort_wrapper {
position: relative;
padding-right: 20px;
padding-right: 20px;
}
table.dataTable thead th div.DataTables_sort_wrapper span {
position: absolute;
top: 50%;
margin-top: -8px;
right: 0;
}
table.dataTable th:active {
outline: none;
}
/*
* Scrolling
*/
.dataTables_scroll {
clear: both;
}
.dataTables_scrollBody {
*margin-top: -1px;
}
\ No newline at end of file
......@@ -274,6 +274,17 @@ function load_manage() {
targets: [0],
}, ],
dom: '<"float-left "B>frtip',
buttons: [{
text: 'Add new button',
action: function(e, dt, node, config) {
dt.button().add(1, {
text: 'Button ' + (counter++),
action: function() {
this.remove();
}
});
}
}],
language: {
search: ' _INPUT_',
searchPlaceholder: 'Data User...',
......@@ -285,6 +296,7 @@ function load_manage() {
'previous': '&larr;'
}
},
drawCallback: function() {
$(this).find('tbody tr').slice(-3).find('.dropdown, .btn-group').addClass('dropup');
},
......@@ -647,6 +659,7 @@ function loaduserbyid(id) {
$("#inNameF").val(user.firstname);
$("#inNameL").val(user.lastname);
$("#inEmail").val(user.email);
$("#phone").val(user.phone)
if (user.is_staff) {
$('input[name=isStaff][value=true]').attr('checked', true)
} else {
......@@ -750,16 +763,6 @@ function modal_detail_point_pengaturan(id, db) {
$("#saveuser").on("click", function() {
addUser()
})
// function destroyfade() {
// $(".modal-backdrop").css("display", "none")
// $(".modal-backdrop").removeClass('show');
// $("body").css('padding-right', '0px !important')
// }
function addUser() {
var isObject = {};
var ars = ''
var group = $("#select_group").val();
......@@ -769,18 +772,11 @@ function addUser() {
isObject.id = iduser;
}
// for(i in group){
// if(i < group.length-1){
// ars += group[i]+"~";
// }else{
// ars += group[i];
// }
// }
// return false
isObject['username'] = $("#inUsername").val();
isObject['first_name'] = $("#inNameF").val();
isObject['last_name'] = $("#inNameL").val();
isObject['email'] = $("#inEmail").val();
isObject['phone'] = $("#phone").val();
isObject.group = group
isObject.isStaff = $('input[name="isStaff"]:checked').val();
......@@ -794,8 +790,6 @@ function addUser() {
if (response.code == 0) {
$("#modal_edit_user").css('display', 'none');
// destroyfade();
swal({
title: response.info,
text: response.data + "reload untuk mendapatkan update",
......@@ -815,7 +809,21 @@ function addUser() {
}
}
});
}
})
$("#add_user").click(function() {
$("#modal_edit_user").modal("show")
$(".modstit").html("Tambah User")
$("#inUsername").attr("disabled", false)
$("#group_use").css("display", "none")
$("#inUsername").val("")
$("#inNameF").val("")
$("#inNameL").val("")
$("#inEmail").val("")
$("#phone").val("")
$("#iduser").val("")
})
$("#saveedit_p").click(function() {
var idka = $('#id_adm_edit').val();
......@@ -1019,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
This diff is collapsed.
This diff is collapsed.
......@@ -90,9 +90,7 @@
<img src="{% static 'img/icon-1/Vectoroverlay.svg' %}" alt="" style="height: 50px;
width: 50px;">
</a>
<ul class="dropdown-menu" style="top: 12px;
width: 300px;
margin-left: -270px!important;">
<ul class="dropdown-menu">
<li class="header-title text-center">Sidebar Filters</li>
<!-- <div id="sidebar" onmouseleave="overll()">
<div class="sidebar-wrapper">
......
This diff is collapsed.
This diff is collapsed.
......@@ -632,7 +632,8 @@
<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>
<option value="Select Group"></option>
</select>
</div>
</div>
......
......@@ -53,6 +53,12 @@
font-family: 'gilroyultralight';
src: url('/static/css/Gilroy-UltraLight.woff') format('woff');
}
@media (max-width: 720px) {
body>div>div:nth-child(1) {
display: none;
}
}
</style>
<body>
......
......@@ -18,6 +18,7 @@
<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">
<link rel="stylesheet" href="{% static 'css/layout-style.css' %}">
</head>
......@@ -27,10 +28,9 @@
width: 100%;
height: 100%;
background-size: 100% 100%;">
<!-- <div> -->
<div style=" position: absolute; background: url(/static/img/icon-1/bg4.svg); width: 50%; height: 25%; top: 65%; right: 10%; background-repeat: no-repeat; background-size: 100% 100%;"></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 class="row" style="height: 100vh;width: 100%;background-color: rgba(9, 9, 9, 0.3);margin:0px; overflow: hidden;">
<div class="col-md-4 centered" style="background:#1E2233; color:white; height: 100%; ">
<div style="margin-left: 10%;margin-right: 10%;">
......@@ -43,60 +43,93 @@
<div class="col-md-9" >
<div>
<span>Sistem Informasi</span>
<!-- <div class="img-features"></div>
<div class="d-none d-md-block" 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 class="row" style="height: 100vh;width: 100%;background-color: rgba(9, 9, 9, 0.3);margin:0px;">
<div class="col-md-4 col-sm-12" style="background:#1E2233;color:white">
<div style="margin-left: 10%; margin-right: 10%;">
<div class="text-center " style="margin-top: 40%;">
<div>
<div class="row">
<div class="col-md-3">
<img src="{% static 'img/icon-1/MapTrifold.svg' %}" alt="">
</div>
<div>
<span>Pembangunan OKU</span>
<div class="col-md-9">
<div>
<span>Sistem Informasi</span> -->
</div>
<div>
<span>Pembangunan OKU</span>
</div>
</div>
</div>
</div>
<div style="margin:10%">
<span>Login</span><span>&nbsp;Temanku!</span>
</div>
</div>
<div style="margin:10%">
<span>Login</span><span>&nbsp;Temanku!</span>
</div>
</div>
<form method="POST">
{% csrf_token %}
<div class="form-group has-feedback has-feedback-left">
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control" placeholder="Username" name="username" id="username" required>
<div class="form-control-feedback">
<form method="POST">
{% csrf_token %}
<div class="form-group has-feedback has-feedback-left">
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control" placeholder="Username" name="username" id="username" required style="padding-left:5px">
</div>
</div>
</div>
<div class="form-group has-feedback has-feedback-left">
<div class="form-group">
<label>Password</label>
<input type="password" class="form-control" placeholder="Password" name="password" id="password" required>
<div class="form-control-feedback">
<div class="form-group has-feedback has-feedback-left">
<div class="form-group">
<label>Password</label>
<input type="password" class="form-control" placeholder="Password" name="password" id="password" required style="padding-left:5px">
<input type="checkbox" onclick="changecur1()" id="passcur1" style="position: absolute;top: 31px;right: 10px;width: 20px;height: 20px;opacity: 0;z-index:1;cursor: pointer;">
<div id="matachange1" style="position: absolute;top: 35px;right: 10px;color:black">
<i class="icon-eye-blocked"></i>
</div>
</div>
</div>
</div>
<div class="form-group" style="margin-top: 50px;">
<button type="submit" class="btn btn-block" style="background-color: #4C97DC;">Log in</button>
</div> {% if messages %}
<div>
{% for message in messages %} {% if message.tags == 'error' %}
<div class="alert alert-danger" style="margin-top:10px">{{ message }}</div>
{% endif %} {% endfor %}
</div>
{% endif %}
</form>
</div>
<div class="form-group" style="margin-top: 50px;">
<button type="submit" class="btn btn-block" style="background-color: #4C97DC;">Log in</button>
</div> {% if messages %}
<div>
{% for message in messages %} {% if message.tags == 'error' %}
<div class="alert alert-danger" style="margin-top:10px">{{ message }}</div>
{% endif %} {% endfor %}
</div>
{% endif %}
</form>
</div>
</div>
<div class="col-md-8">
</div>
<div class="col-md-8 d-none d-md-block">
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="{% static 'js/core/libraries/jquery.min.js' %}"></script>
</body>
</html>
\ No newline at end of file
</html>
<script>
function changecur1() {
var checkBox = document.getElementById("passcur1");
var typ = document.getElementById("password");
if (checkBox.checked == true) {
$("#matachange1").html(`<i class="icon-eye"></i>`)
typ.type = 'text';
} else {
$("#matachange1").html(`<i class="icon-eye-blocked"></i>`)
typ.type = 'password';
}
}
</script>
\ No newline at end of file
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