From 7873f9484844e581f7ecedb0ed2e239355d4bb4d Mon Sep 17 00:00:00 2001 From: d11n Date: Tue, 19 Sep 2023 03:10:36 +0200 Subject: [PATCH] Email Rules: Add default texts and document placeholders (#5314) Applies default subject and body text on editing to simplify email rule setup. Once the text is edited manually, the defaus aren't applied on switching the rule type. Also documents the placeholders that can be used. --- .../remotes/Kukks/store-emails | 27 ------- .../Views/UIStores/StoreEmails.cshtml | 81 +++++++++++++++++-- 2 files changed, 75 insertions(+), 33 deletions(-) delete mode 100644 BTCPayServer/Views/UIStores/StoreEmailSettings.cshtml~refs/remotes/Kukks/store-emails diff --git a/BTCPayServer/Views/UIStores/StoreEmailSettings.cshtml~refs/remotes/Kukks/store-emails b/BTCPayServer/Views/UIStores/StoreEmailSettings.cshtml~refs/remotes/Kukks/store-emails deleted file mode 100644 index 4f8dad74f..000000000 --- a/BTCPayServer/Views/UIStores/StoreEmailSettings.cshtml~refs/remotes/Kukks/store-emails +++ /dev/null @@ -1,27 +0,0 @@ -@using Microsoft.AspNetCore.Server.Kestrel.Core -@model BTCPayServer.Models.ServerViewModels.EmailsViewModel -@{ - Layout = "../Shared/_NavLayout.cshtml"; - ViewData.SetActivePage(StoreNavPages.Emails, "Emails", Context.GetStoreData().Id); -} - -
-
-
-

Email Rules

- - Configure - -
-

- Email rules - allow BTCPay Server to send customized emails from your store based on events. -

-
-
- - - -@section PageFootContent { - -} diff --git a/BTCPayServer/Views/UIStores/StoreEmails.cshtml b/BTCPayServer/Views/UIStores/StoreEmails.cshtml index 6cbf64187..928baadc6 100644 --- a/BTCPayServer/Views/UIStores/StoreEmails.cshtml +++ b/BTCPayServer/Views/UIStores/StoreEmails.cshtml @@ -41,7 +41,7 @@
    @for (var index = 0; index < Model.Rules.Count; index++) { -
  • +
  • } @@ -96,4 +108,61 @@ @section PageFootContent { + }