Add services feature with mock data and components
Introduces comprehensive services management module with: - Dynamic service and category tables - Localization support for services section - Mock data for services and categories - Responsive UI components for services listing - Menu navigation and styling updates Enhances application's service management capabilities
This commit is contained in:
parent
408e590922
commit
4cf30e1f27
20 changed files with 951 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
@model PlanTempus.Application.Features.Services.Components.ServiceItemViewModel
|
||||
|
||||
<swp-data-table-row data-service-detail="@Model.Id">
|
||||
<swp-data-table-cell>@Model.Name</swp-data-table-cell>
|
||||
<swp-data-table-cell>@Model.Duration min</swp-data-table-cell>
|
||||
<swp-data-table-cell>@Model.Price.ToString("N0") kr</swp-data-table-cell>
|
||||
<swp-data-table-cell>
|
||||
<swp-row-toggle>
|
||||
<i class="ph ph-caret-right"></i>
|
||||
</swp-row-toggle>
|
||||
</swp-data-table-cell>
|
||||
</swp-data-table-row>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace PlanTempus.Application.Features.Services.Components;
|
||||
|
||||
public class ServiceRowViewComponent : ViewComponent
|
||||
{
|
||||
public IViewComponentResult Invoke(ServiceItemViewModel service)
|
||||
{
|
||||
return View(service);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue