File tree Expand file tree Collapse file tree
src/BlazingShop/Products/CreateProduct Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55<h1 >New Product</h1 >
66
7- <EditForm Model =" _model" OnValidSubmit =" @HandleSubmitAsync" >
7+ <EditForm Model =" _model" OnValidSubmit =" HandleSubmitAsync" FormName =" @(nameof(CreateProductInput))" >
8+ <DataAnnotationsValidator />
9+ <ValidationSummary />
10+
811 <div class =" row mb-3" >
912 <div class =" col-9" >
1013 <div class =" mb-3" >
4144 </div >
4245 </div >
4346 </div >
47+
48+ <button type =" submit" class =" btn btn-success" >Save</button >
49+ <a href =" /products" class =" btn btn-secondary" >Cancel</a >
50+
4451</EditForm >
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ namespace BlazingShop.Products.CreateProduct;
77
88public partial class CreateProductPage
99{
10-
1110 private readonly CreateProductInput _model = new ( ) ;
1211
1312 private IEnumerable < GetCategoriesQuery > _categories = [ ] ;
You can’t perform that action at this time.
0 commit comments