simple_form 3.1.0.rc2 or bootstrap is messing up with forms (mainly for datatime and radio_buttons fields)

47 views
Skip to first unread message

leandro...@corp.globo.com

unread,
Oct 24, 2014, 8:29:12 PM10/24/14
to plataformate...@googlegroups.com

I'm using simple_form 3.1.0.rc2 with Rails  4.1.4. My form is very simple, as you can see down bellow.

<%= simple_form_for(@transmission) do |f| %>
 
<%= f.error_notification %>
 
<%= f.input :name, placeholder: 'Event name' %>
 
<%= f.input :event_url %>
 
<%= f.input :description, as: :text %>
 
<%= f.input :event_type, selected: @transmission.event_type || Transmission::EVENT_TYPES.first, collection: Transmission::EVENT_TYPES %>
 
<%= f.input :event_start, as: :datetime %>
  <%= f.input :event_end, as: :datetime %>
 
<%= f.input :media_id %>
  <%= f.input :max_bitrate, as: :radio_buttons checked: @transmission.max_bitrate || 750, collection: Admin::Transmission::BITRATES %>
 
<%= f.submit 'Save', class: 'btn btn-primary' %>
 
<%= link_to 'Back', transmissions_path, class: 'btn btn-primary' %>
<% end %>



This form outputs this strange html (I tested using Chrome Version 38.0.2125.101 on MacOs ). 

I'm most worried with: datetime and radio_buttons fields, am I missing something? what can I do to fix this?




leandro...@corp.globo.com

unread,
Oct 27, 2014, 11:18:54 AM10/27/14
to plataformate...@googlegroups.com
Please help me even with a link to possibles ways to deal with it. 

leandro...@corp.globo.com

unread,
Oct 27, 2014, 7:32:33 PM10/27/14
to plataformate...@googlegroups.com
I solved by overriding some css classes.


On Friday, October 24, 2014 10:29:12 PM UTC-2, leandro...@corp.globo.com wrote:

Klaus G

unread,
Feb 10, 2015, 4:46:12 AM2/10/15
to plataformate...@googlegroups.com
Could you share us your solution pls, as I have the same problem.
Reply all
Reply to author
Forward
0 new messages