mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
60d6e98c67
* Introduce very flexible form input system * Refactorings after rebase * Test fix * Update BTCPayServer/Forms/FormDataService.cs --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
24 lines
530 B
C#
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)
|
|
{
|
|
}
|
|
}
|