{{#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}} {{toggle-button class="is-block" toggleAttr=(concat "show" (camelize group)) toggleTarget=this openLabel=(concat "Hide " group) closedLabel=group data-test-toggle-group=group }} {{#if (get this (concat "show" (camelize group)))}}