Skip to content

f.translated_inputs can't be split up across input-groups #40

@besi

Description

@besi

Assuming I have the following setup:

form do |f|
    f.inputs do
      f.translated_inputs do |t|
        t.input :title
      end   

      f.translated_inputs do |t|
        t.input :description
      end
      f.input :slug
    end

    f.actions
  end

Now when I create a new entry. All translated values from the second translated_inputs block will be discarded.

As soon as the record is saved once, it works. But not for the initial save.

I have to group all entries in one translated_inputs block like so:

form do |f|
  f.inputs do |x|
    f.translated_inputs do |t|
      t.input :title
      t.input :description
    end
    f.input :slug
  end

  f.actions
end

I have quite a big model and the different translated values are grouped semantically. Due to this behaviour I now have to add a group just for the translated values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions