Skip to content

Commit 134aa4e

Browse files
author
Vincent Sposato
committed
Updated .gitignore to exclude the PHPStorm IDE items
Included $labelOptions on openGroup, so that you can pass in options to the label for use on horizontal forms in Bootstrap
1 parent f982644 commit 134aa4e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
composer.phar
33
composer.lock
44
.DS_Store
5+
.idea

src/Manavo/BootstrapForms/FormBuilder.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ class FormBuilder extends IlluminateFormBuilder {
1919
* @param string $name
2020
* @param mixed $label
2121
* @param array $options
22+
* @param array $labelOptions
2223
* @return string
2324
*/
24-
public function openGroup($name, $label = null, $options = array())
25+
public function openGroup($name, $label = null, $options = array(), $labelOptions = array())
2526
{
2627
$options = $this->appendClassToOptions('form-group', $options);
2728

@@ -37,7 +38,7 @@ public function openGroup($name, $label = null, $options = array())
3738

3839
// If a label is given, we set it up here. Otherwise, we will just
3940
// set it to an empty string.
40-
$label = $label ? $this->label($name, $label) : '';
41+
$label = $label ? $this->label($name, $label, $labelOptions) : '';
4142

4243
return '<div'.$this->html->attributes($options).'>'.$label;
4344
}

0 commit comments

Comments
 (0)