From 368ab4aba6d3cbe379030020f2e8da05ded6d4fa Mon Sep 17 00:00:00 2001 From: Hugo Peek Date: Tue, 30 Jun 2020 19:56:58 +0800 Subject: [PATCH] Add option to activate FormSource in FormBlocks reports --- _build/config.json | 7 +++++++ _build/src/00_electrons/e_formblocks/settings.json | 6 ++++++ core/components/romanesco/docs/changelog.md | 1 + .../templates/04_templates/t_global/fbform.template.tpl | 2 ++ 4 files changed, 16 insertions(+) diff --git a/_build/config.json b/_build/config.json index ddc927dc..9eeb1e56 100644 --- a/_build/config.json +++ b/_build/config.json @@ -5171,6 +5171,13 @@ "area": "FormBlocks - Settings", "value": "" }, + { + "key": "formsource", + "namespace": "formblocks", + "type": "combo-boolean", + "area": "FormBlocks - Settings", + "value": "0" + }, { "key": "activation_resource_id", "namespace": "formblocks", diff --git a/_build/src/00_electrons/e_formblocks/settings.json b/_build/src/00_electrons/e_formblocks/settings.json index c7b9b29d..a1590302 100644 --- a/_build/src/00_electrons/e_formblocks/settings.json +++ b/_build/src/00_electrons/e_formblocks/settings.json @@ -18,6 +18,12 @@ "type": "textfield", "area": "FormBlocks - Settings", "value": "" + },{ + "key": "formsource", + "namespace": "formblocks", + "type": "combo-boolean", + "area": "FormBlocks - Settings", + "value": "0" },{ "key": "activation_resource_id", "namespace": "formblocks", diff --git a/core/components/romanesco/docs/changelog.md b/core/components/romanesco/docs/changelog.md index 24a3337b..7852b3f4 100644 --- a/core/components/romanesco/docs/changelog.md +++ b/core/components/romanesco/docs/changelog.md @@ -5,6 +5,7 @@ Released on ... Fixes and improvements: - Refactor main accordion menu +- Add option to activate FormSource in FormBlocks reports - Add ability to change custom CSS path (per context, if needed) - Create absolute path for CSS backgrounds that won't be thumbnailed - Rename Semantic assets paths in system settings diff --git a/core/components/romanesco/elements/templates/04_templates/t_global/fbform.template.tpl b/core/components/romanesco/elements/templates/04_templates/t_global/fbform.template.tpl index 91e19fd9..2b4c07f4 100644 --- a/core/components/romanesco/elements/templates/04_templates/t_global/fbform.template.tpl +++ b/core/components/romanesco/elements/templates/04_templates/t_global/fbform.template.tpl @@ -51,6 +51,7 @@ [[*fb_hooks:notempty=`[[*fb_hooks]],`]] [[*fb_email_to:notempty=`email,`]] [[*fb_autoresponder_toggle:eq=`1`:then=`FormItAutoResponder,`]] + [[++formblocks.formsource:eq=`1`:then=`formsource_reset,`]] redirect ` @@ -113,6 +114,7 @@
[[[[+multiple_steps:notempty=`!fbFormReport? &formID=`[[*id]][[+prev_forms:prepend=`,`]][[+next_forms:prepend=`,`]]` &tplPrefix=`fbStoreRow_``]]]] + [[[[++formblocks.formsource:eq=`1`:then=`!formsource`]]]]