Move action buttons after the forms.

This commit is contained in:
2025-12-25 23:42:18 -05:00
parent 023e6c289a
commit 059a16b958
8 changed files with 53 additions and 36 deletions
@@ -15,12 +15,7 @@
Title="Edit Student"
Subtitle="@($"{Student.FirstNameLastName}")"
ShowBackButton="true"
BackButtonUrl="@(ReturnUrl ?? "/students")">
<ActionButtons>
<MudButton OnClick="UpdateStudent" Variant="Variant.Filled" Color="Color.Primary">Save</MudButton>
<MudButton Href="@(ReturnUrl ?? "/students")" Variant="Variant.Text">Cancel</MudButton>
</ActionButtons>
</PageHeader>
BackButtonUrl="@(ReturnUrl ?? "/students")" />
@* https://www.mudblazor.com/components/form *@
@* https://medium.com/@husainalbar/applying-mudblazor-for-crud-operations-in-our-blazor-project-a343037a52ef *@
@@ -52,6 +47,11 @@
</MudGrid>
</EditForm>
<FormActions>
<MudButton OnClick="UpdateStudent" Variant="Variant.Filled" Color="Color.Primary">Save</MudButton>
<MudButton Href="@(ReturnUrl ?? "/students")" Variant="Variant.Text">Cancel</MudButton>
</FormActions>
@code {
[SupplyParameterFromQuery]
private int Id { get; set; }