Merge pull request #593 from BenSanex/bugfix/591_FixValidationMessage

Custom validation message for Crowdfund form primary currency
This commit is contained in:
Rockstar Developer
2019-02-15 10:03:05 -06:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ namespace BTCPayServer.Models.AppViewModels
[Required]
[MaxLength(5)]
[Display(Name = "The primary currency used for targets and stats. (e.g. BTC, LTC, USD, etc.)")]
[Display(Name = "Primary currency used for targets and stats. (e.g. BTC, LTC, USD, etc.)")]
public string TargetCurrency { get; set; } = "BTC";
[Display(Name = "Set a Target amount ")]

View File

@@ -57,7 +57,7 @@
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="TargetCurrency" class="control-label"></label>
<label asp-for="TargetCurrency" class="control-label"></label>*
<input asp-for="TargetCurrency" class="form-control" />
<span asp-validation-for="TargetCurrency" class="text-danger"></span>
</div>