2015-01-05 12:51:45 -05:00
|
|
|
<form class="form-horizontal">
|
2014-04-23 13:25:02 -04:00
|
|
|
|
2015-01-05 12:51:45 -05:00
|
|
|
<div>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{#if model.automatic}}
|
|
|
|
<h3>{{model.name}}</h3>
|
2015-01-05 12:51:45 -05:00
|
|
|
{{else}}
|
|
|
|
<label for="name">{{i18n 'admin.groups.name'}}</label>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{text-field name="name" value=model.name placeholderKey="admin.groups.name_placeholder"}}
|
2015-01-05 12:51:45 -05:00
|
|
|
{{/if}}
|
2014-04-23 13:25:02 -04:00
|
|
|
</div>
|
2015-01-05 12:51:45 -05:00
|
|
|
|
2015-08-13 10:01:29 -04:00
|
|
|
{{#if model.id}}
|
2015-11-09 08:52:04 -05:00
|
|
|
{{#unless model.automatic}}
|
|
|
|
{{#if model.hasOwners}}
|
|
|
|
<div>
|
|
|
|
<label for='owner-list'>{{i18n 'admin.groups.group_owners'}}</label>
|
|
|
|
<div class="ac-wrap clearfix" id='owner-list'>
|
|
|
|
{{#each model.owners as |member|}}
|
|
|
|
{{group-member member=member removeAction="removeOwner"}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div>
|
|
|
|
<label for="owner-selector">{{i18n 'admin.groups.add_owners'}}</label>
|
|
|
|
{{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"}}
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
2015-01-05 12:51:45 -05:00
|
|
|
<div>
|
2015-08-13 10:01:29 -04:00
|
|
|
<label>{{i18n 'admin.groups.group_members'}} ({{model.user_count}})</label>
|
2015-01-05 12:51:45 -05:00
|
|
|
<div>
|
2015-09-14 15:54:34 -04:00
|
|
|
<a class="previous {{if showingFirst 'disabled'}}" {{action "previous"}}>{{fa-icon "fast-backward"}}</a>
|
2015-01-05 12:51:45 -05:00
|
|
|
{{currentPage}}/{{totalPages}}
|
2015-09-14 15:54:34 -04:00
|
|
|
<a class="next {{if showingLast 'disabled'}}" {{action "next"}}>{{fa-icon "fast-forward"}}</a>
|
2015-01-05 12:51:45 -05:00
|
|
|
</div>
|
|
|
|
<div class="ac-wrap clearfix">
|
2015-08-13 10:01:29 -04:00
|
|
|
{{#each model.members as |member|}}
|
|
|
|
{{group-member member=member automatic=model.automatic removeAction="removeMember"}}
|
|
|
|
{{/each}}
|
2015-01-05 12:51:45 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-08-13 10:01:29 -04:00
|
|
|
{{#unless model.automatic}}
|
2015-01-05 12:51:45 -05:00
|
|
|
<div>
|
|
|
|
<label for="user-selector">{{i18n 'admin.groups.add_members'}}</label>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{user-selector usernames=model.usernames placeholderKey="admin.groups.selector_placeholder" id="user-selector"}}
|
2015-09-14 15:54:34 -04:00
|
|
|
{{d-button action="addMembers" class="add" icon="plus" label="admin.groups.add"}}
|
2015-01-05 12:51:45 -05:00
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{input type="checkbox" checked=model.visible}}
|
2015-01-05 12:51:45 -05:00
|
|
|
{{i18n 'groups.visible'}}
|
|
|
|
</label>
|
2014-04-23 13:25:02 -04:00
|
|
|
</div>
|
2015-01-05 12:51:45 -05:00
|
|
|
|
2015-08-13 10:01:29 -04:00
|
|
|
{{#unless model.automatic}}
|
2015-04-09 22:17:28 -04:00
|
|
|
<div>
|
|
|
|
<label for="primary_group">
|
2015-08-13 10:01:29 -04:00
|
|
|
{{input type="checkbox" checked=model.primary_group}}
|
2015-04-09 22:17:28 -04:00
|
|
|
{{i18n 'admin.groups.primary_group'}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
|
2015-01-05 12:51:45 -05:00
|
|
|
<div>
|
|
|
|
<label for="alias">{{i18n 'groups.alias_levels.title'}}</label>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{combo-box name="alias" valueAttribute="value" value=model.alias_level content=aliasLevelOptions}}
|
2014-04-23 13:25:02 -04:00
|
|
|
</div>
|
2015-01-05 12:51:45 -05:00
|
|
|
|
2015-08-13 10:01:29 -04:00
|
|
|
{{#unless model.automatic}}
|
2015-01-23 12:25:43 -05:00
|
|
|
<div>
|
|
|
|
<label for="automatic_membership">{{i18n 'admin.groups.automatic_membership_email_domains'}}</label>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{list-setting name="automatic_membership" settingValue=model.emailDomains}}
|
2015-01-23 12:25:43 -05:00
|
|
|
<label>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{input type="checkbox" checked=model.automatic_membership_retroactive}}
|
2015-01-23 12:25:43 -05:00
|
|
|
{{i18n 'admin.groups.automatic_membership_retroactive'}}
|
|
|
|
</label>
|
|
|
|
</div>
|
2015-04-09 22:17:28 -04:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<label for="title">
|
|
|
|
{{i18n 'admin.groups.default_title'}}
|
|
|
|
</label>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{input value=model.title}}
|
2015-04-09 22:17:28 -04:00
|
|
|
</div>
|
2015-09-01 16:52:05 -04:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<label for="grant_trust_level">{{i18n 'groups.trust_levels.title'}}</label>
|
|
|
|
{{combo-box name="grant_trust_level" valueAttribute="value" value=model.grant_trust_level content=trustLevelOptions}}
|
|
|
|
</div>
|
2015-12-07 06:39:28 -05:00
|
|
|
|
2015-12-09 06:10:46 -05:00
|
|
|
{{#if siteSettings.email_in}}
|
|
|
|
<label for="incoming_email">{{i18n 'admin.groups.incoming_email'}}</label>
|
|
|
|
{{text-field name="incoming_email" value=model.incoming_email placeholderKey="admin.groups.incoming_email_placeholder"}}
|
2016-09-06 00:23:18 -04:00
|
|
|
{{plugin-outlet "group-email-in"}}
|
2015-12-09 06:10:46 -05:00
|
|
|
{{/if}}
|
2015-01-23 12:25:43 -05:00
|
|
|
{{/unless}}
|
|
|
|
|
2016-08-16 12:34:04 -04:00
|
|
|
{{#unless model.automatic}}
|
|
|
|
<div class="flair_inputs">
|
|
|
|
<div class="flair_left">
|
|
|
|
<div>
|
|
|
|
<label for="flair_url">{{i18n 'admin.groups.flair_url'}}</label>
|
|
|
|
{{text-field name="flair_url" value=model.flair_url placeholderKey="admin.groups.flair_url_placeholder"}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label for="flair_bg_color">{{i18n 'admin.groups.flair_bg_color'}}</label>
|
|
|
|
{{text-field name="flair_bg_color" class="flair_bg_color" value=model.flair_bg_color placeholderKey="admin.groups.flair_bg_color_placeholder"}}
|
|
|
|
</div>
|
2016-08-26 17:15:37 -04:00
|
|
|
|
|
|
|
{{#if flairPreviewIcon}}
|
|
|
|
<div>
|
|
|
|
<label for="flair_color">{{i18n 'admin.groups.flair_color'}}</label>
|
|
|
|
{{text-field name="flair_color" class="flair_color" value=model.flair_color placeholderKey="admin.groups.flair_color_placeholder"}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2016-09-15 17:39:47 -04:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
<div>
|
|
|
|
<strong>{{i18n 'admin.groups.flair_note'}}</strong>
|
|
|
|
</div>
|
2016-08-16 12:34:04 -04:00
|
|
|
</div>
|
|
|
|
|
2016-08-26 17:15:37 -04:00
|
|
|
{{#if flairPreviewIcon}}
|
|
|
|
<div class="flair_right">
|
|
|
|
<div>
|
|
|
|
<label>{{i18n 'admin.groups.flair_preview'}} Icon</label>
|
|
|
|
<div class="avatar-flair-preview">
|
|
|
|
<div class="avatar-wrapper">
|
|
|
|
<img alt width="45" height="45" src="{{demoAvatarUrl}}" class="avatar actor">
|
|
|
|
</div>
|
|
|
|
<div class="avatar-flair demo {{flairPreviewClasses}}" style={{flairPreviewStyle}}>
|
|
|
|
<i class="fa {{model.flair_url}}"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if flairPreviewImage}}
|
2016-08-16 12:34:04 -04:00
|
|
|
<div class="flair_right">
|
|
|
|
<div>
|
2016-08-26 17:15:37 -04:00
|
|
|
<label>{{i18n 'admin.groups.flair_preview'}} Image</label>
|
2016-08-16 12:34:04 -04:00
|
|
|
<div class="avatar-flair-preview">
|
|
|
|
<div class="avatar-wrapper">
|
2016-08-17 16:57:31 -04:00
|
|
|
<img alt width="45" height="45" src="{{demoAvatarUrl}}" class="avatar actor">
|
2016-08-16 12:34:04 -04:00
|
|
|
</div>
|
|
|
|
<div class="avatar-flair demo {{flairPreviewClasses}}" style={{flairPreviewStyle}}></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
|
2015-01-05 12:51:45 -05:00
|
|
|
<div class='buttons'>
|
2016-05-06 16:04:38 -04:00
|
|
|
<button {{action "save"}} disabled={{disableSave}} class='btn btn-primary'>{{i18n 'admin.customize.save'}}</button>
|
2015-08-13 10:01:29 -04:00
|
|
|
{{#unless model.automatic}}
|
2015-01-05 12:51:45 -05:00
|
|
|
<button {{action "destroy"}} class='btn btn-danger'>{{fa-icon "trash-o"}}{{i18n 'admin.customize.delete'}}</button>
|
|
|
|
{{/unless}}
|
2016-05-06 16:04:38 -04:00
|
|
|
|
|
|
|
<span class="saving {{unless savingStatus 'hidden'}}">{{savingStatus}}</span>
|
2015-01-05 12:51:45 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|