Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions