Various CSS work
This commit is contained in:
parent
ef174af0e1
commit
15579acba8
52 changed files with 8001 additions and 944 deletions
|
|
@ -0,0 +1,34 @@
|
|||
@model PlanTempus.Application.Features.Employees.Components.EmployeeDetailServicesViewModel
|
||||
|
||||
<swp-detail-grid>
|
||||
<swp-card>
|
||||
<swp-section-label>@Model.LabelAssignedServices</swp-section-label>
|
||||
<swp-service-list>
|
||||
<swp-service-item>
|
||||
<swp-service-name>Dameklip</swp-service-name>
|
||||
<swp-service-duration>45 min</swp-service-duration>
|
||||
<swp-service-price>450 kr</swp-service-price>
|
||||
</swp-service-item>
|
||||
<swp-service-item>
|
||||
<swp-service-name>Herreklip</swp-service-name>
|
||||
<swp-service-duration>30 min</swp-service-duration>
|
||||
<swp-service-price>350 kr</swp-service-price>
|
||||
</swp-service-item>
|
||||
<swp-service-item>
|
||||
<swp-service-name>Farvning</swp-service-name>
|
||||
<swp-service-duration>90 min</swp-service-duration>
|
||||
<swp-service-price>850 kr</swp-service-price>
|
||||
</swp-service-item>
|
||||
<swp-service-item>
|
||||
<swp-service-name>Balayage</swp-service-name>
|
||||
<swp-service-duration>120 min</swp-service-duration>
|
||||
<swp-service-price>1.200 kr</swp-service-price>
|
||||
</swp-service-item>
|
||||
<swp-service-item>
|
||||
<swp-service-name>Highlights</swp-service-name>
|
||||
<swp-service-duration>90 min</swp-service-duration>
|
||||
<swp-service-price>950 kr</swp-service-price>
|
||||
</swp-service-item>
|
||||
</swp-service-list>
|
||||
</swp-card>
|
||||
</swp-detail-grid>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlanTempus.Application.Features.Localization.Services;
|
||||
|
||||
namespace PlanTempus.Application.Features.Employees.Components;
|
||||
|
||||
public class EmployeeDetailServicesViewComponent : ViewComponent
|
||||
{
|
||||
private readonly ILocalizationService _localization;
|
||||
|
||||
public EmployeeDetailServicesViewComponent(ILocalizationService localization)
|
||||
{
|
||||
_localization = localization;
|
||||
}
|
||||
|
||||
public IViewComponentResult Invoke(string key)
|
||||
{
|
||||
var model = new EmployeeDetailServicesViewModel
|
||||
{
|
||||
LabelAssignedServices = _localization.Get("employees.detail.services.assigned")
|
||||
};
|
||||
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
|
||||
public class EmployeeDetailServicesViewModel
|
||||
{
|
||||
public required string LabelAssignedServices { get; init; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue