using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using BTCPayServer.Abstractions.Form; namespace BTCPayServer.Forms; public class HtmlTextareaFormProvider : FormComponentProviderBase { public override void Register(Dictionary typeToComponentProvider) { typeToComponentProvider.Add("textarea", this); } public override string View => "Forms/TextareaElement"; public override void Validate(Form form, Field field) { if (field.Required) { ValidateField(field); } } }