|
@@ -1053,7 +1053,10 @@ class FormHelper extends Helper
|
|
|
*/
|
|
*/
|
|
|
protected function _groupTemplate($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, [
|
|
return $this->templater()->format($groupTemplate, [
|
|
|
'input' => $options['input'],
|
|
'input' => $options['input'],
|
|
|
'label' => $options['label'],
|
|
'label' => $options['label'],
|