mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
99a0b70cfa
* Fix form value setter * Fix test parallelization --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
30 lines
641 B
C#
30 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)
|
|
{
|
|
}
|
|
}
|