Skip to content

Latest commit

 

History

History
272 lines (209 loc) · 12.6 KB

CHANGELOG.md

File metadata and controls

272 lines (209 loc) · 12.6 KB

1.10.0

  • Add buttongroup field type - #298 (Thanks to @noxify)
  • Allow custom id and for attributes for a field - #285
  • Fix accessing fields from twig by adding __isset magic method - #301
  • Use custom Form macro for labels in views

1.9.0

  • Bump minimum php version to 5.6 - #276 (Thanks to @max-kovpak)
  • Add support for Laravel 5.3 and fix EntityType lists method - #276 (Thanks to @max-kovpak)
  • Add alterFieldValues and alterValid methods to Form class - #272 (Thanks to @rudiedirkx)
  • Fix collection type to use current request data if old input is not available - issue #268
  • Fix automatic class append functionality that was added in PR #220 - use class_append option instead.

1.8.0

  • Add default classes per field - #220 (Thanks to @jvdlaar)
  • Set up ServiceProvider to be compatible with Laravel 5.3 - #236 (Thanks to @marcoraddatz)
  • Added getFieldValues method to form which returns all field values from request - #248 (Thanks to @rudiedirkx)
  • Added events after form and field creation/validation - #254 (Thanks to @rudiedirkx)
  • Allow nested field names without usage of any child fields - #251 (Thanks to @rudiedirkx)
  • Add redirectIfNotValid method to Form - #258 (Thanks to @koenvu)
  • Add class_append option for label_attr, attr and wrapper options which appends classes to the default ones - #257 (Thanks to @koenvu)
  • Add form_rows helper method, and pass child_form to view in ChildFormType, which contains internal Form instance - #262 (Thanks to @rudiedirkx)
  • Fix adding required class to label even without client validation enabled - #261 (Thanks to @koenvu)

