btcpayserver/BTCPayServer/Forms/HtmlFieldsetFormProvider.cs
Andrew Camilleri 60d6e98c67
Form System Flexibility improvements (#4774)
* Introduce very flexible form input system

* Refactorings after rebase

* Test fix

* Update BTCPayServer/Forms/FormDataService.cs

---------

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
2023-04-04 11:01:34 +09:00

24 lines
530 B
C#

using System.Collections.Generic;
using BTCPayServer.Abstractions.Form;
namespace BTCPayServer.Forms;
public class HtmlFieldsetFormProvider : IFormComponentProvider
{
public string View => "Forms/FieldSetElement";
public void Register(Dictionary<string, IFormComponentProvider> typeToComponentProvider)
{
typeToComponentProvider.Add("fieldset", this);
}
public string GetValue(Form form, Field field)
{
return null;
}
public void Validate(Form form, Field field)
{
}
}