1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-08-16 03:31:43 +02:00
Files
.config
.run
.workdir
Agent
Common
Controller
Docker
Utils
Web
Phantom.Web
Phantom.Web.Bootstrap
Phantom.Web.Components
Dialogs
Forms
Base
Fields
Form.razor
FormButtonSubmit.cs
FormLabel.razor
FormModel.cs
FormNumberInput.razor
FormNumberInputType.cs
FormSelectInput.razor
FormSubmitError.razor
FormTextInput.razor
FormTextInputType.cs
FormValidationMessage.razor
Graphics
Tables
Utils
Phantom.Web.Components.csproj
PhantomComponent.cs
_Imports.razor
Phantom.Web.Services
.dockerignore
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
Directory.Build.props
Directory.Build.targets
Dockerfile
LICENSE
Packages.props
PhantomPanel.sln
README.md
global.json

18 lines
433 B
C#

using Microsoft.AspNetCore.Components.Forms;
using Phantom.Web.Components.Utils;
namespace Phantom.Web.Components.Forms;
public abstract class FormModel {
public EditContext EditContext { get; }
public FormButtonSubmit.SubmitModel SubmitModel { get; } = new ();
protected FormModel() {
EditContext = BootstrapEditContext.Create(this);
}
protected FormModel(EditContext editContext) {
EditContext = editContext;
}
}