From 17064ab3c84289b0d865c290061e9cd7c4783612 Mon Sep 17 00:00:00 2001 From: d11n Date: Thu, 24 Aug 2023 08:51:22 +0200 Subject: [PATCH] POS: Unify item display in editor (#5272) --- .../Views/Shared/TemplateEditor.cshtml | 24 ++++++++++++------- BTCPayServer/wwwroot/main/template-editor.css | 7 +++--- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/BTCPayServer/Views/Shared/TemplateEditor.cshtml b/BTCPayServer/Views/Shared/TemplateEditor.cshtml index 817fe313e..fb7fba31c 100644 --- a/BTCPayServer/Views/Shared/TemplateEditor.cshtml +++ b/BTCPayServer/Views/Shared/TemplateEditor.cshtml @@ -101,7 +101,7 @@ } }
-
+
No items.
-
-
-
+ +
+
+
+ {{ item.priceType === 'Topup' ? 'Any amount' : 'Free' }} + {{ item.price }} @Model.currency{{ item.priceType === 'Minimum' ? ' minimum' : '' }} + + {{ item.inventory > 0 ? `${item.inventory} left` : 'Sold out' }} + +
+

{{ item.description }}

+
+