mercredi 29 janvier 2020

How to create composite form input using formtastic

I'm trying to create a form that looks in a specific way using formtastic but I have no idea how to go about it. I'm on an old version of formtastic (2.2.1) but help with any version is also appreciated. The form works properly, it's just out of order from what i'm trying to achieve.

I have tried;

= form.input :enable_input_field, :as => :boolean, label: ''
= form.input :column_name, :label => "Input Label"

Which gives the checkbox above the Input Label. Like below; Result Presently gotten with above code

The result I would like to get is seen in the picture below; Image showing what desired result should look like

Aucun commentaire:

Enregistrer un commentaire