1.7.10

  • Fix bug where error_messages were not namespaced properly in child forms (#225)
  • Add check for field name and forbid reserved words (#232)
  • Use Symfony's TranslatorInterface instead of Laravel's Translator implementation(#231)

1.7.0

  • Add check for nested translations (Thanks to @paultela)
  • Add label_show property for field to allow hiding the label without setting it to false (Fixes issue with validation where error message requires label)
  • Add error_messages property for field to allow defining error messages in buildForm.

1.6.50

  • Translate form field labels if translation exist, and add language_name option to Form class in order to allow translating fields from specifing file (Thanks to @koenvu)
  • Add required attribute if validation rules contains required option (Thanks to @koenvu)
  • Fix issue #211 - Multiple select name wrong in subform
  • Fix issue #212 - ChoiceType ignoring own validation rules
  • Fix issue #213 - required attribute applied even if client validation is disabled

1.6.42

  • Fix issue #191 - clientValidationEnabled for child forms not working
  • Fix issue #202 - 'Field already exists' exception when using compose() method
  • Fix issue #204 - 'default_value' not handled properly for CheckableType
  • Fix issue #205 - Data not being passed properly to child form

1.6.41

  • Fix LaravelCollective compatibility with older versions of Laravel (Thanks to @marcoraddatz)
  • Do not throw exception when trying to remove non existing field - #149 (Thanks to @marcoraddatz)
  • Fix README to match php 5.5+ syntax (Thanks to @marcoraddatz)

1.6.40

  • Setup compatibility with Laravel 5.2 and LaravelCollective
  • Bump php requirement to version 5.5
  • Fix bug where different request was used in tests
  • Fix setModel method
  • Add some deprecation warnings

1.6.31

  • Add template_prefix option form form and fields (Thanks to @koenvu)
  • Add empty_row option for Collection type to remove initial empty row when there is no data for it
  • Add removeChild option for ParentType fields to allow removing child
  • Fix child form value binding when parent form has a name.
  • Fix renderUntil to throw exception when field does not exist (Thanks to @pnoonan)
  • Fix form stub to satisfy PSR-2 standard (Thanks to @koenvu)

1.6.30

  • Add client side validation (Thanks to @barryvdh)
  • Extract some part of html in views to own partial
  • Fix select with multiple option naming (#150)
  • Fix model binding on existing instances of child form(#157)
  • Fix duplicate help_block on select/choice (#153)

1.6.20

  • Add Validation to the Form class (#135)
  • Add getters for value and default_value (getValue() and getDefaultValue())
  • Add option to pass template to form class through options
  • Make setValue method public
  • Make unspecified labels to use ucfirst instead of ucwords

1.6.12

  • Add path and namespace options to the form class generator command.

1.6.11

  • Fix checkables checked state not working with model
  • Fix adding for attribute twice to label
  • Add some tests

1.6.10

  • Replace Illuminate/Html with LaravelCollective/Html
  • add disableFields and enableFields functions to Form class to allow disabling all fields in the form
  • Fix collection type model value binding

1.6.0

  • Minor BC Break - Rename default_value to value, and use default_value as fallback value if no value or model data available

    If You published views update all templates and set $options['default_value'] to $options['value']

  • Add form composition (Add fields from another form with compose() method) - Thanks to @theshaunwalker

  • Add trait for controller that allows shorter sintax ($this->form() and $this->plain())

  • Fix renderUntil to check the name by real name instead of namespaced name

  • Fix collection of child forms not rendering when there is no data

  • Fix collection prototype to return proper prototype_name for nested collections

  • Return $this from rebuildForm() method to allow regenerating form in loops

1.5.10

  • Fix collection of forms not rendering when there is no model or any data passed to collection.

1.5.1

  • Add entity field type that allows fetching specific Model data

1.5.0

  • Bind all fields values manually without Laravel's form builder Form::model (Check note below for possible BC break)
  • Add possibility to use Closure as default value for fields which solves issues like in #98
  • Fix passing model to child forms
  • Set FormBuilder class properties to protected to allow extending
  • Optmization and other minor fixes gg Note: If You published views before, they need to be updated to prevent possible breaking. Since value binding is now done in package, and Form::model is removed, views needs to be republished (or updated) to remove Form::model from form.php. Also choice.php needs to be updated to pass selected value.

1.4.26

  • Fix expanded/multiple choice fields id by prefixing it with properly formatted name

1.4.25

  • Add addBefore and addAfter methods to Form class to allow adding fields at specific location
  • Add required option for all field types, that adds class required (configurable in config) to label, and required attribute to field.

1.4.22

  • Fix choice field type not adding [] on regular forms

1.4.21

  • Add wrapper option for button type, defaults to false
  • Fix help_block rendering twice on repeated field type
  • Fix choice field type adding additional [] to the name in child forms/collections

1.4.20

1.4.13

  • Fix default_value for child forms (#77)
  • Pass form data to child forms.

1.4.12

  • Fix issue with showing validation errors for nested forms (#78. Thanks to @theshaunwalker)

1.4.11

1.4.10

  • Use old input for collection field type. (Example: after failed validation, redirect back withInput).
  • Add static type field.
  • Add form_until function that renders fields until specified field(Thanks to @hackel)
  • using getData without param returns all data

1.4.06

  • Bind data to child form every time to allow setting null.

1.4.05

  • Fix id and name collision.

1.4.04

  • Fix collection type form model binding.

1.4.03

  • Fix custom template per field.

1.4.02

  • Fix adding enctype multipart/form-data to form when field is of type file.

1.4.01

  • Fix setting field id on child forms.

1.4.0

  • Allow calling form methods directly from child form
  • Update views to print all errors for single field
  • Fix custom field template for child forms
  • Fix disabling errors for fields in form class

1.3.8

  • Fix form model binding for named forms
  • Collection type now pulls data from model if data not passed in data option

1.3.71

  • Fix choices to show only one error message

1.3.7

  • Update repeated type to work with child forms
  • Add possibility to create named forms (fields get name[fieldname])

1.3.6

  • Add support for some HTML5 input types(By @bishopb)

1.3.5

  • Add choice_options property to choice field type that handles each radio/checkbox options when expanded is true.
  • Allow disabling wrapper for fields by setting it to false

1.3.4

  • Fix child form rebuild bug.

1.3.3

  • Don't override existing aliases for Form and Html (Fixed by @squigg)

1.3.2

  • Allow passing any type of model to form class (array, object, eloquent model, Collection).

1.3.1

  • Fix bug where wrapper was not showing if label was false.

1.3.0

1.2.0

  • Allow adding child forms with full class name which will be instantiated automatically
  • Add FormBuilder class instance to the Form class
  • Setting label explicitly to false in the field options disables printing label for that field
  • Minor fixes

1.1.11

  • Add default_namespace configuration to allow typing only class name when creating form (Same functionality like for routes)

1.1.10

  • Fix loadViewsFrom in the service provider and add publishes paths.

1.1.9

  • Fix service provider.

1.1.8

  • Dynamically access children in parent form types.

1.1.7

  • Fix empty select value to be empty string instead of 0

1.1.6

  • Append [] to field name automatically if multiple attribute is set to true.

1.1.5

  • Fix child form validation errors not showing bug.

1.1.4

1.1.3

  • Added Child form type
  • Added rebuildForm method
  • Added getRequest method
  • Added setData and getData options to form
  • Minor fixes

1.1.2

  • form_end() function now also renders rest of the form fields - can be changed with 2nd parameter as false(form_end($form, false))
  • Minor fixes

1.1.1

  • Added remove() and modify() methods to Form class
  • Added 'empty_value' option for select
  • choice and select types now needs selected option to pass key instead of value of choice

1.1

  • Added Laravel 4 support (Tags 0.*)
  • Config loaded outside of class and injected as array
  • Changed command from laravel-form-builder:make to form:make

1.0

  • Initial version