Merge branch 'dev'
This commit is contained in:
@@ -22,14 +22,6 @@
|
||||
|
||||
<div class="card-tools">
|
||||
<a class="btn btn-tool btn-dark" href="{{ route('users.create') }}"><i class="fa fa-edit"></i> Tambah Data</a>
|
||||
<!-- <button id="btn_lock_all" type="button" class="btn btn-tool btn-dark"><i class="fa fa-lock"></i> Lock Upload Data</button> -->
|
||||
<button id="btn_reset_lock_all" type="button" class="btn btn-tool btn-dark"><i class="fa fa-unlock"></i> unLock Upload Data</button>
|
||||
<!-- <button id="btn_lock_tambah" type="button" class="btn btn-tool btn-dark"><i class="fa fa-lock"></i> Lock Tambah Data</button> -->
|
||||
<button id="btn_reset_tambah" type="button" class="btn btn-tool btn-dark"><i class="fa fa-unlock"></i> unLock Tambah Data</button>
|
||||
<!-- <button id="btn_lock_ubah" type="button" class="btn btn-tool btn-dark"><i class="fa fa-lock"></i> Lock Ubah Data</button> -->
|
||||
<button id="btn_reset_ubah" type="button" class="btn btn-tool btn-dark"><i class="fa fa-unlock"></i> unLock Ubah Data</button>
|
||||
<button id="btn_lock_hapus" type="button" class="btn btn-tool btn-dark"><i class="fa fa-lock"></i> Lock Hapus Data</button>
|
||||
<button id="btn_reset_hapus" type="button" class="btn btn-tool btn-dark"><i class="fa fa-unlock"></i> unLock Hapus Data</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -40,10 +32,10 @@
|
||||
<th>NRK</th>
|
||||
<th>Nama</th>
|
||||
<th>Level</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_all" >Lock Upload</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_tambah">Lock Tambah</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_ubah">Lock Ubah</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_hapus">Lock Hapus</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_all" value="1">Lock Upload</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_tambah" value="1" {{ $pengaturan->check_all_tambah=="1"?"checked":"" }}>Lock Tambah</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_ubah" value="1" {{ $pengaturan->check_all_ubah=="1"?"checked":"" }}>Lock Ubah</th>
|
||||
<th><input class="form-check-input" type="checkbox" id="btn_lock_hapus" value="1" {{ $pengaturan->check_all_hapus=="1"?"checked":"" }}>Lock Hapus</th>
|
||||
<th class="text-center">Action</th>
|
||||
</thead>
|
||||
</tr>
|
||||
@@ -201,6 +193,8 @@
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
|
||||
$("#btn_reset_lock_all").on("click", function(){
|
||||
let test = Swal.fire({
|
||||
@@ -220,6 +214,7 @@
|
||||
|
||||
|
||||
$("#btn_lock_tambah").on("click", function(){
|
||||
let checkVal = $(this).prop("checked");
|
||||
let test = Swal.fire({
|
||||
title: 'Fitur tambah data akan dikunci untuk semua user!?',
|
||||
showDenyButton: true,
|
||||
@@ -230,7 +225,8 @@
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-tambah-all/0/0";
|
||||
let val = checkVal == true?1:2;
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-tambah-all/0/0/"+val;
|
||||
}
|
||||
})
|
||||
});
|
||||
@@ -252,6 +248,7 @@
|
||||
});
|
||||
|
||||
$("#btn_lock_ubah").on("click", function(){
|
||||
let checkVal = $(this).prop("checked");
|
||||
let test = Swal.fire({
|
||||
title: 'Fitur ubah data akan dikunci untuk semua user!?',
|
||||
showDenyButton: true,
|
||||
@@ -262,7 +259,8 @@
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-ubah-all/0/0";
|
||||
let val = checkVal == true?1:2;
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-ubah-all/0/0/"+val;
|
||||
}
|
||||
})
|
||||
});
|
||||
@@ -284,6 +282,7 @@
|
||||
});
|
||||
|
||||
$("#btn_lock_hapus").on("click", function(){
|
||||
let checkVal = $(this).prop("checked");
|
||||
let test = Swal.fire({
|
||||
title: 'Fitur hapus data akan dikunci untuk semua user!?',
|
||||
showDenyButton: true,
|
||||
@@ -294,7 +293,8 @@
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-hapus-all/0/0";
|
||||
let val = checkVal == true?1:2;
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-hapus-all/0/0/"+val;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user