73 lines
1.7 KiB
Plaintext
73 lines
1.7 KiB
Plaintext
<style>
|
|
h6 {
|
|
font-weight: 500;
|
|
font-size: 1.125rem;
|
|
}
|
|
</style>
|
|
|
|
@if (Item.Force == ItemVerification.VerificationForce.Optionnal)
|
|
{
|
|
<Alert Color="AlertColor.Info">
|
|
<Icon Name="IconName.InfoCircleFill" class="me-2" />
|
|
Cet item est une indication, il ne relève ni d'une recommandation, ni d'une obligation.
|
|
</Alert>
|
|
}
|
|
else if (Item.Force == ItemVerification.VerificationForce.Recommandation)
|
|
{
|
|
<Alert Color="AlertColor.Warning">
|
|
<Icon Name="IconName.ExclamationDiamondFill" class="me-2" />
|
|
Cet item relève de la recommandation, il relève des recommandations opposables.
|
|
</Alert>
|
|
}
|
|
else if (Item.Force == ItemVerification.VerificationForce.Mandatory)
|
|
{
|
|
<Alert Color="AlertColor.Danger">
|
|
<Icon Name="IconName.ExclamationTriangleFill" class="me-2" />
|
|
Cet item doit obligatoirement être suivi, car il fait l'objet d'un référentiel opposable.
|
|
</Alert>
|
|
}
|
|
|
|
<p>@Item.Label</p>
|
|
|
|
<div class="">
|
|
<h6>Statut</h6>
|
|
<InspectionItemQuickAnswerSelector Item=@Item Register=@Register />
|
|
</div>
|
|
|
|
<div class="">
|
|
@if (String.IsNullOrEmpty(Item.Description))
|
|
{
|
|
<h6>Description</h6>
|
|
<p>@Item.Description</p>
|
|
}
|
|
</div>
|
|
|
|
|
|
<div class="">
|
|
<h6>Références</h6>
|
|
<p>@Item.References</p>
|
|
</div>
|
|
|
|
<div class="">
|
|
<h6>Pièces jointes</h6>
|
|
<AttachmentsView Register=@Register ItemId=@Item.Identifier/>
|
|
</div>
|
|
|
|
<div class="">
|
|
<h6>Commentaires</h6>
|
|
<CommentsView Register=@Register/>
|
|
</div>
|
|
|
|
<div class="">
|
|
<h6>Historique des modifications</h6>
|
|
<HistoryView Register=@Register ItemId=@Item.Identifier />
|
|
</div>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public ItemVerification Item { get; set; }
|
|
|
|
[Parameter]
|
|
public InspectionRegister? Register { get; set; }
|
|
}
|