Update Master
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<div class="offcanvas offcanvas-end" id="offcanvasAddKecamatan" aria-labelledby="offcanvasAddKecamatanLabel">
|
||||
<div class="offcanvas-header border-bottom">
|
||||
<h5 id="offcanvasAddKecamatanLabel" class="offcanvas-title">Tambah Kecamatan</h5>
|
||||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
|
||||
<div class="offcanvas-body mx-0 flex-grow-0 p-6 h-100">
|
||||
<form class="add-new-kecamatan pt-0" id="addNewKecamatanForm" action="{{ route('kecamatan.store') }}" method="POST">
|
||||
@csrf
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label" for="add-kec-provinsi">Provinsi</label>
|
||||
<select id="add-kec-provinsi" class="select2 form-select" data-placeholder="Pilih Provinsi">
|
||||
<option value="">Pilih Provinsi</option>
|
||||
@foreach($provinsi as $prov)
|
||||
<option value="{{ $prov->id }}">{{ $prov->nama }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="add-kec-kabupaten">Kabupaten/Kota<span class="text-danger">*</span></label>
|
||||
<select id="add-kec-kabupaten" name="kabupaten_kota_id" class="select2 form-select" data-placeholder="Pilih Kabupaten/Kota" disabled>
|
||||
<option value="">Pilih Kabupaten/Kota</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="add-kec-code">Kode Kecamatan<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="add-kec-code" placeholder="110101" name="kode" maxlength="6" inputmode="numeric" pattern="[0-9]*" oninput="this.value = this.value.replace(/[^0-9]/g, '')" />
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="add-kec-name">Nama Kecamatan<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="add-kec-name" placeholder="Contoh: Kec. Tapaktuan" name="nama" />
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="add-kec-path">Path (Koordinat)</label>
|
||||
<textarea class="form-control" id="add-kec-path" placeholder="[3.21, 97.21]" name="path" rows="3"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mt-8">
|
||||
<button type="submit" class="btn btn-primary me-3 data-submit">Submit</button>
|
||||
<button type="reset" class="btn btn-label-danger" data-bs-dismiss="offcanvas">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,50 @@
|
||||
<div class="offcanvas offcanvas-end" id="offcanvasEditKecamatan" aria-labelledby="offcanvasEditKecamatanLabel">
|
||||
<div class="offcanvas-header border-bottom">
|
||||
<h5 id="offcanvasEditKecamatanLabel" class="offcanvas-title">Edit Kecamatan</h5>
|
||||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
|
||||
<div class="offcanvas-body mx-0 flex-grow-0 p-6 h-100">
|
||||
<form id="editKecamatanForm" class="pt-0">
|
||||
@csrf
|
||||
<input type="hidden" id="edit-kecamatan-id" name="id">
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label" for="edit-kec-provinsi">Provinsi</label>
|
||||
<select id="edit-kec-provinsi" class="select2 form-select" data-placeholder="Pilih Provinsi">
|
||||
<option value="">Pilih Provinsi</option>
|
||||
@foreach($provinsi as $prov)
|
||||
<option value="{{ $prov->id }}">{{ $prov->nama }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="edit-kec-kabupaten">Kabupaten/Kota<span class="text-danger">*</span></label>
|
||||
<select id="edit-kec-kabupaten" name="kabupaten_kota_id" class="select2 form-select" data-placeholder="Pilih Kabupaten/Kota" disabled>
|
||||
<option value="">Pilih Kabupaten/Kota</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="edit-kec-code">Kode Kecamatan<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="edit-kec-code" name="kode" maxlength="6" inputmode="numeric" pattern="[0-9]*" oninput="this.value = this.value.replace(/[^0-9]/g, '')" />
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="edit-kec-name">Nama Kecamatan<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="edit-kec-name" name="nama" />
|
||||
</div>
|
||||
|
||||
<div class="mb-6 form-control-validation">
|
||||
<label class="form-label" for="edit-kec-path">Path (Koordinat)</label>
|
||||
<textarea class="form-control" id="edit-kec-path" name="path" rows="3"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mt-8">
|
||||
<button type="submit" class="btn btn-primary me-3">Update Data</button>
|
||||
<button type="reset" class="btn btn-label-danger" data-bs-dismiss="offcanvas">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,34 +1,321 @@
|
||||
@extends('layout.main')
|
||||
|
||||
@section('content')
|
||||
<div class="container-xxl flex-grow-1 container-p-y">
|
||||
<div class="card">
|
||||
<div class="card-header border-bottom">
|
||||
<h5 class="card-title mb-0">Filters</h5>
|
||||
<div class="d-flex justify-content-between align-items-center row pt-4 gap-4 gap-md-0">
|
||||
<div class="col-md-4 user_role"></div>
|
||||
<div class="col-md-4 user_plan"></div>
|
||||
<div class="col-md-4 user_status"></div>
|
||||
<div class="card-header border-bottom">
|
||||
<h5 class="card-title mb-0">Data Kecamatan</h5>
|
||||
</div>
|
||||
|
||||
<div class="card-body border-bottom pt-4">
|
||||
<form method="GET" action="{{ route('kecamatan.index') }}" class="d-flex justify-content-between align-items-center row gap-3 gap-md-0">
|
||||
<div class="col-md-auto">
|
||||
<div class="d-flex align-items-center">
|
||||
<label class="me-2 text-nowrap">Show</label>
|
||||
<select name="per_page" class="form-select form-select-sm w-auto" onchange="this.form.submit()">
|
||||
<option value="10" {{ request('per_page') == 10 ? 'selected' : '' }}>10</option>
|
||||
<option value="25" {{ request('per_page') == 25 ? 'selected' : '' }}>25</option>
|
||||
<option value="50" {{ request('per_page') == 50 ? 'selected' : '' }}>50</option>
|
||||
</select>
|
||||
<label class="ms-2 text-nowrap">entries</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-auto d-flex gap-2">
|
||||
<div class="input-group input-group-sm w-auto">
|
||||
<input type="text" name="search" class="form-control" placeholder="Cari Kecamatan..." value="{{ request('search') }}">
|
||||
<button type="submit" class="btn btn-outline-primary"><i class="ti tabler-search"></i></button>
|
||||
</div>
|
||||
<button type="button" class="btn btn-sm btn-primary add-new" data-bs-toggle="offcanvas" data-bs-target="#offcanvasAddKecamatan">
|
||||
<i class="ti tabler-plus me-1"></i> Tambah
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive text-nowrap">
|
||||
<table class="table table-hover">
|
||||
<thead class="border-top">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Kode Kecamatan</th>
|
||||
<th>Nama Kecamatan</th>
|
||||
<th>Kabupaten/Kota</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse($kecamatan as $index => $kec)
|
||||
<tr>
|
||||
<td>{{ $kecamatan->firstItem() + $index }}</td>
|
||||
<td><span class="text-heading fw-medium">{{ $kec->kode }}</span></td>
|
||||
<td>
|
||||
@php
|
||||
$words = explode(' ', $kec->nama);
|
||||
$initials = substr(implode('', array_map(fn($w) => strtoupper($w[0] ?? ''), $words)), 0, 2);
|
||||
$states = ['success', 'danger', 'warning', 'info', 'primary', 'secondary'];
|
||||
$state = $states[array_rand($states)];
|
||||
@endphp
|
||||
<div class="d-flex justify-content-start align-items-center">
|
||||
<div class="avatar-wrapper me-3">
|
||||
<div class="avatar avatar-sm">
|
||||
<span class="avatar-initial rounded-circle bg-label-{{ $state }}">{{ $initials }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="text-heading">{{ $kec->nama }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge bg-label-secondary">{{ $kec->kabupatenkota->nama ?? '-' }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="d-flex align-items-center">
|
||||
<a href="javascript:;" class="btn btn-icon btn-text-secondary rounded-pill edit-record" data-id="{{ $kec->id }}"><i class="ti tabler-edit ti-md"></i></a>
|
||||
<a href="javascript:;" class="btn btn-icon btn-text-secondary rounded-pill delete-record" data-id="{{ $kec->id }}" data-nama="{{ $kec->nama }}"><i class="ti tabler-trash ti-md"></i></a>
|
||||
<a href="javascript:;" class="btn btn-icon btn-text-secondary rounded-pill view-record" data-id="{{ $kec->id }}"><i class="ti tabler-eye ti-md"></i></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="5" class="text-center py-4">Tidak ada data ditemukan.</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="card-footer d-flex justify-content-center justify-content-md-end border-top">
|
||||
{{ $kecamatan->appends(request()->query())->links('pagination::bootstrap-5') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-datatable">
|
||||
<table class="datatables-users table">
|
||||
<thead class="border-top">
|
||||
<tr>
|
||||
<th></th> <th>ID</th>
|
||||
<th>Kode Kecamatan</th>
|
||||
<th>Nama Kecamatan</th>
|
||||
<th>Nama Kabupaten Kota</th>
|
||||
<th>Nama Provinsi</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
@include('users.user.add')
|
||||
|
||||
@include('master.kecamatan.add')
|
||||
@include('master.kecamatan.view')
|
||||
@include('master.kecamatan.edit')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>var kecamatanListUrl = "{{ route('kecamatan.list') }}";</script>
|
||||
<script src="{{ asset('assets/js/master-kecamatan.js') }}"></script>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
const csrfToken = "{{ csrf_token() }}";
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
function setupCascadingDropdown(prefix) {
|
||||
$(`#${prefix}-provinsi`).on('change', function () {
|
||||
let provinsiId = $(this).val();
|
||||
let $kabupaten = $(`#${prefix}-kabupaten`);
|
||||
|
||||
$kabupaten.empty().append('<option value="">Pilih Kabupaten/Kota</option>').prop('disabled', true).trigger('change');
|
||||
|
||||
if (provinsiId) {
|
||||
$.get(`/kabupatenkotabyprovinsi/${provinsiId}`, function (res) {
|
||||
$kabupaten.prop('disabled', false);
|
||||
let dataList = Array.isArray(res) ? res : (res.data || []);
|
||||
$.each(dataList, function (key, val) {
|
||||
$kabupaten.append(`<option value="${val.id}">${val.nama}</option>`);
|
||||
});
|
||||
$kabupaten.trigger('change');
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
setupCascadingDropdown('add-kec');
|
||||
setupCascadingDropdown('edit-kec');
|
||||
|
||||
const addForm = document.getElementById('addNewKecamatanForm');
|
||||
const offcanvasAdd = new bootstrap.Offcanvas(document.getElementById('offcanvasAddKecamatan'));
|
||||
|
||||
let fvAdd;
|
||||
if (addForm) {
|
||||
fvAdd = FormValidation.formValidation(addForm, {
|
||||
fields: {
|
||||
kabupaten_kota_id: { validators: { notEmpty: { message: 'Kabupaten/Kota wajib dipilih' } } },
|
||||
kode: {
|
||||
validators: {
|
||||
notEmpty: { message: 'Kode wajib diisi' },
|
||||
stringLength: { min: 6, max: 6, message: 'Kode harus 6 digit' },
|
||||
digits: { message: 'Hanya boleh berisi angka' }
|
||||
}
|
||||
},
|
||||
nama: { validators: { notEmpty: { message: 'Nama Kecamatan wajib diisi' } } }
|
||||
},
|
||||
plugins: {
|
||||
trigger: new FormValidation.plugins.Trigger(),
|
||||
bootstrap5: new FormValidation.plugins.Bootstrap5({ eleValidClass: '', rowSelector: '.form-control-validation' }),
|
||||
submitButton: new FormValidation.plugins.SubmitButton(),
|
||||
autoFocus: new FormValidation.plugins.AutoFocus()
|
||||
}
|
||||
}).on('core.form.valid', function () {
|
||||
$(addForm).find('select').prop('disabled', false);
|
||||
$.ajax({
|
||||
url: addForm.action,
|
||||
type: 'POST',
|
||||
data: $(addForm).serialize(),
|
||||
success: function () {
|
||||
offcanvasAdd.hide();
|
||||
addForm.reset();
|
||||
fvAdd.resetForm();
|
||||
$('.select2').val(null).trigger('change');
|
||||
Swal.fire({ icon: 'success', title: 'Berhasil!', text: 'Data disimpan', timer: 1500, showConfirmButton: false })
|
||||
.then(() => window.location.reload());
|
||||
},
|
||||
error: function (xhr) {
|
||||
if (xhr.status === 422) {
|
||||
const errors = xhr.responseJSON.errors || {};
|
||||
Object.keys(errors).forEach(key => {
|
||||
fvAdd.updateFieldStatus(key, 'Invalid', 'notEmpty');
|
||||
const fieldRow = addForm.querySelector(`[name="${key}"]`).closest('.form-control-validation');
|
||||
const messageContainer = fieldRow.querySelector('.fv-plugins-message-container');
|
||||
if (messageContainer) messageContainer.innerHTML = `<div class="fv-help-block text-danger">${errors[key][0]}</div>`;
|
||||
});
|
||||
} else {
|
||||
Swal.fire({ icon: 'error', title: 'Gagal!', text: xhr.responseJSON?.message || 'Error' });
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
const editForm = document.getElementById('editKecamatanForm');
|
||||
const offcanvasEdit = new bootstrap.Offcanvas(document.getElementById('offcanvasEditKecamatan'));
|
||||
|
||||
let fvEdit;
|
||||
if (editForm) {
|
||||
fvEdit = FormValidation.formValidation(editForm, {
|
||||
fields: {
|
||||
kabupaten_kota_id: { validators: { notEmpty: { message: 'Kabupaten/Kota wajib dipilih' } } },
|
||||
kode: {
|
||||
validators: {
|
||||
notEmpty: { message: 'Kode wajib diisi' },
|
||||
stringLength: { min: 6, max: 6, message: 'Kode harus 6 digit' },
|
||||
digits: { message: 'Hanya boleh berisi angka' }
|
||||
}
|
||||
},
|
||||
nama: { validators: { notEmpty: { message: 'Nama Kecamatan wajib diisi' } } }
|
||||
},
|
||||
plugins: {
|
||||
trigger: new FormValidation.plugins.Trigger(),
|
||||
bootstrap5: new FormValidation.plugins.Bootstrap5({ eleValidClass: '', rowSelector: '.form-control-validation' }),
|
||||
submitButton: new FormValidation.plugins.SubmitButton(),
|
||||
autoFocus: new FormValidation.plugins.AutoFocus()
|
||||
}
|
||||
}).on('core.form.valid', function () {
|
||||
const id = $('#edit-kecamatan-id').val();
|
||||
$(editForm).find('select').prop('disabled', false);
|
||||
|
||||
$.ajax({
|
||||
url: `/kecamatan/${id}`,
|
||||
type: 'PUT',
|
||||
data: $(editForm).serialize(),
|
||||
headers: { 'X-CSRF-TOKEN': csrfToken },
|
||||
success: function () {
|
||||
offcanvasEdit.hide();
|
||||
Swal.fire({ icon: 'success', title: 'Updated!', showConfirmButton: false, timer: 1500 })
|
||||
.then(() => window.location.reload());
|
||||
},
|
||||
error: function (xhr) {
|
||||
if (xhr.status === 422) {
|
||||
const errors = xhr.responseJSON.errors || {};
|
||||
Object.keys(errors).forEach(key => {
|
||||
fvEdit.updateFieldStatus(key, 'Invalid', 'notEmpty');
|
||||
const fieldRow = editForm.querySelector(`[name="${key}"]`).closest('.form-control-validation');
|
||||
const messageContainer = fieldRow.querySelector('.fv-plugins-message-container');
|
||||
if (messageContainer) messageContainer.innerHTML = `<div class="fv-help-block text-danger">${errors[key][0]}</div>`;
|
||||
});
|
||||
} else {
|
||||
Swal.fire({ icon: 'error', title: 'Oops...', text: xhr.responseJSON?.message || 'Terjadi kesalahan.' });
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$('.select2').on('change', function() {
|
||||
const name = $(this).attr('name');
|
||||
if (name) {
|
||||
if (fvAdd && addForm.querySelector(`[name="${name}"]`)) fvAdd.revalidateField(name);
|
||||
if (fvEdit && editForm.querySelector(`[name="${name}"]`)) fvEdit.revalidateField(name);
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.edit-record', function () {
|
||||
const id = $(this).data('id');
|
||||
const $btn = $(this).addClass('disabled');
|
||||
|
||||
$.get(`/kecamatan/${id}`, function (res) {
|
||||
$btn.removeClass('disabled');
|
||||
if (res.status === 'success') {
|
||||
const d = res.data;
|
||||
$('#edit-kecamatan-id').val(d.id);
|
||||
$('#edit-kec-code').val(d.kode);
|
||||
$('#edit-kec-name').val(d.nama);
|
||||
$('#edit-kec-path').val(d.path);
|
||||
|
||||
if (d.provinsi_id) {
|
||||
let optionProv = new Option(d.nama_provinsi, d.provinsi_id, true, true);
|
||||
$('#edit-kec-provinsi').append(optionProv).trigger('change');
|
||||
}
|
||||
if (d.kabupaten_kota_id) {
|
||||
let optionKab = new Option(d.nama_kabupaten_kota, d.kabupaten_kota_id, true, true);
|
||||
$('#edit-kec-kabupaten').append(optionKab).prop('disabled', false).trigger('change');
|
||||
}
|
||||
|
||||
if (fvEdit) fvEdit.resetForm();
|
||||
offcanvasEdit.show();
|
||||
}
|
||||
}).fail(() => { $btn.removeClass('disabled'); Swal.fire('Gagal!', 'Terjadi kesalahan.', 'error'); });
|
||||
});
|
||||
|
||||
const offcanvasView = new bootstrap.Offcanvas(document.getElementById('offcanvasViewKecamatan'));
|
||||
$(document).on('click', '.view-record', function () {
|
||||
const id = $(this).data('id');
|
||||
const $btn = $(this).addClass('disabled');
|
||||
|
||||
$.get(`/kecamatan/${id}`, function (res) {
|
||||
$btn.removeClass('disabled');
|
||||
if (res.status === 'success') {
|
||||
const d = res.data;
|
||||
$('#view-kec-provinsi').val(d.nama_provinsi || '-');
|
||||
$('#view-kec-kabupaten').val(d.nama_kabupaten_kota || '-');
|
||||
$('#view-kec-code').val(d.kode || '-');
|
||||
$('#view-kec-name').val(d.nama || '-');
|
||||
$('#view-kec-path').val(d.path || '-');
|
||||
offcanvasView.show();
|
||||
}
|
||||
}).fail(() => { $btn.removeClass('disabled'); Swal.fire('Gagal!', 'Terjadi kesalahan.', 'error'); });
|
||||
});
|
||||
|
||||
$(document).on('click', '.delete-record', function () {
|
||||
const id = $(this).data('id');
|
||||
const name = $(this).data('nama');
|
||||
|
||||
Swal.fire({
|
||||
title: 'Apakah Anda yakin?',
|
||||
text: `Kecamatan "${name}" akan dihapus secara permanen!`,
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Ya, Hapus!',
|
||||
customClass: { confirmButton: 'btn btn-primary me-3', cancelButton: 'btn btn-label-secondary' },
|
||||
buttonsStyling: false
|
||||
}).then(function (result) {
|
||||
if (result.value) {
|
||||
$.ajax({
|
||||
url: `/kecamatan/${id}`,
|
||||
type: 'DELETE',
|
||||
headers: { 'X-CSRF-TOKEN': csrfToken },
|
||||
success: function (res) {
|
||||
Swal.fire({ icon: 'success', title: 'Terhapus!', text: res.message, showConfirmButton: false, timer: 1500 })
|
||||
.then(() => window.location.reload());
|
||||
},
|
||||
error: () => Swal.fire({ icon: 'error', title: 'Gagal!', text: 'Terjadi kesalahan sistem.' })
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class="offcanvas offcanvas-end" id="offcanvasViewKecamatan" aria-labelledby="offcanvasViewKecamatanLabel">
|
||||
<div class="offcanvas-header border-bottom">
|
||||
<h5 id="offcanvasViewKecamatanLabel" class="offcanvas-title">Detail Kecamatan</h5>
|
||||
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
|
||||
<div class="offcanvas-body mx-0 flex-grow-0 p-6 h-100">
|
||||
<form id="viewKecamatanForm" class="pt-0" onsubmit="return false;">
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label" for="view-kec-provinsi">Provinsi</label>
|
||||
<input type="text" class="form-control" id="view-kec-provinsi" readonly />
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label" for="view-kec-kabupaten">Kabupaten/Kota</label>
|
||||
<input type="text" class="form-control" id="view-kec-kabupaten" readonly />
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label" for="view-kec-code">Kode Kecamatan</label>
|
||||
<input type="text" class="form-control" id="view-kec-code" readonly />
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label class="form-label" for="view-kec-name">Nama Kecamatan</label>
|
||||
<input type="text" class="form-control" id="view-kec-name" readonly />
|
||||
</div>
|
||||
|
||||
<div class="mb-6">
|
||||
<label class="form-label" for="view-kec-path">Path (Koordinat)</label>
|
||||
<textarea class="form-control" id="view-kec-path" rows="4" readonly></textarea>
|
||||
</div>
|
||||
|
||||
<div class="mt-8">
|
||||
<button type="button" class="btn btn-label-secondary d-grid w-100" data-bs-dismiss="offcanvas">Tutup</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user