You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.3 KiB

@page "/AddMusique"
<h3>AddMusique</h3>
<EditForm Model=@musiqueModel OnValidSubmit="@HandleValidSubmit">
<DataAnnotationsValidator />
<ValidationSummary />
<p>
<label for="titre">
Display Titre:
<InputText id="titre" @bind-Value="musiqueModel.titre" />
</label>
</p>
<p>
<label for="auteur">
Display Auteur:
<InputText id="auteur" @bind-Value="musiqueModel.auteur" />
</label>
</p>
<p>
<label for="duree">
Display Durée:
<InputNumber id="duree" @bind-Value="musiqueModel.duree" />
</label>
</p>
<p>
<label for="genre">
Display Genre:
<InputText id="genre" @bind-Value="musiqueModel.genre" />
</label>
</p>
<p>
<label for="image">
Display Image:
<InputFile id="image" OnChange="@LoadImage" accept=".png" />
</label>
</p>
<label for="display-name">
Display Name Image :
<InputText id="display-name" @bind-Value="musiqueModel.DisplayName" />
</label>
<p>
<label for="date">
Display Date:
<InputDate id="date" @bind-Value="musiqueModel.date" />
</label>
</p>
<button type="submit">Submit</button>
</EditForm>