Hello there.
Following what I have found here
http://simple-form-bootstrap.plataformatec.com.br/articles/new
f.input :disabled_text, :wrapper => :prepend, :hint => "This is the
hint text" do
content_tag :label, :class => "add-on" do
check_box_tag :remove, 'true'
end
f.input_field :disabled_text
end
I'm trying to add to my form a text field with an appended checkbox
using the code below:
f.input :password, :wrapper => :append, :label => "localize it" do
content_tag :label, :class => "add-on" do
check_box_tag
end
f.input_field :password
end
However I don't see the appended checkbox. I can see that some styling
has been applied to the input_field since the right corners are not
longer rounded but the appended area is not visible.
While I was trying to make it work I inverted the elements inside the
input block as below
f.input :password, :wrapper => :append, :label => "localize it" do
f.input_field :password
content_tag :label, :class => "add-on" do
check_box_tag
end
end
and now I see the appended are abut not the input field.
Am I missing something here?
Thanks and have a nice day.