Add FormValidationService and EventDefinitionService to dependency injection

Enhanced the application's service layer by adding FormValidationService and EventDefinitionService to the dependency injection container in Program.cs. Updated Create, Edit, and other relevant components to utilize these services for improved form validation and event processing functionality.
This commit is contained in:
2025-12-28 19:56:16 -05:00
parent 0358763601
commit 065a83442c
11 changed files with 642 additions and 200 deletions
@@ -0,0 +1,24 @@
@namespace WebApp.Components.Shared.Components
@using MudBlazor
@if (Errors != null && Errors.Any())
{
<MudAlert Severity="Severity.Error" Class="mb-4">
<MudText Typo="Typo.h6" Class="mb-2">Please fix the following validation errors:</MudText>
<ul style="margin: 0; padding-left: 20px;">
@foreach (var error in Errors)
{
<li>@error</li>
}
</ul>
</MudAlert>
}
@code {
/// <summary>
/// List of validation error messages to display
/// </summary>
[Parameter]
public List<string>? Errors { get; set; }
}
@@ -4,6 +4,7 @@
<MudThemeProvider Theme="CustomThemes.Ceruleantheme" />
<MudPopoverProvider />
<MudDialogProvider />
<MudSnackbarProvider />
<MudLayout>
<MudAppBar Class="no-print">