Skip to content

Confirm Functioning of Options That Can Be Specified at Form or Form Element Level #412

@lcreid

Description

@lcreid

Some questions have been raised about options, like layout: inline/inline:true, that can be specified at the form level (on bootstrap_form_for, bootstrap_form_tag, or bootstrap_form_with), or at the individual element level (on checkbox for example). The documentation may be unclear or wrong, the code may be wrong, or both.

This issue is intended to capture the discussion around these options. It may lead to more specific issues and pull requests. Please contribute your thoughts.

From: #410 (review):

Some parts of the README imply that you just add layout: :inline to bootstrap_form_for and you are done. But that is either broken or the doc is wrong, because as I see in the tests, you must explicitly pass inline: true to each radio or checkbox (in addition to passing layout: :inline for the form?).

The options that should be looked at are:

  • layout: inline/inline:true
  • layout: horizontal
  • hide_label
  • skip_label
  • label_class
  • label_col
  • control_col
  • inline_errors
  • label_errors

Please add any other options that you think should be considered.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions