Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
STYLIZE :as => :radio USING Bootstrap radio buttons
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ritvvij Parrikh  
View profile  
 More options May 23 2012, 11:26 pm
From: Ritvvij Parrikh <ritvi...@gmail.com>
Date: Wed, 23 May 2012 20:26:26 -0700 (PDT)
Local: Wed, May 23 2012 11:26 pm
Subject: STYLIZE :as => :radio USING Bootstrap radio buttons
I am using Twitter Bootstrap and Simple form in rails app.

I want to stylize

= f.input :genre, :as => :radio, :collection => [["Business", "UG_B"],
["Registered charity", "UG_C"], ["Individual", "UG_P"]], :label =>
"You are a", :required => true

using

http://twitter.github.com/bootstrap/javascript.html#buttons --> Radio
buttons (Look at the example Left, Middle, Right

<div class="btn-group" data-toggle="buttons-radio">
      %button.btn
      <button class="btn">Left</button>
      <button class="btn">Middle</button>
      <button class="btn">Right</button>
</div>

Any suggestions on how this can be achieved? Thank you in advance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abram  
View profile  
 More options May 24 2012, 1:34 am
From: Abram <funkdif...@gmail.com>
Date: Thu, 24 May 2012 17:34:36 +1200
Local: Thurs, May 24 2012 1:34 am
Subject: Re: STYLIZE :as => :radio USING Bootstrap radio buttons

probably :html => { :data-toggle => "buttons-radio" }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ritvvij Parrikh  
View profile  
 More options May 24 2012, 3:12 am
From: Ritvvij Parrikh <ritvi...@gmail.com>
Date: Thu, 24 May 2012 00:12:32 -0700 (PDT)
Local: Thurs, May 24 2012 3:12 am
Subject: Re: STYLIZE :as => :radio USING Bootstrap radio buttons
Does not work.Even tried:

%div{ "data-toggle" => "buttons-radio", :class => "btn-group" }=
f.input :genre, :as => :radio, :collection => [["Business", "UG_B"],
["Registered charity", "UG_C"], ["Individual", "UG_P"]], :label =>
"You are a", :required => true, :input_html => {:class => "btn"}

Any other suggestions

On May 24, 10:34 am, Abram <funkdif...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abram  
View profile  
 More options May 24 2012, 3:14 am
From: Abram <funkdif...@gmail.com>
Date: Thu, 24 May 2012 19:14:23 +1200
Local: Thurs, May 24 2012 3:14 am
Subject: Re: STYLIZE :as => :radio USING Bootstrap radio buttons

What do you get as html output from that?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »