App updates (#3437)

* Fix toggle alignment

* Crowdfund: Change defaults (disable sounds and Disqus)

* Crowdfund: Move callback notification URL into additional options

Same as with the Point Of Sale options.

* Crowdfund: Make enable toggle more prominent

* Crowdfund: Improve start and end date form group display

* Template Editor: Improve button spacing

* adjusts currency + target

* removes "other actions"

* adjusts text

* adjusts status message bottom margin

Co-authored-by: dstrukt <gfxdsign@gmail.com>
This commit is contained in:
d11n
2022-02-14 10:14:21 +01:00
committed by GitHub
parent 0dc9c183b5
commit 1d3a8bb7bf
5 changed files with 113 additions and 82 deletions

View File

@@ -36,7 +36,7 @@ namespace BTCPayServer.Models.AppViewModels
[Required]
[Display(Name = "Make Crowdfund Public")]
public bool Enabled { get; set; } = false;
public bool Enabled { get; set; }
[Required]
[Display(Name = "Enable background animations on new payments")]
@@ -44,11 +44,11 @@ namespace BTCPayServer.Models.AppViewModels
[Required]
[Display(Name = "Enable sounds on new payments")]
public bool SoundsEnabled { get; set; } = true;
public bool SoundsEnabled { get; set; }
[Required]
[Display(Name = "Enable Disqus Comments")]
public bool DisqusEnabled { get; set; } = true;
public bool DisqusEnabled { get; set; }
[Display(Name = "Disqus Shortname")]
public string DisqusShortname { get; set; }
@@ -60,10 +60,10 @@ namespace BTCPayServer.Models.AppViewModels
public DateTime? EndDate { get; set; }
[MaxLength(5)]
[Display(Name = "Primary currency used for targets and stats. (e.g. BTC, LTC, USD, etc.)")]
[Display(Name = "Currency")]
public string TargetCurrency { get; set; }
[Display(Name = "Set a target amount")]
[Display(Name = "Target Amount")]
[Range(0, double.PositiveInfinity)]
public decimal? TargetAmount { get; set; }
@@ -105,7 +105,7 @@ namespace BTCPayServer.Models.AppViewModels
[Display(Name = "Sounds to play when a payment is made. One sound per line")]
public string Sounds { get; set; }
[Display(Name = "Colors to rotate between with animation when a payment is made. One color per line (any valid css color value).")]
[Display(Name = "Colors to rotate between with animation when a payment is made. One color per line.")]
public string AnimationColors { get; set; }
// NOTE: Improve validation if needed