Form Open

The type attribute allow you to specify the form layouts, which can be search, inline or horizontal

Form::open(array("type" => "horizontal"))

Form Actions

The form-actions is generated when calling action_open() method. html attributes are supported as parameter

Form::action_open(array('id' => 'submit-action'))
	Form::reset()
	Form::submit()
Form::group_close()

Form Controls

Control groups are working with .form-horizontal form types.
Wrapping controls inside group automatically adds .control-label to labels, and wrap suported controls into .controls element.

Form::group_open()
	Form::label('First control label')
	Form::input('control')
	Form::help('help text')
Form::group_close()
help text
The group_open() method accepts array of html attributes as args, or the validation status as string:
Form::group_open('warning')

Supported controls

  • Inputs
  • Radios / Checkboxes
  • Textarea
  • Selects