legere modif de la page de modification
continuous-integration/drone/push Build is passing Details

blazor
Patrick BRUGIERE 1 year ago
parent 8bbc76c255
commit e13ce59447

@ -39,6 +39,9 @@ namespace adminBlazor.Factories
if (voc.ImageBase64 != null && voc.Image != null)
item.ImageBase64 = Convert.ToBase64String(voc.Image);
if (voc.Aut != null)
item.Aut = voc.Aut;
}
}

@ -15,6 +15,14 @@
<InputText id="name" @bind-Value="voc.Name" />
<ValidationMessage For="@(() => voc.Name)" />
</label>
</p>
<p>
<label>
Author
<InputNumber @bind-Value="voc.Aut" />
<ValidationMessage For="@(() => voc.Aut)" />
</label>
</p>
<button type="submit">Submit</button>

@ -31,7 +31,7 @@ namespace adminBlazor.Pages
{
await VocListService.Update(Id, voc);
NavigationManager.NavigateTo("list");
NavigationManager.NavigateTo("voc");
}
private async Task LoadImage(InputFileChangeEventArgs e)

Loading…
Cancel
Save