feat(pemohon): menambahkan fitur reschedule jadwal kunjungan
fix(surveyor): memperbaiki nama placeholder dan call report
This commit is contained in:
@@ -471,7 +471,7 @@
|
||||
<label for="city" class="form-label max-w-56">Kabupaten/Kota</label>
|
||||
<div class="flex flex-wrap items-baseline w-full">
|
||||
<input type="text" id="city" class="input w-full cursor-not-allowed" readonly
|
||||
value="{{ isset($permohonan->debiture->city) ? $permohonan->debiture->city->name : '' }}">
|
||||
value="{{ isset($permohonan->debiture->city) ? strtolower($permohonan->debiture->city->name) : '' }}">
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="district_code"
|
||||
@@ -559,9 +559,32 @@
|
||||
}
|
||||
}
|
||||
|
||||
function loadCities() {
|
||||
const citySelect = document.getElementById("city_code");
|
||||
|
||||
if (citySelect) {
|
||||
// Hapus semua opsi sebelumnya
|
||||
citySelect.innerHTML = '<option value="">Pilih Kota/Kabupaten</option>';
|
||||
|
||||
cities.forEach((city) => {
|
||||
// Ubah nama kota menjadi lowercase
|
||||
const cityNameLowercase = city.name.toLowerCase();
|
||||
|
||||
// Tambahkan opsi ke dropdown
|
||||
const option = document.createElement("option");
|
||||
option.value = city.code;
|
||||
option.textContent = cityNameLowercase; // Nama dalam lowercase
|
||||
citySelect.appendChild(option);
|
||||
});
|
||||
} else {
|
||||
console.error("Element with ID 'city_code' not found.");
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
loadSavedLocationData();
|
||||
loadCities();
|
||||
});
|
||||
// Fungsi untuk memuat data lokasi yang tersimpan
|
||||
|
||||
</script>
|
||||
@include('lpj::surveyor.js.utils')
|
||||
|
||||
Reference in New Issue
Block a user