feat: create a page to add reports
parent
ccf6419cb2
commit
c1b76ae0b0
|
|
@ -10,6 +10,12 @@ namespace BpsRwApp.Controllers
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
public IActionResult Create()
|
||||||
|
{
|
||||||
|
return View();
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IActionResult Table()
|
public IActionResult Table()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,121 @@
|
||||||
|
@{
|
||||||
|
ViewData["Title"] = "Tambah Laporan RW ";
|
||||||
|
}
|
||||||
|
|
||||||
|
<div class="breadcrumbs text-sm mb-4">
|
||||||
|
<ul>
|
||||||
|
<li class="text-gray-500"><a href="#">Data Verifikasi</a></li>
|
||||||
|
<li><a href="@Url.Action("Index", "LaporanRwRw")">Laporan RW</a></li>
|
||||||
|
<li>Tambah</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bg-white rounded-xl shadow p-8 max-w-6xl mx-auto">
|
||||||
|
|
||||||
|
<h2 class="text-2xl font-semibold mb-6">Tambah Laporan RW</h2>
|
||||||
|
|
||||||
|
<form asp-action="Create" asp-controller="LaporanRwRw" enctype="multipart/form-data">
|
||||||
|
|
||||||
|
<!-- Top Grid -->
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-10">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Bulan</label>
|
||||||
|
<input type="text" class="input input-bordered w-full" placeholder="Agustus">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Tahun</label>
|
||||||
|
<input type="number" class="input input-bordered w-full" placeholder="2025">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Jumlah Rumah Yang Memilah</label>
|
||||||
|
<input type="number" class="input input-bordered w-full" placeholder="0">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Divider -->
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-[1fr_auto_1fr] gap-6">
|
||||||
|
|
||||||
|
<!-- Left Column -->
|
||||||
|
<div class="space-y-6">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Upload Foto Dokumentasi 1</label>
|
||||||
|
<input type="file" class="file-input file-input-bordered w-full">
|
||||||
|
<p class="text-xs text-gray-500 mt-1">Ukuran file maksimal 600KB</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Keterangan Kegiatan</label>
|
||||||
|
<textarea class="textarea textarea-bordered w-full" rows="4"
|
||||||
|
placeholder="Masukkan keterangan kegiatan"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Tanggal Pelaksanaan Kegiatan</label>
|
||||||
|
<input type="date" class="input input-bordered w-full">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Pelaksana Kegiatan</label>
|
||||||
|
<input type="text" class="input input-bordered w-full" placeholder="Masukkan pelaksana kegiatan">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="text-xs text-gray-600">
|
||||||
|
Lengkapi keterangan foto dalam kolom keterangan, tanggal, dan pelaksana kegiatan di atas.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Divider -->
|
||||||
|
<div class="hidden md:block border-l border-gray-300 mx-6"></div>
|
||||||
|
|
||||||
|
<!-- Right Column -->
|
||||||
|
<div class="space-y-6">
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Upload Foto Dokumentasi 2</label>
|
||||||
|
<input type="file" class="file-input file-input-bordered w-full">
|
||||||
|
<p class="text-xs text-gray-500 mt-1">Ukuran file maksimal 600KB</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Keterangan Kegiatan</label>
|
||||||
|
<textarea class="textarea textarea-bordered w-full" rows="4"
|
||||||
|
placeholder="Masukkan keterangan kegiatan"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Tanggal Pelaksanaan Kegiatan</label>
|
||||||
|
<input type="date" class="input input-bordered w-full">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label class="font-medium">Pelaksana Kegiatan</label>
|
||||||
|
<input type="text" class="input input-bordered w-full" placeholder="Masukkan pelaksana kegiatan">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="text-xs text-gray-600">
|
||||||
|
Lengkapi keterangan foto dalam kolom keterangan, tanggal, dan pelaksana kegiatan di atas.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Button -->
|
||||||
|
<div class="flex justify-end gap-3 mt-8">
|
||||||
|
<a href="@Url.Action("Index", "LaporanRwRw")" class="btn rounded-full">
|
||||||
|
Batalkan
|
||||||
|
</a>
|
||||||
|
<button type="submit"
|
||||||
|
class="btn btn-success rounded-full text-white border-none"">
|
||||||
|
Simpan
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
@ -13,8 +13,9 @@
|
||||||
<h2 class="text-xl font-semibold text-gray-800">Data Input Laporan RW</h2>
|
<h2 class="text-xl font-semibold text-gray-800">Data Input Laporan RW</h2>
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
|
|
||||||
<!-- Add Button -->
|
<a asp-controller="LaporanRwRw"
|
||||||
<a href="#" class="btn btn-primary rounded-full">
|
asp-action="Create"
|
||||||
|
class="btn btn-primary rounded-full">
|
||||||
<span class="icon me-2">add</span>
|
<span class="icon me-2">add</span>
|
||||||
Tambah
|
Tambah
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue