From 01dc2a0cbec411176022d9f80b96a7be92f1041b Mon Sep 17 00:00:00 2001 From: Jens Hardings Date: Fri, 13 Oct 2023 10:25:42 -0300 Subject: [PATCH] Enable accordion in form field-groups using qvt rendering --- .../screen-macro/DefaultScreenMacros.qvt.ftl | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/template/screen-macro/DefaultScreenMacros.qvt.ftl b/template/screen-macro/DefaultScreenMacros.qvt.ftl index 3062b48a2..754f73df4 100644 --- a/template/screen-macro/DefaultScreenMacros.qvt.ftl +++ b/template/screen-macro/DefaultScreenMacros.qvt.ftl @@ -523,17 +523,13 @@ ${sri.renderIncludeScreen(.node["@location"], .node["@share-scope"]!)} <#assign fgTitle = ec.getL10n().localize(.node["@title"]!)!> <#if isAccordion!false> <#assign accIsActive = accordionIndex?string == accordionActive> -
- -
+ + default-opened>
${.node["@style"]}"> <#recurse .node/>
-
-
+ + <#assign accordionIndex = accordionIndex + 1> <#elseif .node["@box"]! == "true">
@@ -556,9 +552,9 @@ ${sri.renderIncludeScreen(.node["@location"], .node["@share-scope"]!)} <#assign accordionIndex = 1> <#assign accordionId = .node["@id"]!(formSingleId + "_accordion")> <#assign accordionActive = .node["@active"]!"1"> -
+ <#recurse .node/> -
+ <#assign isAccordion = false> <#macro "field-col-row">