{{#if model.automatic}}

{{model.name}}

{{else}} {{text-field name="name" value=model.name placeholderKey="groups.name_placeholder"}} {{/if}}
{{#unless model.automatic}}
{{input type='text' name='full_name' value=model.full_name class='group-edit-full-name'}}
{{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"}} {{#if model.id}} {{d-button action="addOwners" class="add" icon="plus" label="admin.groups.add"}} {{/if}}
{{/unless}}
{{group-members-input model=model addButton=model.id}}
{{combo-box name="alias" valueAttribute="value" value=model.visibility_level content=visibilityLevelOptions castInteger=true}}
{{#unless model.automatic}}
{{/unless}}
{{combo-box name="alias" valueAttribute="value" value=model.alias_level content=aliasLevelOptions}}
{{notifications-button i18nPrefix='groups.notifications' notificationLevel=model.default_notification_level}}
{{#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 name="group-email-in" args=(hash model=model)}} {{/if}} {{/unless}} {{#unless model.automatic}} {{group-flair-inputs model=model}} {{/unless}} {{plugin-outlet name="group-edit" args=(hash group=model)}}
{{#unless model.automatic}} {{/unless}} {{savingStatus}}