style: add page aktivitas for dinas

main
Yuri Dimas 2025-10-27 15:09:01 +07:00
parent 1b6e5e28f5
commit ad79572920
No known key found for this signature in database
GPG Key ID: 4A421F9108FB5D2C
3 changed files with 128 additions and 2 deletions

View File

@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Mvc;
namespace BankSampahApp.Areas.Dinas.Controllers
{
[Area("Dinas")]
public class AktivitasController : Controller
{
public IActionResult Index()
{
return View();
}
}
}

View File

@ -0,0 +1,113 @@
@{
ViewData["Title"] = "Aktivitas";
}
<div class="flex flex-col gap-2 md:flex-row md:justify-between md:gap-0">
<div class="prose">
<span class="text-xl font-semibold text-black">
Aktivitas
</span>
</div>
<div class="flex flex-col gap-2 md:flex-row">
<button class="btn btn-sm bg-bank-sampah-primary-500 max-w-full rounded-full text-white">
<i class="ph ph-plus"></i>
Tambah Aktivitas
</button>
</div>
</div>
<div class="h-6"></div>
<div class="card bg-white">
<div class="card-body p-2">
<partial name="~/Areas/Shared/Components/Table/_Control.cshtml" />
<div class="overflow-x-auto">
<table class="table-zebra table">
<!-- head -->
<thead>
<tr>
<th class="w-[5%]"></th>
<th class="w-[85%]">Nama Aktivitas</th>
<th class="w-[10%]">Aksi</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<td>Pemilahan</td>
<td>
<a href="#" class="btn btn-circle btn-warning btn-sm text-white">
<i class="ph ph-note-pencil"></i>
</a>
<a href="#" class="btn btn-circle btn-error btn-sm text-white">
<i class="ph ph-trash"></i>
</a>
</td>
</tr>
<tr>
<th>2</th>
<td>Pengumpulan</td>
<td>
<a href="#" class="btn btn-circle btn-warning btn-sm text-white">
<i class="ph ph-note-pencil"></i>
</a>
<a href="#" class="btn btn-circle btn-error btn-sm text-white">
<i class="ph ph-trash"></i>
</a>
</td>
</tr>
<tr>
<th>3</th>
<td>Pengolahan</td>
<td>
<a href="#" class="btn btn-circle btn-warning btn-sm text-white">
<i class="ph ph-note-pencil"></i>
</a>
<a href="#" class="btn btn-circle btn-error btn-sm text-white">
<i class="ph ph-trash"></i>
</a>
</td>
</tr>
<tr>
<th>4</th>
<td>Pemilahan</td>
<td>
<a href="#" class="btn btn-circle btn-warning btn-sm text-white">
<i class="ph ph-note-pencil"></i>
</a>
<a href="#" class="btn btn-circle btn-error btn-sm text-white">
<i class="ph ph-trash"></i>
</a>
</td>
</tr>
<tr>
<th>5</th>
<td>Pemilahan</td>
<td>
<a href="#" class="btn btn-circle btn-warning btn-sm text-white">
<i class="ph ph-note-pencil"></i>
</a>
<a href="#" class="btn btn-circle btn-error btn-sm text-white">
<i class="ph ph-trash"></i>
</a>
</td>
</tr>
<tr>
<th>6</th>
<td>Pemilahan</td>
<td>
<a href="#" class="btn btn-circle btn-warning btn-sm text-white">
<i class="ph ph-note-pencil"></i>
</a>
<a href="#" class="btn btn-circle btn-error btn-sm text-white">
<i class="ph ph-trash"></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<partial name="~/Areas/Shared/Components/Table/_Pagination.cshtml" />
</div>
</div>

View File

@ -202,13 +202,13 @@
</details>
</li>
<li>
<details>
<details @(new[] { "Aktivitas", "Artikel" }.Contains(controller) ? "open" : "")>
<summary>
<i class="ph ph-database me-2 text-lg"></i>
Master Data
</summary>
<ul>
<li><a>Aktifitas</a></li>
<li><a asp-area="Dinas" asp-action="Index" asp-controller="Aktivitas" class="@(controller == "Aktivitas" ? "menu-active" : "")">Aktivitas</a></li>
<li><a>Artikel</a></li>
<li><a>Bentuk Badan Hukum</a></li>
<li><a>Fasilitas</a></li>