Skip to content

Version 2.6.0

Compare
Choose a tag to compare
@peteryates peteryates released this 14 Jun 09:54
77b4c91
  • Make the publish workflow target the oldest supported version of Rails #289
  • Add some enhancements to the error summary:
    • Allow the error summary to accept blocks of arbitrary HTML. These are placed between the title and the error messages list and can be used to provide some additional context #291
    • Allow the order that errors are displayed in to be customised. The custom order can be provided via the order: argument or a default method can be assigned on models that the builder will look for (allowing the ordering to be set in one place and applied to all forms associated with the object). #290
  • Add a helpers module that can be included with include GOVUKDesignSystemFormBuilder::BuilderHelper. It currently has two methods that expose some form builder functionality to 'the outside'. Theres a sample PR here that shows how to get started. #268
    • govuk_field_id - so you can override the id on custom form elements in a way that the builder's error summary can link to them
    • govuk_error_summary - allows the error summary to be rendered outside of the form