From 929b5c7951c29e8cf82ba56715d6e88a9aaaf96c Mon Sep 17 00:00:00 2001 From: Lucas Cullen Date: Sat, 24 Aug 2019 15:39:43 +1000 Subject: [PATCH 1/2] 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; From 6064e3ce557ca295f9f773c2e04be7a50879f117 Mon Sep 17 00:00:00 2001 From: Lucas Cullen Date: Mon, 18 Nov 2019 08:12:06 +1000 Subject: [PATCH 2/2] Add office365 quick settings --- BTCPayServer/Views/Shared/EmailsBody.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer/Views/Shared/EmailsBody.cshtml b/BTCPayServer/Views/Shared/EmailsBody.cshtml index a44b349f3..58a739a2e 100644 --- a/BTCPayServer/Views/Shared/EmailsBody.cshtml +++ b/BTCPayServer/Views/Shared/EmailsBody.cshtml @@ -18,6 +18,7 @@