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
@@ -8,12 +8,7 @@
Title="Create"
Subtitle="Student"
ShowBackButton="true"
BackButtonUrl="/students">
<ActionButtons>
<MudButton ButtonType="ButtonType.Submit" Variant="Variant.Filled" Color="Color.Primary" Form="create-student-form">Create</MudButton>
<MudButton Href="/students" Variant="Variant.Text">Cancel</MudButton>
</ActionButtons>
</PageHeader>
BackButtonUrl="/students" />
<EditForm id="create-student-form" Model="Student" OnValidSubmit="OnValidSubmit" Enhance>
<AntiforgeryToken />
@@ -32,6 +27,11 @@
</MudGrid>
</EditForm>
<FormActions>
<MudButton ButtonType="ButtonType.Submit" Variant="Variant.Filled" Color="Color.Primary" Form="create-student-form">Create</MudButton>
<MudButton Href="/students" Variant="Variant.Text">Cancel</MudButton>
</FormActions>
@code {
[SupplyParameterFromForm]
private Student Student { get; set; } = new() { TsaYear = 1 };