From a3b4ceba50b755990039182ff760a19fffbccfb4 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Wed, 22 Jul 2020 15:31:09 +0200 Subject: [PATCH] Improve update store view --- .../Models/StoreViewModels/StoreViewModel.cs | 8 +- BTCPayServer/Views/Stores/UpdateStore.cshtml | 82 ++++++++++++------- 2 files changed, 55 insertions(+), 35 deletions(-) diff --git a/BTCPayServer/Models/StoreViewModels/StoreViewModel.cs b/BTCPayServer/Models/StoreViewModels/StoreViewModel.cs index c91280e3d..7e5990d1d 100644 --- a/BTCPayServer/Models/StoreViewModels/StoreViewModel.cs +++ b/BTCPayServer/Models/StoreViewModels/StoreViewModel.cs @@ -56,7 +56,7 @@ namespace BTCPayServer.Models.StoreViewModels public List ThirdPartyPaymentMethods { get; set; } = new List(); - [Display(Name = "Invoice expires if the full amount has not been paid after ... minutes")] + [Display(Name = "Invoice expires if the full amount has not been paid after …")] [Range(1, 60 * 24 * 24)] public int InvoiceExpiration { @@ -64,7 +64,7 @@ namespace BTCPayServer.Models.StoreViewModels set; } - [Display(Name = "Payment invalid if transactions fails to confirm ... minutes after invoice expiration")] + [Display(Name = "Payment invalid if transactions fails to confirm … after invoice expiration")] [Range(10, 60 * 24 * 24)] public int MonitoringExpiration { @@ -72,13 +72,13 @@ namespace BTCPayServer.Models.StoreViewModels set; } - [Display(Name = "Consider the invoice confirmed when the payment transaction...")] + [Display(Name = "Consider the invoice confirmed when the payment transaction …")] public SpeedPolicy SpeedPolicy { get; set; } - [Display(Name = "Add additional fee (network fee) to invoice...")] + [Display(Name = "Add additional fee (network fee) to invoice …")] public NetworkFeeMode NetworkFeeMode { get; set; diff --git a/BTCPayServer/Views/Stores/UpdateStore.cshtml b/BTCPayServer/Views/Stores/UpdateStore.cshtml index f3fd51351..9c8c375a1 100644 --- a/BTCPayServer/Views/Stores/UpdateStore.cshtml +++ b/BTCPayServer/Views/Stores/UpdateStore.cshtml @@ -20,6 +20,7 @@
+

General

@@ -34,6 +35,23 @@
+ +

Payment

+
+
+ + + +
+
+
+
+ + + + +
+
@@ -43,19 +61,17 @@
-
-
- - - -
-
- +
+ +
+ minutes +
+
@@ -63,7 +79,12 @@
- +
+ +
+ minutes +
+
@@ -71,7 +92,12 @@
- +
+ +
+ percent +
+
@@ -79,7 +105,7 @@
- @@ -87,15 +113,9 @@ -
- - - - -
-
Derivation Scheme
+

Derivation Scheme

The Derivation Scheme represents the destination of the funds received by your invoice on chain.

@@ -112,23 +132,23 @@ { -
@scheme.Crypto + @if (string.IsNullOrEmpty(scheme.Value)) { Not set } else { -
- - @scheme.Value - + + @scheme.Value + + @if (scheme.Value.Length > 20) { - var match =Regex.Match(scheme.Value, @"((?:-\[(?:[^\]])+\])+|\S{6})$"); + var match = Regex.Match(scheme.Value, @"((?:-\[(?:[^\]])+\])+|\S{6})$"); @match.Value; } -
+ }
@@ -160,7 +180,7 @@
-
Lightning nodes (Experimental)
+

Lightning nodes (Experimental)

A connection to a lightning charge node is required to generate lightning network enabled invoices.
@@ -183,7 +203,7 @@ @scheme.CryptoCode @scheme.Address - @if(scheme.Enabled) + @if (scheme.Enabled) { } @@ -208,7 +228,7 @@

-
Additional Payment methods
+

Additional Payment methods

@@ -238,7 +258,7 @@
-
Services
+

Services

@@ -256,9 +276,9 @@
- @if(Model.CanDelete) + @if (Model.CanDelete) { -
Other actions...
+

Other actions

Click here to see more actions