Feat!(grouping): grouping sidebar
parent
b96fbfd0ac
commit
d773ea397b
|
|
@ -1,13 +1,13 @@
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace BankSampahApp.Controllers.Main
|
namespace BankSampahApp.Controllers.Reduksi
|
||||||
{
|
{
|
||||||
[Route("Main/[controller]/[action]")]
|
[Route("Reduksi/[controller]/[action]")]
|
||||||
public class BankSampahController : Controller
|
public class BankSampahController : Controller
|
||||||
{
|
{
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View("~/Views/Main/BankSampah/Index.cshtml");
|
return View("~/Views/Reduksi/BankSampah/Index.cshtml");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace BankSampahApp.Controllers.Main
|
namespace BankSampahApp.Controllers.Reduksi
|
||||||
{
|
{
|
||||||
[Route("Main/[controller]/[action]")]
|
[Route("Reduksi/[controller]/[action]")]
|
||||||
public class CompostingController : Controller
|
public class CompostingController : Controller
|
||||||
{
|
{
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View("~/Views/Main/Composting/Index.cshtml");
|
return View("~/Views/Reduksi/Composting/Index.cshtml");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace BankSampahApp.Controllers.Main
|
namespace BankSampahApp.Controllers.Reduksi
|
||||||
{
|
{
|
||||||
[Route("Main/[controller]/[action]")]
|
[Route("Reduksi/[controller]/[action]")]
|
||||||
public class MaggotController : Controller
|
public class MaggotController : Controller
|
||||||
{
|
{
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View("~/Views/Main/Maggot/Index.cshtml");
|
return View("~/Views/Reduksi/Maggot/Index.cshtml");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace BankSampahApp.Controllers.Main
|
namespace BankSampahApp.Controllers.Reduksi
|
||||||
{
|
{
|
||||||
[Route("Main/[controller]/[action]")]
|
[Route("Reduksi/[controller]/[action]")]
|
||||||
public class ReduksiSampahController : Controller
|
public class ReduksiSampahController : Controller
|
||||||
{
|
{
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
return View("~/Views/Main/ReduksiSampah/Index.cshtml");
|
return View("~/Views/Reduksi/ReduksiSampah/Index.cshtml");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
table = new DataTable('#example', {
|
table = new DataTable('#example', {
|
||||||
ajax: '/Main/BankSampah/Table',
|
ajax: '/Reduksi/BankSampah/Table',
|
||||||
scrollX: true,
|
scrollX: true,
|
||||||
autoWidth: false,
|
autoWidth: false,
|
||||||
initComplete: function () {
|
initComplete: function () {
|
||||||
|
|
@ -268,7 +268,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
table = new DataTable('#example', {
|
table = new DataTable('#example', {
|
||||||
ajax: '/Main/Composting/Table',
|
ajax: '/Reduksi/Composting/Table',
|
||||||
scrollX: true,
|
scrollX: true,
|
||||||
autoWidth: false,
|
autoWidth: false,
|
||||||
initComplete: function () {
|
initComplete: function () {
|
||||||
|
|
@ -265,7 +265,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
table = new DataTable('#example', {
|
table = new DataTable('#example', {
|
||||||
ajax: '/Main/Maggot/Table',
|
ajax: '/Reduksi/Maggot/Table',
|
||||||
scrollX: true,
|
scrollX: true,
|
||||||
autoWidth: false,
|
autoWidth: false,
|
||||||
initComplete: function () {
|
initComplete: function () {
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
table = new DataTable('#example', {
|
table = new DataTable('#example', {
|
||||||
ajax: '/Main/ReduksiSampah/Table',
|
ajax: '/Reduksi/ReduksiSampah/Table',
|
||||||
scrollX: true,
|
scrollX: true,
|
||||||
autoWidth: false,
|
autoWidth: false,
|
||||||
initComplete: function () {
|
initComplete: function () {
|
||||||
|
|
@ -160,6 +160,22 @@
|
||||||
</details>
|
</details>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<!-- Reduksi -->
|
||||||
|
<li>
|
||||||
|
<details @(new[] { "Maggot", "Composting", "ReduksiSampah", "BankSampah" }.Contains(controller) ? "open" : "")>
|
||||||
|
<summary>
|
||||||
|
<i class="ph ph-database me-2 text-lg"></i>
|
||||||
|
Reduksi
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/Reduksi/BankSampah/Index" class="@(controller == "BankSampah" ? "menu-active" : "")">Bank Sampah</a></li>
|
||||||
|
<li><a href="/Reduksi/Maggot/Index" class="@(controller == "Maggot" ? "menu-active" : "")">Maggot</a></li>
|
||||||
|
<li><a href="/Reduksi/Composting/Index" class="@(controller == "Composting" ? "menu-active" : "")">Composting</a></li>
|
||||||
|
<li><a href="/Reduksi/ReduksiSampah/Index" class="@(controller == "ReduksiSampah" ? "menu-active" : "")">Reduksi Sampah</a></li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
</li>
|
||||||
|
|
||||||
<!-- Ganti Password -->
|
<!-- Ganti Password -->
|
||||||
<li>
|
<li>
|
||||||
<a href="https://akun.dinaslhdki.id/" target="_blank" class="rounded-full">
|
<a href="https://akun.dinaslhdki.id/" target="_blank" class="rounded-full">
|
||||||
|
|
@ -207,38 +223,6 @@
|
||||||
Transaksi Nasabah
|
Transaksi Nasabah
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- Bank Sampah -->
|
|
||||||
<li>
|
|
||||||
<a asp-controller="BankSampah" asp-action="Index" class="rounded-full @(controller == "BankSampah" ? "menu-active" : "")">
|
|
||||||
<i class="ph ph-recycle me-2 text-lg"></i>
|
|
||||||
Bank Sampah
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- Maggot -->
|
|
||||||
<li>
|
|
||||||
<a asp-controller="Maggot" asp-action="Index" class="rounded-full @(controller == "Maggot" ? "menu-active" : "")">
|
|
||||||
<i class="ph ph-bug me-2 text-lg"></i>
|
|
||||||
Maggot
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- Composting -->
|
|
||||||
<li>
|
|
||||||
<a asp-controller="Composting" asp-action="Index" class="rounded-full @(controller == "Composting" ? "menu-active" : "")">
|
|
||||||
<i class="ph ph-leaf me-2 text-lg"></i>
|
|
||||||
Composting
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- Reduksi Sampah -->
|
|
||||||
<li>
|
|
||||||
<a asp-controller="ReduksiSampah" asp-action="Index" class="rounded-full @(controller == "ReduksiSampah" ? "menu-active" : "")">
|
|
||||||
<i class="ph ph-chart-line me-2 text-lg"></i>
|
|
||||||
Reduksi Sampah
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue