bootstrap_form icon indicating copy to clipboard operation
bootstrap_form copied to clipboard

checkboxes in vertical forms render weird

Open rileytg opened this issue 5 years ago • 1 comments
trafficstars

Checkboxes end up over on the right. Any other info i can provide?

Symphony_Next_Beta-8
= 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|
  .card
    %h5.card-header= title
    .card-body
      = f.text_field :name
      - unless @mssql_server.code.present?
        = f.text_field :code
      = f.text_field :host
      = f.text_field :port
      = f.text_field :version
      = f.form_group do
        = f.check_box :linux, custom: :switch

    .card-footer
      = f.submit 'Save', class: 'btn btn-primary'
      = link_to 'Cancel', link_to_cancel, class: 'btn btn-secondary'

rileytg avatar Jan 23 '20 19:01 rileytg

Hi @rileytg !

Are you still interrested in this? Is so, I will take a look.

Maybe the field should follow the same pattern as the other fields and have a label to the left and the switch left aligned in the rioght column?

donv avatar Apr 21 '22 12:04 donv

I think this is now fixed. Please reopen if there is more to do.

donv avatar Sep 15 '23 20:09 donv