Skip to content

Commit

Permalink
bugfix - hidden field threw a fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
wtom committed May 20, 2015
1 parent ff9338c commit 3edcbfd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public static function getTemplate($field)
case 'button':
return 'buttonTemplate';

case 'hidden':
return 'hiddenTemplate';

default:
return 'formGroupTemplate';
}
Expand Down Expand Up @@ -331,4 +334,18 @@ private static function getRadioCheckHtml($field)

return $html;
}

/**
* Generates a hidden field
*
* <input type="hidden">
*
* @param Field $field
*
* @return string
*/
public static function hiddenTemplate($field)
{
return $field->input->toHtml();
}
}

0 comments on commit 3edcbfd

Please sign in to comment.