Skip to content
Permalink
Browse files

Support form groups templates by type

  • Loading branch information...
jadb committed Mar 31, 2015
1 parent 584a0d8 commit f8beb7b624e00e1ec2523ac1c26ac78f95788548
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/View/Helper/FormHelper.php
@@ -1053,7 +1053,10 @@ public function input($fieldName, array $options = [])
*/
protected function _groupTemplate($options)
{
$groupTemplate = $options['options']['type'] === 'checkbox' ? 'checkboxFormGroup' : 'formGroup';
$groupTemplate = $options['options']['type'] . 'FormGroup';
if (!$this->templater()->get($groupTemplate)) {
$groupTemplate = 'formGroup';
}
return $this->templater()->format($groupTemplate, [
'input' => $options['input'],
'label' => $options['label'],

0 comments on commit f8beb7b

Please sign in to comment.
You can’t perform that action at this time.