From 1204da6edf50151153262af042282130dd95e298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kud=C4=9Blka?= Date: Fri, 30 Jan 2026 14:01:09 +0100 Subject: [PATCH] Adds template block for static containers Introduces a template block for rendering static container components, allowing for more flexible and customizable rendering of these components. This allows special rendering for replicators. --- src/BaseForm.latte | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/BaseForm.latte b/src/BaseForm.latte index 484cef9..b8dd4e2 100644 --- a/src/BaseForm.latte +++ b/src/BaseForm.latte @@ -38,9 +38,14 @@ {else} {if $el instanceof ADT\Forms\StaticContainer} {varType ADT\Forms\StaticContainer $el} - {foreach $el->getElements() as $_el} - {include renderEl, el => $_el} - {/foreach} + {var $blockName = 'component-items-row'} + {ifset #$blockName} + {include #$blockName, component => $el} + {else} + {foreach $el->getElements() as $_el} + {include renderEl, el => $_el} + {/foreach} + {/ifset} {else} {include renderControl, control => $el} {/if}