govuk-form-builder

A form builder for Ruby on Rails that’s compatible with the GOV.UK Design System.

MIT License

Downloads
694K
Stars
75

Bot releases are visible (Hide)

govuk-form-builder - Version 1.1.11

Published by peteryates over 4 years ago

  • Allow custom classes to be passed into #govuk_submit, thanks @cpjmcquillan #128
  • Add support for localised radio button and checkbox values, thanks @zheileman #125
  • Allow fieldset legends to be visually hidden, thanks again @zheileman #123
  • Improve documentation around content injection #122
  • Fix a bug where fieldset legends rendered directly (via #govuk_fieldset) weren't being rendered in templates but were everywhere else. Thanks to @aldavidson and @jebw for reporting and testing #130
  • Fix CodeClimate's simplecov integration #120
govuk-form-builder - Version 1.1.10

Published by peteryates over 4 years ago

  • Fix a bug where translation missing errors were being incorrectly triggered when config.i18n.fallbacks = true was set in the config. Thanks to @aliuk2012 for raising and helping debug this #115
  • Update govuk-rubocop and pin to version 3.7 #117
govuk-form-builder - Version 1.1.9

Published by peteryates over 4 years ago

  • Improve the ordering of checkbox and radio button elements, now the hints are closer to the inputs and the supplemental content is higher up, beneath the label/legend
govuk-form-builder - Version 1.1.8

Published by peteryates over 4 years ago

  • Reorder the elements of all inputs so that hints and errors appear alongside the inputs and injected (supplemental) content appears beneath the label/legend. This is more inkeeping with the intentions of the design system. Thanks @simcast, @zheileman for bringing this to my attention. #111, #112
  • Update several gems to their latest versions #107, #108, #109, #111
govuk-form-builder - Version 1.1.7

Published by peteryates over 4 years ago

  • Remove the govuk-form-group container from govuk_submit helper. It was not part of the design system and created additional unwanted spacing around the button. Thanks @duncanjbrown #105
govuk-form-builder - Version 1.1.6

Published by peteryates over 4 years ago

  • Fix a display issue where injected content was being rendered between the error message and the associated form inputs in the check box and radio button collection helpers, thanks @zheileman for raising this! #102, #103
govuk-form-builder - Version 1.1.5

Published by peteryates over 4 years ago

  • Upgrade to design system version 3.6.0
govuk-form-builder - Version 1.1.4

Published by peteryates over 4 years ago

  • Allow the govuk-radios and govuk-fieldsets containers to accept additional CSS classes via an extra argument. Thanks to @adamsilver for requesting @tvararu for implementing! #96 #97
govuk-form-builder - Version 1.1.3

Published by peteryates over 4 years ago

  • Change the supported GOV.UK Design System version to 3.5.0 #95
govuk-form-builder - Version 1.1.2

Published by peteryates over 4 years ago

  • Add #govuk_password_field text input helper, thanks @jsugarman #93
  • Allow RSpec to be run in a focussed manner, thanks again @jsugarman #92
govuk-form-builder - Version 1.1.1

Published by peteryates almost 5 years ago

  • Fix a bug where the same id was being assigned to multiple radio button hints, thanks @stevehook #89
  • Allow the builder to work with plain old ruby objects in addition to ActiveModel and ActiveRecord-backed ones, thanks @jsugarman #90
govuk-form-builder - Version 1.1.0

Published by peteryates almost 5 years ago

  • Allow various settings in the builder to be configured via an initialiser #73
  • Add localisation #68
  • Add support for custom localisation schemas #81
  • Add support for Ruby 2.7.0 and Rails 6.0.2 #86
  • Allow _collection_method field args to take procs #75
  • Switch from govuk_lint to rubocop #61
  • Huge refactor of Base object, move shared functionality out to a set of Traits modules #77
  • Improve the way the gem loads itself #78
govuk-form-builder - Version 1.0.1

Published by peteryates almost 5 years ago

  • Fix a bug that prevented dynamic character counting JavaScript from being properly-initialised. Thanks to @dankmitchell for assisting with diagnosing and fixing this! 👍 #71
govuk-form-builder - Version 1.0.0

Published by peteryates almost 5 years ago

  • Support for GOV.UK Design System 3.4.0 #67
  • Integrate dependabot 🤖 #62
  • Various guide improvements and minor dependency bumps #63 #61 #66
  • Drop references of support for older versions of the design system, there have been numerous bug fixes and the 0.7.x branch isn't really fit for general use without backporting some of the improvements
govuk-form-builder - Version 0.9.8

Published by peteryates almost 5 years ago

  • Allow date inputs to be rendered without the day part. This allows for less-exact dates, such as graduation dates, to be captured. Internally Rails will assign 01 to the missing part. #56 #57
  • Some minor bits of tidying up including silencing NPM output when building the guide and removing unused assets
govuk-form-builder - Version 0.9.7

Published by peteryates about 5 years ago

  • Support for GOV.UK Design System version 3.3.0 #53
  • Remove unlicenced assets from the guide #52
  • Fix display bug where conditional content wasn't properly aligned #50
  • Improve the display of hyperlinks in the guide #49
govuk-form-builder - Version 0.9.6

Published by peteryates about 5 years ago

  • Fix a minor label bug when radio/checkbox fieldsets have errors #44 (similar to #43 but for fieldsets rather than collections)
  • Add MIT LICENCE file
  • Add gemspec metadata, hopefully it will improve dependabot's PR descriptions 🤖
govuk-form-builder - Version 0.9.5

Published by peteryates about 5 years ago

  • Remove Rails as a dependency, only require the parts that are absolutely required (Action View, Active Model and Active Support) #40
  • Separate out text input fields into separate classes #41
  • Add error classes to the select input #42
  • Fix a bug where on the govuk_collection_check_boxes and govuk_collection_radio_buttons methods, when errors were present the error field label was being applied to all labels instead of just the first one #43
govuk-form-builder - Version 0.9.4

Published by peteryates about 5 years ago

  • Remove the Rails 6.0.0 requirement, make the Rails requirement allow version 5.2.3 or later
  • Make Travis test against multiple versions of Rails, currently 5.2.3 and 6.0.0
govuk-form-builder - Version 0.9.3

Published by peteryates about 5 years ago

  • A full guide has been created to accompany the project. It is written in Nanoc and loads the form builder to produce all of the example code contained within it #25
  • More accessible injectable content. When blocks of arbitrary HTML are passed into form helpers the contents are wrapped in a <div> tag which is automatically referenced by the element's aria-describedby attribute. This doesn't affect how they look but will make the contents more-discoverable to people using assistive technologies like screen readers #32
  • Bold labels for radio buttons. #31
  • Support for
    • Rails 6, Ruby 2.6.3 #34
    • and the GOV.UK Design System 3.2.0 #36
  • File upload fields
  • Improved display of character limit hints on text areas #22
  • Plenty of refactoring, optimisation and small display/formatting fixes
Package Rankings
Top 3.89% on Rubygems.org
Badges
Extracted from project README
Tests Maintainability Gem version Gem Test Coverage GitHub license GOV.UK Design System version Rails Ruby Netlify Status