bootstrap_form
bootstrap_form copied to clipboard
Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
It looks like the mark-up added by the relatively new option `required: true` causes Chrome (at least, likely others) to do the HTML5 validation on the front end. Needs investigation...
The [basic custom form fields](https://getbootstrap.com/docs/4.3/components/forms/#custom-forms) are usually something you want to apply either globally or not at all, so it would be great to have the ability to globally default...
The Rails `collection_check_boxes` and `collection_radio_button` methods [can take a block](http://edgeapi.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#method-i-collection_check_boxes). If a block is provided, the helper yields a special builder to the block. The idea is that the programmer...
Instead of using an `` tag, marking it as readonly, and worrying in the documentation about seeing errors in your input parameters, perhaps it would be simpler to render static...
A picture is worth a thousand words. ------  ------ ```slim = form.rich_text_area :summary = form.submit "Save", class: 'btn-primary' ``` I haven't dug into the CSS yet to understand what's...
I want to add additional classes to the checkboxes in a collection rendered with `collection_check_boxes`. According to the [documentation](https://github.com/bootstrap-ruby/bootstrap_form#collections), "Other options [than `:label`, `:hide_label`, `:help`] will be forwarded to the...
It would be nice to add a class when the input is valid i.e. `is-valid`. 
The following code: ``` ``` Generates the following HTML: ``` Volunteer ``` The `for` attribute on the label does not match the check box id because it's using namespace. It...
the issue is present because the collection_check_boxes method doesn't generate id's for the input elements nor a for attribute for the label which breaks the check box. My suggestion is...
The tests check for an attribute `multiple="multiple"` on the hidden `input` field generated at the start of a group of check boxes. The [HTML spec on the `multiple` attribute](https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple) doesn't...