kristijanhusak/laravel-form-builder

Horizontal bootstrap forms support

Open

#175 opened on Oct 28, 2015

 (4 comments) (0 reactions) (0 assignees)PHP (305 forks)github user discovery
help wanted

Repository metrics

Stars
 (1,715 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi Kris,

I'm checking out your form builder and i'm missing horizontal form support. I want to be able to switch from horizontal to vertical and not making static changes you suggest in previous issues.

Something i'm trying out to add it is:

in config settings like this: 'layout' => 'horizontal', 'layout_wrapper_classes' => ['col-sm-2', 'col-sm-10']

in formfield->alldefaults like this: 'layout' => $this->formHelper->getConfig('defaults.layout'), 'layout_wrapper_classes' => $this->formHelper->getConfig('defaults.layout_wrapper_classes'),

So I have something to work with in my templates. Is there a better solution?

Thanks.

Contributor guide