mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Custom validation message for Crowdfund form primary currency
This commit is contained in:
@@ -39,7 +39,7 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
public DateTime? StartDate { get; set; }
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[Required(ErrorMessage="The primary currency is required")]
|
||||
[MaxLength(5)]
|
||||
[Display(Name = "The primary currency used for targets and stats. (e.g. BTC, LTC, USD, etc.)")]
|
||||
public string TargetCurrency { get; set; } = "BTC";
|
||||
|
||||
Reference in New Issue
Block a user