{{#if model.automatic}}

{{model.name}}

{{else}} {{text-field name="name" value=model.name placeholderKey="admin.groups.name_placeholder"}} {{/if}}
{{#if model.id}} {{#unless model.automatic}} {{#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}}
{{text-field name="flair_url" value=model.flair_url placeholderKey="admin.groups.flair_url_placeholder"}}
{{text-field name="flair_bg_color" class="flair_bg_color" value=model.flair_bg_color placeholderKey="admin.groups.flair_bg_color_placeholder"}}
{{#if flairPreviewIcon}}
{{text-field name="flair_color" class="flair_color" value=model.flair_color placeholderKey="admin.groups.flair_color_placeholder"}}
{{/if}}
{{i18n 'admin.groups.flair_note'}}
{{#if flairPreviewIcon}}
{{/if}} {{#if flairPreviewImage}}
{{/if}}
{{/unless}}
{{#unless model.automatic}} {{/unless}} {{savingStatus}}