Merge branch 'staging' of https://git.putrakuningan.com/daengdeni/lpj into andydev
This commit is contained in:
48
module.json
48
module.json
@@ -150,7 +150,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["senior-officer"]
|
"roles": ["administrator","senior-officer"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Otorisator",
|
"title": "Otorisator",
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["senior-officer"],
|
"roles": ["administrator","senior-officer"],
|
||||||
"sub": [
|
"sub": [
|
||||||
{
|
{
|
||||||
"title": "Pelaporan",
|
"title": "Pelaporan",
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["senior-officer"]
|
"roles": ["administrator","senior-officer"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Pembayaran",
|
"title": "Pembayaran",
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["senior-officer"]
|
"roles": ["administrator","senior-officer"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Pembatalan",
|
"title": "Pembatalan",
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["senior-officer"]
|
"roles": ["administrator","senior-officer"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "SLA",
|
"title": "SLA",
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["senior-officer"]
|
"roles": ["administrator","senior-officer"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -227,7 +227,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Laporan",
|
"title": "Laporan",
|
||||||
@@ -444,7 +444,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Kontur Tanah",
|
"title": "Kontur Tanah",
|
||||||
@@ -452,7 +452,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Posisi Kavling",
|
"title": "Posisi Kavling",
|
||||||
@@ -460,7 +460,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Ketinggian Tanah",
|
"title": "Ketinggian Tanah",
|
||||||
@@ -468,7 +468,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Kondisi Fisik Tanah",
|
"title": "Kondisi Fisik Tanah",
|
||||||
@@ -476,7 +476,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Jenis Bangunan",
|
"title": "Jenis Bangunan",
|
||||||
@@ -484,7 +484,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Kondisi Bangunan",
|
"title": "Kondisi Bangunan",
|
||||||
@@ -492,7 +492,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Sifat Bangunan",
|
"title": "Sifat Bangunan",
|
||||||
@@ -500,7 +500,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -509,7 +509,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -518,7 +518,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Tingkat Keramaian",
|
"title": "Tingkat Keramaian",
|
||||||
@@ -526,7 +526,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Masyarakat Sekitar",
|
"title": "Masyarakat Sekitar",
|
||||||
@@ -534,7 +534,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Lantai Unit",
|
"title": "Lantai Unit",
|
||||||
@@ -542,7 +542,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "View unit",
|
"title": "View unit",
|
||||||
@@ -550,7 +550,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Spesifikasi Bangunan",
|
"title": "Spesifikasi Bangunan",
|
||||||
@@ -558,7 +558,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Kategori Speksikasi Bangunan",
|
"title": "Kategori Speksikasi Bangunan",
|
||||||
@@ -566,7 +566,7 @@
|
|||||||
"classes": "",
|
"classes": "",
|
||||||
"attributes": [],
|
"attributes": [],
|
||||||
"permission": "",
|
"permission": "",
|
||||||
"roles": ["surveyor"]
|
"roles": ["administrator","surveyor"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -176,6 +176,27 @@
|
|||||||
<input class="input" type="text" name="custom_field[][$detail->jenisLegalitasJaminan->custom_field]" value="{{ $custom_field[$detail->jenisLegalitasJaminan->custom_field] }}">
|
<input class="input" type="text" name="custom_field[][$detail->jenisLegalitasJaminan->custom_field]" value="{{ $custom_field[$detail->jenisLegalitasJaminan->custom_field] }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@else
|
||||||
|
@if($detail->jenisLegalitasJaminan->custom_field)
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56 capitalize">
|
||||||
|
{{ str_replace('_',' ',$detail->jenisLegalitasJaminan->custom_field) }}
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
@if($detail->jenisLegalitasJaminan->custom_field_type === "text")
|
||||||
|
<input class="input" type="text" name="custom_field[][{{$detail->jenisLegalitasJaminan->custom_field}}]" placeholder="... M2">
|
||||||
|
@elseif($detail->jenisLegalitasJaminan->custom_field_type === "number")
|
||||||
|
<input class="input" type="number" name="custom_field[][{{$detail->jenisLegalitasJaminan->custom_field}}]" placeholder="... M2">
|
||||||
|
@elseif($detail->jenisLegalitasJaminan->custom_field_type === "date")
|
||||||
|
<input class="input" type="date" name="custom_field[][{{$detail->jenisLegalitasJaminan->custom_field}}]" placeholder="... M2">
|
||||||
|
@elseif($detail->jenisLegalitasJaminan->custom_field_type === "textarea")
|
||||||
|
<textarea class="textarea" rows="3" name="custom_field[][{{$detail->jenisLegalitasJaminan->custom_field}}]" placeholder="... M2"></textarea>
|
||||||
|
@else
|
||||||
|
<input class="input" type="text" name="custom_field[][{{$detail->jenisLegalitasJaminan->custom_field}}]" placeholder="... M2">
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
@@ -221,15 +242,15 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
@if($item->custom_field_type === "text")
|
@if($item->custom_field_type === "text")
|
||||||
<input class="input" type="text" name="custom_field[][{{$item->custom_field}}]">
|
<input class="input" type="text" name="custom_field[][{{$item->custom_field}}]" placeholder="... M2">
|
||||||
@elseif($item->custom_field_type === "number")
|
@elseif($item->custom_field_type === "number")
|
||||||
<input class="input" type="number" name="custom_field[][{{$item->custom_field}}]">
|
<input class="input" type="number" name="custom_field[][{{$item->custom_field}}]" placeholder="... M2">
|
||||||
@elseif($item->custom_field_type === "date")
|
@elseif($item->custom_field_type === "date")
|
||||||
<input class="input" type="date" name="custom_field[][{{$item->custom_field}}]">
|
<input class="input" type="date" name="custom_field[][{{$item->custom_field}}]" placeholder="... M2">
|
||||||
@elseif($item->custom_field_type === "textarea")
|
@elseif($item->custom_field_type === "textarea")
|
||||||
<textarea class="textarea" rows="3" name="custom_field[][{{$item->custom_field}}]"></textarea>
|
<textarea class="textarea" rows="3" name="custom_field[][{{$item->custom_field}}]" placeholder="... M2"></textarea>
|
||||||
@else
|
@else
|
||||||
<input class="input" type="text" name="custom_field[][{{$item->custom_field}}]">
|
<input class="input" type="text" name="custom_field[][{{$item->custom_field}}]" placeholder="... M2">
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -246,9 +267,7 @@
|
|||||||
@php $n++; @endphp
|
@php $n++; @endphp
|
||||||
@endforeach
|
@endforeach
|
||||||
@else
|
@else
|
||||||
<div id="doctainer" class="grid gap-5">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
@@ -370,13 +389,13 @@
|
|||||||
@push('scripts')
|
@push('scripts')
|
||||||
{{--Pemilik Jaminan--}}
|
{{--Pemilik Jaminan--}}
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
const namaSertifikatDiv = document.getElementById("nama_sertifikat");
|
const namaSertifikatDiv = document.getElementById("nama_sertifikat");
|
||||||
|
|
||||||
// Function to add delete event listeners to existing buttons
|
// Function to add delete event listeners to existing buttons
|
||||||
function addDeleteListeners() {
|
function addDeleteListeners() {
|
||||||
document.querySelectorAll(".delete-button").forEach(button => {
|
document.querySelectorAll(".delete-button").forEach(button => {
|
||||||
button.addEventListener("click", function() {
|
button.addEventListener("click", function () {
|
||||||
this.closest(".flex.items-baseline.flex-wrap.lg\\:flex-nowrap.gap-2\\.5.mb-5").remove();
|
this.closest(".flex.items-baseline.flex-wrap.lg\\:flex-nowrap.gap-2\\.5.mb-5").remove();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -385,7 +404,7 @@
|
|||||||
// Add delete listeners to existing buttons
|
// Add delete listeners to existing buttons
|
||||||
addDeleteListeners();
|
addDeleteListeners();
|
||||||
|
|
||||||
document.getElementById("tambah_sertifikat").addEventListener("click", function() {
|
document.getElementById("tambah_sertifikat").addEventListener("click", function () {
|
||||||
const newDiv = document.createElement("div");
|
const newDiv = document.createElement("div");
|
||||||
newDiv.className = "flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 mb-5";
|
newDiv.className = "flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 mb-5";
|
||||||
newDiv.innerHTML = `
|
newDiv.innerHTML = `
|
||||||
|
|||||||
Reference in New Issue
Block a user