message: Minor refactoring to make cs-active-composition-panel more readable
diff: unhovered=(perform highlightAndScrollToField null)
  }}
  <div class="cs-field-editor-section">
  + {{#let fieldModel.content (eq fieldModel.content model) as |content isPageModelField|}}
  {{#if fieldModel.grouped}}
  {{#each fieldModel.grouped as |fieldName|}}
  - {{#with fieldModel.content as |content|}}
  <label>{{cs-field-caption content fieldName}}</label>
  {{!--
  We allow editing fields of related resources. We should come back to this after #448 is completed.
  field=fieldName
  enabled=editingEnabled
  canUpdate=(or
  - (not (eq fieldModel.content model))
  + (not isPageModelField)
  (and
  permissions.mayUpdateResource
  (contains fieldName permissions.writableFields))
  onchange=(action "validate")
  errors=(get validationErrors fieldName)
  }}
  - {{/with}}
  {{/each}}
  {{else}}
  {{!--
  We allow editing fields of related resources. We should come back to this after #448 is completed.
  --}}
  {{cs-field-editor
  - content=fieldModel.content
  + content=content
  field=fieldModel.name
  enabled=editingEnabled
  canUpdate=(or
  - (not (eq fieldModel.content model))
  + (not isPageModelField)
  (and
  permissions.mayUpdateResource
  (contains fieldModel.name permissions.writableFields))
  errors=(get validationErrors fieldModel.name)
  }}
  {{/if}}
  + {{/let}}
  </div>
  {{/cs-collapsible-section}}
  {{/let}}
  