{{#each @model.fieldGroups as |fieldGroup|}} {{#each-in fieldGroup as |group fields|}} {{#if (eq group "default")}} {{#each fields as |attr|}} {{! template-lint-configure simple-unless "warn" }} {{#unless (and (not-eq @mode "create") (eq attr.name "name"))}} {{/unless}} {{/each}} {{else}} {{#let (camelize (concat "show" group)) as |prop|}} {{#if (get @model prop)}}
{{#each fields as |attr|}} {{/each}}
{{/if}} {{/let}} {{/if}} {{/each-in}} {{/each}}