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.
Floating labels don't display correctly if they're used with an input group, i.e. if `prepend:` or `append:` are set. ```ruby f.text_field :name, floating: true, prepend: "My name is" ``` Generates:...
ERROR in ./app/javascript/stylesheets/application.scss (./node_modules/css-loader/dist/cjs.js??ref--7-1!./node_modules/postcss-loader/src??ref--7-2!./node_modules/sass-loader/dist/cjs.js??ref--7-3!./app/javascript/stylesheets/application.scss) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): @import 'rails_bootstrap_forms'; ^ File to import not found or unreadable: rails_bootstrap_forms. in /home/wotogo/myapp/datamart/app/javascript/stylesheets/application.scss (line 2, column 1) Error: @import 'rails_bootstrap_forms'; ^...
While refactoring for #642 , `BootstrapFormGroupTest#test_append_and_prepend_button` started outputting escaped strings instead of HTML. But the test hadn't changed. So the question is, did the code always allow unsafe strings to...
Hey! I'd like to propose several improvements for your gem: 1. Please add form template generator for `lib/templates/erb/scaffold/_form.html.erb` to automatically generate forms with `bootstrap_form_for` 2. Add support for rails7 esbuild....
Checkboxes end up over on the right. Any other info i can provide? ```haml = bootstrap_form_with(model: @foo, inline_errors: false, local: true, layout: :horizontal, label_col: "col-sm-3 text-sm-right", control_col: "col-sm-9") do |f|...
It appears that Danger can't find the commit from the pull request when the pull request is from a fork. This causes a lint failure for many pull requests. See...
One approach to solving #477 and related issues would be to implement be to make our implementation use the Rails methods for `label` and `check_box` and `radio_button` in a way...
Active Storage lets you upload files from the client directly to the cloud by setting `direct_upload: true` on your file_field in the form. Would be awesome if Bootstrap Form automatically...
Hi, Is there an easy or recommended way to generate markup for *floating labels*? Two examples: - Bootstrap examples: https://getbootstrap.com/docs/4.3/examples/floating-labels/ - simple_form: http://simple-form-bootstrap.plataformatec.com.br/examples/floating_label Basically I think it needs: - [some...
Without the bootstrap_form gem by default the rails forms show the filename or the number of files when selected, so the user knows they successfully selected a file to be...