Skip to content

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

@sax

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: %{}
      }
    ]
  }
}

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