From 7ab78fff3f877bb59a1de7abaef2731b2ab0138b Mon Sep 17 00:00:00 2001 From: dstrukt Date: Sun, 21 Nov 2021 20:54:42 -0800 Subject: [PATCH] Invoice View Improvements (#3092) * view improvements * improves label, adds section headers, re-orders * Available payment methods as checkboxes * adds required label * Update default payment method label Thanks @woutersamaey for the suggestion. * Move POS data and notifications to additional options * Update display names * adds checkbox to pull payments * updates label * Revert "updates label" This reverts commit 9ed320e863951534d0dd359c13ec7dbaa4e1bd56. * Revert "adds checkbox to pull payments" This reverts commit 28ea6bfb6ed17df8cc44117814bffdfc80c12e70. * removes required label * Select all supported tx currencies by default Slight modification to the checkbox list. Co-authored-by: Dennis Reimann Co-authored-by: Samuel Adams --- .../InvoicingModels/CreateInvoiceModel.cs | 6 +- .../Views/Invoice/CreateInvoice.cshtml | 111 ++++++++++++------ 2 files changed, 80 insertions(+), 37 deletions(-) diff --git a/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs b/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs index 058cd2a78..8bee6a4a0 100644 --- a/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs +++ b/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs @@ -38,7 +38,7 @@ namespace BTCPayServer.Models.InvoicingModels get; set; } - [Display(Name = "Default payment method on checkout")] + [DisplayName("Default payment method on checkout")] public string DefaultPaymentMethod { get; set; @@ -58,7 +58,7 @@ namespace BTCPayServer.Models.InvoicingModels } [Uri] - [DisplayName("Notification Url")] + [DisplayName("Notification URL")] public string NotificationUrl { get; set; @@ -89,7 +89,7 @@ namespace BTCPayServer.Models.InvoicingModels get; set; } - [Display(Name = "Require Refund Email")] + [DisplayName("Require Refund Email")] public RequiresRefundEmail RequiresRefundEmail { get; set; diff --git a/BTCPayServer/Views/Invoice/CreateInvoice.cshtml b/BTCPayServer/Views/Invoice/CreateInvoice.cshtml index 86fd5ca90..ae04b36c1 100644 --- a/BTCPayServer/Views/Invoice/CreateInvoice.cshtml +++ b/BTCPayServer/Views/Invoice/CreateInvoice.cshtml @@ -1,7 +1,7 @@ @model BTCPayServer.Models.InvoicingModels.CreateInvoiceModel @using BTCPayServer.Services.Apps @{ - ViewData.SetActivePageAndTitle(InvoiceNavPages.Create, "Create an invoice"); + ViewData.SetActivePageAndTitle(InvoiceNavPages.Create, "Create Invoice"); } @section PageFootContent { @@ -32,9 +32,15 @@

@ViewData["Title"]

-
+
+
+ + + +
+

Invoice Details

@@ -55,51 +61,88 @@
-
- - - +
+ + @foreach (var item in Model.AvailablePaymentMethods) + { +
+ +
+ } +
+
+ + + +
+

Customer Information

- +
+ +

Additional Options

- - - +
+
+

+ +

+
+

Custom data to correlate the invoice with an order. This data can be a simple text, number or JSON object, e.g. { "orderId": 615, "product": "Pizza" }

+
+ + + +
+
+
+
+

+ +

+
+
+
+ + + +
+
+ + + +

+ Receive updates for this invoice. +

+
+
+
+
+
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-