Adds suppliers feature to application
Introduces comprehensive suppliers management with mock data, localization, and UI components Implements: - Suppliers page with data table - Localization for Danish and English - Search and filtering functionality - Responsive table design - Mock data for initial population
This commit is contained in:
parent
7aaa475a14
commit
dc2bab5702
16 changed files with 622 additions and 8 deletions
|
|
@ -0,0 +1,16 @@
|
|||
@model PlanTempus.Application.Features.Suppliers.Components.SupplierItemViewModel
|
||||
|
||||
<swp-data-table-row data-name="@Model.Name" data-contact="@Model.ContactPerson" data-city="@Model.City" data-href="/leverandoerer/@Model.Id">
|
||||
<swp-data-table-cell>
|
||||
<swp-supplier-cell>
|
||||
<swp-supplier-name>@Model.Name</swp-supplier-name>
|
||||
<swp-supplier-city>@Model.City</swp-supplier-city>
|
||||
</swp-supplier-cell>
|
||||
</swp-data-table-cell>
|
||||
<swp-data-table-cell>@Model.ContactPerson</swp-data-table-cell>
|
||||
<swp-data-table-cell>@Model.ProductCount</swp-data-table-cell>
|
||||
<swp-data-table-cell>@Model.LastOrderDate</swp-data-table-cell>
|
||||
<swp-data-table-cell>
|
||||
<swp-status-badge class="@Model.StatusClass">@Model.StatusText</swp-status-badge>
|
||||
</swp-data-table-cell>
|
||||
</swp-data-table-row>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace PlanTempus.Application.Features.Suppliers.Components;
|
||||
|
||||
public class SupplierRowViewComponent : ViewComponent
|
||||
{
|
||||
public IViewComponentResult Invoke(SupplierItemViewModel supplier)
|
||||
{
|
||||
return View(supplier);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue