//~OPTIONS
{
  clientInclude:   ["../css/backref.css"],
}

//~ARGUMENTS
{
  enableLabels: true,
}

//~TEMPLATE
%{{
  let projection = fcf.application.getProjections().get(args.projection);
  fcf.each(args.value, (a_key) => {
}}%
  <div class="fcf-dbcontrols-backref-item">
  %{{
    let formArgs = {
      fcfAlias:             a_key.toString(),
      mode:                 "read.full.subform",
      fields:               projection.fields,
      value:                fcf.argRef(`value["${a_key}"]`),
      enableLabels:         fcf.argRef("enableLabels"),
    };
  }}%
  @{{ render.template( "@controls:form", formArgs) }}@
  </div>
%{{
  });
}}%
