{{#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}} {{#if (get @model (camelize (concat "show" group)))}}
{{#each fields as |attr|}} {{/each}}
{{/if}} {{/if}} {{/each-in}} {{/each}}