{{#if model.automatic}}

{{model.name}}

{{else}} {{text-field name="name" value=model.name placeholderKey="admin.groups.name_placeholder"}} {{/if}}
{{#if model.id}}
{{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}}
{{/unless}}
{{#unless model.automatic}} {{/unless}}