feat : AddChapter + EditChapter
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
85ea42f958
commit
a88dfa6fc9
@ -0,0 +1,20 @@
|
||||
@page "/addChapter"
|
||||
@using Blazor.Models
|
||||
|
||||
<h3>Add Chapter</h3>
|
||||
|
||||
|
||||
<EditForm Model="@chapterModel" OnValidSubmit="@HandleValidSubmit">
|
||||
<DataAnnotationsValidator />
|
||||
<ValidationSummary />
|
||||
|
||||
<p>
|
||||
<label for="name">
|
||||
Name:
|
||||
<InputText id="name" @bind-Value="chapterModel.Name" />
|
||||
</label>
|
||||
</p>
|
||||
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</EditForm>
|
@ -0,0 +1,18 @@
|
||||
@page "/editChapter/{Id:int}"
|
||||
|
||||
<h3>Edit Chapter</h3>
|
||||
|
||||
|
||||
<EditForm Model="@chapterModel" OnValidSubmit="@HandleValidSubmit">
|
||||
<DataAnnotationsValidator />
|
||||
<ValidationSummary />
|
||||
|
||||
<p>
|
||||
<label for="name">
|
||||
Name:
|
||||
<InputText id="name" @bind-Value="chapterModel.Name" />
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</EditForm>
|
Loading…
Reference in new issue