Fix create container form validation

This commit is contained in:
Neil Brommer 2021-12-05 15:52:56 -08:00
parent 7841d1d1a8
commit dbfe36f7d8

View file

@ -8,6 +8,8 @@
<Dialog Title="Create Container" Active="this.state.Value.ShowCreateContainerForm" OnClose="this.OnDialogClose"> <Dialog Title="Create Container" Active="this.state.Value.ShowCreateContainerForm" OnClose="this.OnDialogClose">
<EditForm Model="this.Model" OnValidSubmit="this.OnSubmit"> <EditForm Model="this.Model" OnValidSubmit="this.OnSubmit">
<DataAnnotationsValidator />
@if (this.state.Value.CreateContainerErrorMessage != null) @if (this.state.Value.CreateContainerErrorMessage != null)
{ {
<Alert Type="Alert.AlertType.Error"> <Alert Type="Alert.AlertType.Error">
@ -15,6 +17,8 @@
</Alert> </Alert>
} }
<ValidationSummary />
<div class="form-group"> <div class="form-group">
<div class="container"> <div class="container">
<div class="columns"> <div class="columns">