From ec59980e6f36e28d1841cd095577c6499d7725c1 Mon Sep 17 00:00:00 2001 From: rockstardev Date: Thu, 16 Aug 2018 21:55:24 +0200 Subject: [PATCH] Validation and conditional rendering of Generated Code section --- BTCPayServer/Views/Apps/PayButton.cshtml | 29 ++++++++++++++++-------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/BTCPayServer/Views/Apps/PayButton.cshtml b/BTCPayServer/Views/Apps/PayButton.cshtml index e0d8e2247..08f0d6e4f 100644 --- a/BTCPayServer/Views/Apps/PayButton.cshtml +++ b/BTCPayServer/Views/Apps/PayButton.cshtml @@ -17,8 +17,10 @@
- + + {{ errors.first('price') }}
@@ -73,21 +75,25 @@
- + + {{ errors.first('serverIpn') }}
- {{ errors.first('emailToNotify') }} - +
- + + {{ errors.first('browserRedirect') }}
@@ -100,7 +106,7 @@

Generated code

-
+
Copy Code @@ -109,6 +115,11 @@
+
+
+ Please fix errors shown in order for code generation to successfully execute. +
+