parent
2f32bb42ee
commit
9d8eb2e5d5
@ -1,5 +1,48 @@
|
||||
@page "/edit/{Id:int}"
|
||||
@using WF_WebAdmin.Model
|
||||
@page "/edit/{Id:int}"
|
||||
|
||||
<h3>Editer</h3>
|
||||
|
||||
<div>My parameter: @Id</div>
|
||||
<EditForm Model="@quoteModel" OnValidSubmit="@HandleValidSubmit">
|
||||
<DataAnnotationsValidator />
|
||||
<ValidationSummary />
|
||||
|
||||
<p>
|
||||
<label for="display-cit">
|
||||
Citation:
|
||||
<InputText id="display-cit" @bind-Value="quoteModel.Content" />
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="lang">
|
||||
Langue:
|
||||
<input name="lang" type="radio" @onchange="@(e => OnlangChange("fr", e.Value))" /> fr
|
||||
<input name="lang" type="radio" @onchange="@(e => OnlangChange("en", e.Value))" /> en
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="charac">
|
||||
<InputSelect id="charac" @bind-Value="quoteModel.Charac">
|
||||
@foreach (Character display in charac)
|
||||
{
|
||||
<option value="@display.caracter">@display.caracter (ID: @display.id_caracter)</option>
|
||||
}
|
||||
</InputSelect>
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="src">
|
||||
<InputSelect id="src" @bind-Value="quoteModel.TitleSrc">
|
||||
@foreach (Source display in src)
|
||||
{
|
||||
<option value="@display.title">@display.title (ID: @display.id_source)</option>
|
||||
}
|
||||
</InputSelect>
|
||||
</label>
|
||||
</p>
|
||||
|
||||
<button type="submit">Submit</button>
|
||||
</EditForm>
|
Loading…
Reference in new issue