{{#if model.automatic}}

{{model.name}}

{{else}} {{text-field name="name" value=model.name placeholderKey="group.name_placeholder"}} {{/if}}
{{#if model.id}} {{#unless model.automatic}}
{{d-editor value=model.bio_raw}}
{{#if model.hasOwners}}
{{#each model.owners as |member|}} {{group-member member=member removeAction="removeOwner"}} {{/each}}
{{/if}}
{{user-selector usernames=model.ownerUsernames placeholderKey="admin.groups.selector_placeholder" id="owner-selector"}} {{d-button action="addOwners" class="add" icon="plus" label="admin.groups.add"}}
{{/unless}}
{{currentPage}}/{{totalPages}}
{{#each model.members as |member|}} {{group-member member=member automatic=model.automatic removeAction="removeMember"}} {{/each}}
{{#unless model.automatic}}
{{user-selector usernames=model.usernames placeholderKey="admin.groups.selector_placeholder" id="user-selector"}} {{d-button action="addMembers" class="add" icon="plus" label="admin.groups.add"}}
{{/unless}} {{/if}}
{{#unless model.automatic}}
{{/unless}}
{{combo-box name="alias" valueAttribute="value" value=model.alias_level content=aliasLevelOptions}}
{{#unless model.automatic}}
{{list-setting name="automatic_membership" settingValue=model.emailDomains}}
{{input value=model.title}}
{{combo-box name="grant_trust_level" valueAttribute="value" value=model.grant_trust_level content=trustLevelOptions}}
{{#if siteSettings.email_in}} {{text-field name="incoming_email" value=model.incoming_email placeholderKey="admin.groups.incoming_email_placeholder"}} {{plugin-outlet "group-email-in"}} {{/if}} {{/unless}} {{#unless model.automatic}} {{group-flair-inputs model=model}} {{/unless}}
{{#unless model.automatic}} {{/unless}} {{savingStatus}}