UX: Make group membership UI clearer (#8210)

The 'automatically set primary group' checkbox looked like it was associated with the email membership. In fact, it applies to all members who join the group. This commit moves it next to the 'automatic trust level' setting, and puts them both under an 'Effects' heading
This commit is contained in:
David Taylor 2019-10-17 18:05:42 +01:00 committed by GitHub
parent 2304dcf993
commit d1b86352d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 15 deletions

View File

@ -17,6 +17,20 @@
{{i18n 'admin.groups.manage.membership.automatic_membership_retroactive'}} {{i18n 'admin.groups.manage.membership.automatic_membership_retroactive'}}
</label> </label>
</div>
{{plugin-outlet name="groups-form-membership-below-automatic"
args=(hash model=model)}}
<div class="control-group">
<label class="control-label">{{i18n "admin.groups.manage.membership.effects"}}</label>
<label for="grant_trust_level">{{i18n 'admin.groups.manage.membership.trust_levels_title'}}</label>
{{combo-box name="grant_trust_level"
valueAttribute="value"
value=model.grant_trust_level
content=trustLevelOptions
class="groups-form-grant-trust-level"}}
<label> <label>
{{input type="checkbox" {{input type="checkbox"
@ -25,20 +39,7 @@
{{i18n 'admin.groups.manage.membership.primary_group'}} {{i18n 'admin.groups.manage.membership.primary_group'}}
</label> </label>
</div>
{{plugin-outlet name="groups-form-membership-below-automatic"
args=(hash model=model)}}
<div class="control-group">
<label class="control-label">{{i18n "admin.groups.manage.membership.trust_level"}}</label>
<label for="grant_trust_level">{{i18n 'admin.groups.manage.membership.trust_levels_title'}}</label>
{{combo-box name="grant_trust_level"
valueAttribute="value"
value=model.grant_trust_level
content=trustLevelOptions
class="groups-form-grant-trust-level"}}
</div> </div>
{{/if}} {{/if}}

View File

@ -1,3 +1,4 @@
.group-form-automatic-membership-automatic { .group-form-automatic-membership-automatic,
.groups-form-grant-trust-level {
margin-bottom: 10px; margin-bottom: 10px;
} }

View File

@ -3268,8 +3268,8 @@ en:
membership: membership:
automatic: Automatic automatic: Automatic
trust_level: Trust Level
trust_levels_title: "Trust level automatically granted to members when they're added:" trust_levels_title: "Trust level automatically granted to members when they're added:"
effects: Effects
trust_levels_none: "None" trust_levels_none: "None"
automatic_membership_email_domains: "Users who register with an email domain that exactly matches one in this list will be automatically added to this group:" automatic_membership_email_domains: "Users who register with an email domain that exactly matches one in this list will be automatically added to this group:"
automatic_membership_retroactive: "Apply the same email domain rule to add existing registered users" automatic_membership_retroactive: "Apply the same email domain rule to add existing registered users"