41 lines
945 B
Plaintext
41 lines
945 B
Plaintext
@page "/inspection"
|
|
|
|
@inject Trip TripManager;
|
|
|
|
@if(Inspection is not null)
|
|
{
|
|
<h1>@Inspection.Name</h1>
|
|
<div style="position:sticky; top:7vh;">
|
|
<InputText class="form-control" placeholder="Filtrer" @bind-Value="Filter" />
|
|
</div>
|
|
|
|
@foreach(var item in Inspection.Grid.GetItems())
|
|
{
|
|
<InspectionItemFiller Item=@item Register=@Inspection.Register/>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<Spinner />
|
|
}
|
|
|
|
@code
|
|
{
|
|
|
|
public Inspection? Inspection = null;
|
|
public string? Filter {get; set;} = "";
|
|
|
|
class ViewModel
|
|
{
|
|
public bool Mandatory { get; set; } = true;
|
|
public string Reference { get; set; } = "v0a:PECM.1.1.1.0c";
|
|
public string Label { get; set; } = "La structure DEVRAIT avoir défini un plan d'action pour améliorer la PCEM";
|
|
}
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await base.OnInitializedAsync();
|
|
Inspection = TripManager.Current;
|
|
}
|
|
}
|