Merge branch 'master' of https://codefirst.iut.uca.fr/git/jade.van_brabandt/3.01-QCM_MuscuMaths
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
2a565522e2
@ -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