{{! ARG TODO write a test for namespace reminder }}
{{#each @model.formFieldGroups as |fieldGroup|}}
{{#each-in fieldGroup as |group fields|}}
{{! DEFAULT VIEW }}
{{#if (eq group "default")}}
{{#each fields as |attr|}}
{{/each}}
{{else}}
{{#let (camelize (concat "show" group)) as |prop|}}
{{#if (get @model prop)}}
{{#let (get @model.fieldGroupsInfo group) as |toggleGroup|}}
{{! HEADER }}
{{#if toggleGroup.header}}
{{/if}}
{{! FIELDS }}
{{#if (eq group "Key usage")}}
{{else if (eq group "Key parameters")}}
{{else}}
{{#each fields as |attr|}}
{{yield attr}}
{{/each}}
{{/if}}
{{! FOOTER }}
{{#if toggleGroup.footer}}
{{toggleGroup.footer.text}}
{{#if toggleGroup.footer.docLink}}
{{toggleGroup.footer.docText}}
{{/if}}
{{/if}}
{{/let}}
{{/if}}
{{/let}}
{{/if}}
{{/each-in}}
{{/each}}