Releases: bgaze/bootstrap-form
Releases · bgaze/bootstrap-form
Remove test class from form groups
Added color input
Added color
input method and it's @color
directive alias
Fix model binded form route error
- Fixed
Indirect modification of overloaded property
error when providing update route as array on model binded form - Linted code, corrected typos & improved phpdoc annotations
- Added badges into readme file
Fix weird PHP behaviour messing with checkboxes and radios label
v1.0.6 Improve empty label check
Add id attribute to hidden inputs
- Moved
flattenName
function toHasSettings
trait. - As for others inputs, add
id
attribute tohidden
inputs if missing.
@hidden('hidden1')
@hidden('hidden2', 'some-value', ['id' => 'custom-id'])
Generated HTML:
<input id="hidden1" name="hidden1" type="hidden">
<input id="custom-id" name="hidden2" type="hidden" value="some-value">
Implemented group option inheritance
- Implemented group option inheritance to ease form customizations.
Group attributes can be defined at multiple levels : application wide through package configuration, form wide through form options, and at field level.
Inheritance is supported : provided option is merged on parent option. - Improved config management.
- Updated documentation.
Show errors feedback on input groups
v1.0.3 Issue 4 - Show errors feedback on input groups
Preserve attributes for check group children
When buidling check group, provided attributes weren't passed when building children inputs.
Manage options keys and HTML attributes collisions
Options take precedence on attributes, so using an option key as HTML attribute wasn't possible.
This is now possible by adding a ~
prefix on the key to specify an HTML attribute instead of a form or field option.
Exemple:
@select('multiple_select', null, ['foo' => 'Foo', 'bar' => 'Bar', 'baz' => 'Baz'], null, [
'multiple' => true,
'size' => 'lg', // Size option
'~size' => 2, // Size attribute
])
First release
- Rewritted realripley00/bootstrap-form completly to manage input creation through dedicated classes
- Shorten
BootForm
facade name toBF
. - Added support for most of Bootstrap form features (custom fields, inline radios, ...)
- Added Blade directives aliases for all
BF
functions - Implemented config inheritance : field < form < package
- Implemented group attributes management through field options
- Removed HTML escaping everywhere to ease complex structures creation
- Added various config values and helpers
- Writted complete documentation