feature: form upload reklame
This commit is contained in:
@@ -14,26 +14,22 @@ const dataAdvertisementsColumns = [
|
||||
"Lokasi Reklame",
|
||||
"Desa",
|
||||
"Kecamatan",
|
||||
"Panjang",
|
||||
"Lebar",
|
||||
"Sudut Pandang",
|
||||
"Muka",
|
||||
"Luas",
|
||||
"Sudut",
|
||||
"Kontak",
|
||||
{
|
||||
name: "Actions",
|
||||
widht: "120px",
|
||||
formatter: function(cell, row) {
|
||||
const id = row.cells[16].data;
|
||||
const id = row.cells[10].data;
|
||||
const model = "data/advertisements";
|
||||
return gridjs.html(`
|
||||
<div class="d-flex justify-items-end gap-10">
|
||||
<button class="btn btn-yellow me-2 btn-edit"
|
||||
<button class="btn btn-warning me-2 btn-edit"
|
||||
data-id="${id}"
|
||||
data-model="${model}">Update</button>
|
||||
data-model="${model}">
|
||||
<i class='bx bx-edit' ></i></button>
|
||||
<button class="btn btn-red btn-delete"
|
||||
data-id="${id}">Delete</button>
|
||||
data-id="${id}">
|
||||
<i class='bx bxs-trash' ></i></button>
|
||||
</div>
|
||||
`);
|
||||
}
|
||||
@@ -60,12 +56,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
item.advertisement_location,
|
||||
item.village_name,
|
||||
item.district_name,
|
||||
item.length,
|
||||
item.width,
|
||||
item.viewing_angle,
|
||||
item.face,
|
||||
item.area,
|
||||
item.angle,
|
||||
item.contact,
|
||||
item.id,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user