DMS Layout mit Fehlern
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m15s
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m15s
This commit is contained in:
18
Components/shared/ConfirmDialog.razor
Normal file
18
Components/shared/ConfirmDialog.razor
Normal file
@@ -0,0 +1,18 @@
|
||||
@using MudBlazor
|
||||
<MudDialog>
|
||||
<DialogContent>
|
||||
<MudText Typo="Typo.h6">@Title</MudText>
|
||||
<MudText Class="mt-2">@Message</MudText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<MudButton OnClick="() => MudDialog.Cancel()" Variant="Variant.Outlined" Color="Color.Default">Abbrechen</MudButton>
|
||||
<MudButton OnClick="() => MudDialog.Close(DialogResult.Ok(true))" Variant="Variant.Filled" Color="Color.Error">OK</MudButton>
|
||||
</DialogActions>
|
||||
</MudDialog>
|
||||
|
||||
@code {
|
||||
[CascadingParameter] IMudDialogInstance MudDialog { get; set; } = default!;
|
||||
[Parameter] public string Title { get; set; } = "Bestätigen";
|
||||
[Parameter] public string Message { get; set; } = "Sind Sie sicher?";
|
||||
}
|
||||
``
|
||||
32
Components/shared/StatusChip.razor
Normal file
32
Components/shared/StatusChip.razor
Normal file
@@ -0,0 +1,32 @@
|
||||
@using Pldpro.Web.UI.Models
|
||||
@using MudBlazor
|
||||
|
||||
<MudChip T="string"
|
||||
Value="@Text"
|
||||
Color="@Color"
|
||||
Variant="Variant.Filled"
|
||||
Label="true"
|
||||
DisableRipple="true"
|
||||
Clickable="false">
|
||||
@Text
|
||||
</MudChip>
|
||||
|
||||
@code {
|
||||
[Parameter] public DocumentStatus Status { get; set; }
|
||||
|
||||
private string Text => Status switch
|
||||
{
|
||||
DocumentStatus.Eingegangen => "Eingegangen",
|
||||
DocumentStatus.Freigegeben => "Freigegeben",
|
||||
DocumentStatus.Bezahlt => "Bezahlt",
|
||||
_ => Status.ToString()
|
||||
};
|
||||
|
||||
private Color Color => Status switch
|
||||
{
|
||||
DocumentStatus.Eingegangen => Color.Info,
|
||||
DocumentStatus.Freigegeben => Color.Success,
|
||||
DocumentStatus.Bezahlt => Color.Primary,
|
||||
_ => Color.Default
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user