Skip to content

Commit 967c259

Browse files
committed
Add structural elements to be rendered
1 parent 0b8b0ff commit 967c259

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/WebApp/BootstrapTheme/HorizontalFormRenderer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function renderFormChildren($children) {
7171

7272
public function renderFormChild($child) {
7373
$rc = '';
74-
if (is_a($child, 'WebApp\\Component\\FormElement') || is_a($child, 'WebApp\\Component\\I18nFormElement')) {
74+
if ($child->getAnnotation('webapp/formtype') == 'structure') {
75+
$rc .= $this->theme->renderComponent($child);
76+
} else if (is_a($child, 'WebApp\\Component\\FormElement') || is_a($child, 'WebApp\\Component\\I18nFormElement')) {
7577
if (is_a($child, 'WebApp\\Component\\Checkbox')) {
7678
$rc .= $this->renderCheckbox($child);
7779
} else if (is_a($child, 'WebApp\\Component\\HiddenInput')) {

0 commit comments

Comments
 (0)