mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
* Fix form value setter * Fix test parallelization --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
29 lines
641 B
C#
29 lines
641 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.Abstractions.Form;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
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 SetValue(Field field, JToken value)
|
|
{
|
|
//ignored
|
|
}
|
|
|
|
public void Validate(Form form, Field field)
|
|
{
|
|
}
|
|
}
|