Update komoditas Utama
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<div class="offcanvas-body mx-0 flex-grow-0 p-6 h-100">
|
||||
<form id="editKomoditasForm" class="pt-0" method="POST">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<input type="hidden" name="_method" value="PUT">
|
||||
<input type="hidden" id="edit-id" name="id">
|
||||
|
||||
@@ -17,6 +18,35 @@
|
||||
<label class="form-label" for="edit-kode">Kode Komoditas<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="edit-kode" name="kode" />
|
||||
</div>
|
||||
<div class="mb-4 form-control-validation">
|
||||
<label class="form-label d-block" for="edit-is-utama">Komoditas Utama <span class="text-danger">*</span></label>
|
||||
|
||||
<input type="hidden" name="is_utama" value="0">
|
||||
|
||||
<label class="switch switch-lg">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="switch-input"
|
||||
id="edit-is-utama"
|
||||
name="is_utama"
|
||||
value="1"
|
||||
>
|
||||
|
||||
<span class="switch-toggle-slider">
|
||||
<span class="switch-on">
|
||||
<i class="icon-base ti tabler-check"></i>
|
||||
</span>
|
||||
|
||||
<span class="switch-off">
|
||||
<i class="icon-base ti tabler-x"></i>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span class="switch-label" id="edit-is-utama-label">
|
||||
Tidak Termasuk
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
<button type="submit" class="btn btn-primary me-sm-3 me-1 data-submit">Update</button>
|
||||
<button type="reset" class="btn btn-label-secondary" data-bs-dismiss="offcanvas">Batal</button>
|
||||
|
||||
Reference in New Issue
Block a user