I am using this example Bootstrap3 example to render a form and was wondering if it was possible to add custom classnames to form input wrappers based on the control type. I tried the following but it applies to the form inputs and not the surrounding wrapper divs (form-group in this case):
foreach ($form->getControls() as $control) {
$type = $control->getOption('type');
$control->getControlPrototype()->addClass('form-' . $control->getControlPrototype()->type);
}