Datetime picker and small edit UI changes (#647)

* do not allow negative amounts for crowdfund and payment requests

* remove currency placeholder in payment requests

* Improve date picker ui 

Clear button only appears when a value is set. If no value is set, display a placeholder indicating it. closes #625
This commit is contained in:
Andrew Camilleri
2019-03-07 06:29:29 +01:00
committed by Nicolas Dorier
parent 4b342376a8
commit 0c0809101d
6 changed files with 31 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
public string Id { get; set; }
[Required] public string StoreId { get; set; }
[Required] public decimal Amount { get; set; }
[Required][Range(0, double.PositiveInfinity)]public decimal Amount { get; set; }
[Display(Name = "The currency used for payment request. (e.g. BTC, LTC, USD, etc.)")]
public string Currency { get; set; }