Conversation
|
Thanks for contributing this! Is this PR a work in progress, or is it ready for review? If it is not ready yet, could you add "WIP" to the PR name? |
|
Hi, I'm building a rails CRUD app with |
… checkbox labels * Switched wrapper classes for checkboxes from "checkbox" to "form-check" for Boostrap v4 * Added form-check-input class to input types of 'checkbox' type for Boostrap v4 * Added form-check-label to form-labels, but not to inline-form-label's because they're not supported yet. Bootstrap v4 fixes. * Updated CHANGELOG.md to include info about checkboxes for Bootstrap v4
|
@antpaw ditto, looks like this work's already in the bootstrap-v4 branch |
|
Personally, I feel that since the bootstrap gem is keeping a v4 alpha up to date, it would be useful if we could get this as a gem as well (maybe require specifying the version if possible). Can we merge the changes from master into this branch as well? |
…p-v4 # Conflicts: # test/bootstrap_checkbox_test.rb # test/bootstrap_fields_test.rb # test/bootstrap_form_group_test.rb # test/bootstrap_form_test.rb # test/bootstrap_selects_test.rb
|
ok, just did it |
|
Here's how you can use this branch in a project: |
|
@bradlis7 this branch is not my branch, they have started their own for some reason. |
|
Well, that branch is somehow associated to this PR, as it says "View #299" when I open that branch. I assumed they pulled some of your changes in. It seems like there are about 5 or 6 people with changes for the conversion, so it's a little confusing. |
|
Hi, this repo has an official However we don't yet have an official PR to go with the |
|
@mattbrictson ye they both look similar, it would be easier to review if your v4 branch also had the newest master in it.. |
|
@antpaw good point; I have now rebased it on the latest |
|
hmm not sure why the diff is still so big, https://github.com/bootstrap-ruby/rails-bootstrap-forms/pull/299/files I like my version better e.g. the tag for form errors and the def error_class |
|
@mattbrictson @antpaw I think the reason the diff is so large is because this branch needs to be rebased against the bootstrap-v4 branch. Most of these changes already exist on bootstrap-v4. |
|
hmm it looks like github is bugged, the target branch is https://github.com/bootstrap-ruby/rails-bootstrap-forms/blob/bootstrap-v4/lib/bootstrap_form/form_builder.rb#L268 i will open an new pull request edit: nope, new pull request wont help, i still see this nonesens diff, i will try to merge your v4 branch into this one |
…p-v4 # Conflicts: # README.md # lib/bootstrap_form/form_builder.rb # test/bootstrap_checkbox_test.rb # test/bootstrap_fields_test.rb # test/bootstrap_form_group_test.rb # test/bootstrap_form_test.rb # test/bootstrap_radio_button_test.rb # test/bootstrap_selects_test.rb
|
okay i have merged v4 into my v4 |
|
one of the main changes is now that i have switched to a |
| label = generate_label(options[:id], name, options[:label], options[:label_col], options[:layout]) if options[:label] | ||
| control = capture(&block).to_s | ||
| control.concat(generate_help(name, options[:help]).to_s) | ||
| # TODO create `generate_error` |
|
@mattbrictson @antpaw need to remove the #TODO comment, looks good otherwise! |
|
done |
|
please note my other pr that covers this todo #300 |
16d82d6 to
a68a242
Compare
|
@antpaw @mattbrictson closing this since the changes in beta3 make this obsolete. |
This branch can be used for all the changes that will come with the update to v4