From 929b5c7951c29e8cf82ba56715d6e88a9aaaf96c Mon Sep 17 00:00:00 2001 From: Lucas Cullen Date: Sat, 24 Aug 2019 15:39:43 +1000 Subject: [PATCH] Add display attributes. Fix #98 --- .../Models/InvoicingModels/CreateInvoiceModel.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs b/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs index 9fd8b923e..b9b0b2dba 100644 --- a/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs +++ b/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs @@ -5,6 +5,7 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using BTCPayServer.Validation; +using System.ComponentModel; namespace BTCPayServer.Models.InvoicingModels { @@ -37,11 +38,13 @@ namespace BTCPayServer.Models.InvoicingModels get; set; } + [DisplayName("Item Description")] public string ItemDesc { get; set; } + [DisplayName("POS Data")] public string PosData { get; set; @@ -54,12 +57,14 @@ namespace BTCPayServer.Models.InvoicingModels } [EmailAddress] + [DisplayName("Notification Email")] public string NotificationEmail { get; set; } [Uri] + [DisplayName("Notification Url")] public string NotificationUrl { get; set; @@ -70,12 +75,15 @@ namespace BTCPayServer.Models.InvoicingModels get; set; } - + + [DisplayName("Supported Transaction Currencies")] public List SupportedTransactionCurrencies { get; set; } + + [DisplayName("Available Payment Methods")] public SelectList AvailablePaymentMethods { get;