Closed seagullmouse closed 10 years ago
Will look into the possibility of adding this functionality and report back with my findings.
This ready for me to try yet?? ta
I've created it on the develop branch, but haven't yet pushed it up. Just need some time to get it exactly how I want it to work.
I have now introduced this into develop if you would like to check it out. If its something that works well, i'll introduce it into master.
There are 3 new methods that have been added to Bootstrapper to set the form type Bootstrap::vertical() this is the default form type and require no parameters, horizontal() is for a horizontal based form this accepts input class and label class, and finally a Bootstrap::inline() method for an inline form, this only accepts a label class parameter.
These three methods are chain-able, so for example you can call "Bootstrap::inline()->text('Name', 'Value');". The set form type is then inherited into any form field that is created.
This has now been merged to master, and will be tagged in the next release.
E.g. my forms often look like this for longer forms, an extra div around the input
form-horizontal