STYLIZE :as => :radio USING Bootstrap radio buttons
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: 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.
You do not have the permission required to post.
|
 |
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" }
On Thu, May 24, 2012 at 3:26 PM, Ritvvij Parrikh <ritvi ...@gmail.com> wrote:
> 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.
You do not have the permission required to post.
|
 |
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:
> probably :html => { :data-toggle => "buttons-radio" }
> On Thu, May 24, 2012 at 3:26 PM, Ritvvij Parrikh <ritvi...@gmail.com> wrote:
> > 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.
You do not have the permission required to post.
|
 |
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?
On Thu, May 24, 2012 at 7:12 PM, Ritvvij Parrikh <ritvi ...@gmail.com> wrote:
> 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:
> > probably :html => { :data-toggle => "buttons-radio" }
> > On Thu, May 24, 2012 at 3:26 PM, Ritvvij Parrikh <ritvi...@gmail.com>
> wrote:
> > > 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.
You do not have the permission required to post.
|
|
|