{{#each model.fieldGroups as |fieldGroup|}} {{#each-in fieldGroup as |group fields|}} {{#if (eq group "default")}} {{#each fields as |attr|}} {{#unless (and (not-eq mode "create") (eq attr.name "name"))}} {{form-field data-test-field attr=attr model=model}} {{/unless}} {{/each}} {{else}} {{#if (get this (concat "show" (camelize group)))}}
{{#each fields as |attr|}} {{form-field data-test-field attr=attr model=model}} {{/each}}
{{/if}} {{/if}} {{/each-in}} {{/each}}