Active Admin Rails 4 inline form

I am using Rails 4 ActiveAdmin and Money-Rails. Is there a way to have two or more entries in the same line of text?

para "Please enter the amount"
f.input :amount_due_currency, :label => "Dollars ",:input_html => {:style => 'width:3%'}
para "and"
f.input :amount_due_cents, :label => "cents ", :input_html => {:style => 'width:10%'}
para "to deposit on your account."

the conclusion I need will look like Please enter the amount __ Dollars and __ cents to be deposited into your account.

I tried the interpolation string, but that fails. Can someone help me please?

+4
source share
1 answer

I believe that you can use Arbre columns to build the form. For more control, I use CSS to override the style of individual inputs, for example:

form.subscription {
  #details {
    li:nth-child(n+2):nth-child(-n+5) {
      display: inline-block;
      width: 48%;
    }
  }
+2
source

All Articles