First you will need to preload the data from E into S. Then you can use <.inputs_for :let={e} field={@s[:field]}> to get at the fields in S. But then you will need to write some rendering logic that will be able to read all those fields and generate the inputs, there is no default automatic way to do this.