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.
38 lines
1.1 KiB
38 lines
1.1 KiB
@page "/tickets/add"
|
|
|
|
<h3>Add Ticket</h3>
|
|
|
|
<EditForm Model="@ticketModel" OnValidSubmit="@HandleValidSubmit">
|
|
<DataAnnotationsValidator />
|
|
<ValidationSummary />
|
|
|
|
<p>
|
|
<label for="username">
|
|
Username:
|
|
<InputText id="username" @bind-Value="ticketModel.Username" />
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<label for="context">
|
|
Context:
|
|
<InputText id="context" @bind-Value="ticketModel.Contexte" />
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<label for="description">
|
|
Description:
|
|
<InputText id="description" @bind-Value="ticketModel.Description" />
|
|
</label>
|
|
</p>
|
|
|
|
<p>
|
|
<label for="urgence">
|
|
Urgence:
|
|
<InputCheckbox id="urgence" @bind-Value="ticketModel.Urgence" />
|
|
</label>
|
|
</p>
|
|
|
|
<button type="submit">Submit</button>
|
|
</EditForm>
|
|
|