1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 05:43:10 +02:00

feat(core): add ability to hide title for hidden fields #240

This commit is contained in:
Awilum
2019-10-24 22:26:14 +03:00
parent 696b6e9175
commit 085fc67ff8

View File

@@ -176,9 +176,13 @@ class Forms
$form_label = '';
}
$form .= '<div class="form-group ' . $property['size'] . '">';
$form .= $form_label . $form_element;
$form .= '</div>';
if ($property['type'] == 'hidden') {
$form .= $form_element;
} else {
$form .= '<div class="form-group ' . $property['size'] . '">';
$form .= $form_label . $form_element;
$form .= '</div>';
}
}
$form .= '</div>';
$form .= '</div>';