Skip to content

Hq.form_fields with inputs_for should return nested maps and lists of maps #9

Description

@sax

Right now, when nested inputs are produced using inputs_for, the data comes out as follows:

%{
  form: %{
    form_has_one: %{},
    form_has_many_0: %{},
    form_has_many_0_belongs_to: %{}
  }
}

This produces maps that cannot be used when changing or submitting their forms.

It would be utilitarian to produce:

%{
  form: %{
    has_one: %{},
    has_many: [
      %{
        belongs_to: %{}
      }
    ]
  }
}

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