feature: form upload reklame

This commit is contained in:
2025-02-11 16:57:53 +07:00
parent 9c41fad232
commit ecf9096149
17 changed files with 1748 additions and 263 deletions

View File

@@ -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,
];