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}}
|
2016-12-07 01:56:45 -05:00
|
|
|
<label for="name">{{i18n 'groups.name'}}</label>
|
|
|
|
{{text-field name="name" value=model.name placeholderKey="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
|
|
|
|
2017-07-27 02:39:47 -04:00
|
|
|
{{#unless model.automatic}}
|
|
|
|
<div>
|
|
|
|
<label for='full_name'>{{i18n 'groups.edit.full_name'}}</label>
|
|
|
|
{{input type='text' name='full_name' value=model.full_name class='group-edit-full-name'}}
|
|
|
|
</div>
|
2016-12-13 03:16:26 -05:00
|
|
|
|
2017-07-27 02:39:47 -04:00
|
|
|
<div>
|
|
|
|
<label for="bio">{{i18n 'groups.bio'}}</label>
|
|
|
|
{{d-editor value=model.bio_raw}}
|
|
|
|
</div>
|
2016-12-05 03:18:24 -05:00
|
|
|
|
2017-07-27 02:39:47 -04:00
|
|
|
{{#if model.hasOwners}}
|
2015-11-09 08:52:04 -05:00
|
|
|
<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>
|
2017-07-27 02:39:47 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2015-01-05 12:51:45 -05:00
|
|
|
<div>
|
2017-07-27 02:39:47 -04:00
|
|
|
<label for="owner-selector">{{i18n 'admin.groups.add_owners'}}</label>
|
|
|
|
|
|
|
|
{{user-selector usernames=model.ownerUsernames
|
2018-02-25 21:11:18 -05:00
|
|
|
placeholderKey="groups.selector_placeholder"
|
2017-07-27 02:39:47 -04:00
|
|
|
id="owner-selector"}}
|
|
|
|
|
|
|
|
{{#if model.id}}
|
|
|
|
{{d-button
|
|
|
|
action="addOwners"
|
|
|
|
class="add"
|
|
|
|
icon="plus"
|
|
|
|
label="admin.groups.add"}}
|
|
|
|
{{/if}}
|
2015-01-05 12:51:45 -05:00
|
|
|
</div>
|
2017-07-27 02:39:47 -04:00
|
|
|
{{/unless}}
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{{group-members-input model=model addButton=model.id}}
|
|
|
|
</div>
|
2015-01-05 12:51:45 -05:00
|
|
|
|
|
|
|
<div>
|
2017-07-03 15:26:46 -04:00
|
|
|
<label for="visiblity">{{i18n 'groups.visibility_levels.title'}}</label>
|
2017-07-31 03:33:40 -04:00
|
|
|
{{combo-box name="alias"
|
|
|
|
valueAttribute="value"
|
|
|
|
value=model.visibility_level
|
|
|
|
content=visibilityLevelOptions
|
|
|
|
castInteger=true}}
|
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}}
|
2016-12-07 01:56:45 -05:00
|
|
|
<div>
|
2016-12-12 09:46:45 -05:00
|
|
|
<label>
|
|
|
|
{{input type="checkbox"
|
2017-07-27 22:37:10 -04:00
|
|
|
checked=model.public_admission
|
2016-12-12 09:46:45 -05:00
|
|
|
disabled=disablePublicSetting}}
|
|
|
|
|
2017-07-27 22:37:10 -04:00
|
|
|
{{i18n 'groups.public_admission'}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label>
|
|
|
|
{{input type='checkbox'
|
|
|
|
checked=model.public_exit}}
|
|
|
|
|
|
|
|
{{i18n 'groups.public_exit'}}
|
2016-12-07 01:56:45 -05:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label>
|
2016-12-12 09:46:45 -05:00
|
|
|
{{input type="checkbox"
|
|
|
|
checked=model.allow_membership_requests
|
|
|
|
disabled=disableMembershipRequestSetting}}
|
|
|
|
|
|
|
|
{{i18n 'groups.allow_membership_requests'}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2017-08-08 05:53:02 -04:00
|
|
|
{{#if model.allow_membership_requests}}
|
|
|
|
<div>
|
|
|
|
<label for="membership-request-template">
|
|
|
|
{{i18n 'groups.membership_request_template'}}
|
|
|
|
</label>
|
|
|
|
|
|
|
|
{{expanding-text-area name="membership-request-template"
|
|
|
|
value=model.membership_request_template}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2016-12-12 09:46:45 -05:00
|
|
|
<div>
|
2017-10-02 04:07:27 -04:00
|
|
|
<label>
|
2016-12-12 09:46:45 -05:00
|
|
|
{{input type="checkbox" checked=model.primary_group}}
|
|
|
|
{{i18n 'admin.groups.primary_group'}}
|
2016-12-07 01:56:45 -05:00
|
|
|
</label>
|
|
|
|
</div>
|
2015-04-09 22:17:28 -04:00
|
|
|
{{/unless}}
|
|
|
|
|
2015-01-05 12:51:45 -05:00
|
|
|
<div>
|
2017-08-28 12:32:08 -04:00
|
|
|
<label for="alias">{{i18n 'groups.alias_levels.mentionable'}}</label>
|
|
|
|
{{combo-box name="alias" valueAttribute="value" value=model.mentionable_level content=aliasLevelOptions}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label for="alias">{{i18n 'groups.alias_levels.messageable'}}</label>
|
|
|
|
{{combo-box name="alias" valueAttribute="value" value=model.messageable_level content=aliasLevelOptions}}
|
2014-04-23 13:25:02 -04:00
|
|
|
</div>
|
2015-01-05 12:51:45 -05:00
|
|
|
|
2017-04-20 15:47:25 -04:00
|
|
|
<div>
|
|
|
|
<label>{{i18n 'groups.notification_level'}}</label>
|
2017-09-09 14:29:07 -04:00
|
|
|
{{notifications-button i18nPrefix='groups.notifications' value=model.default_notification_level}}
|
2017-04-20 15:47:25 -04:00
|
|
|
<div class='clearfix'></div>
|
|
|
|
</div>
|
|
|
|
|
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-12-19 11:19:10 -05:00
|
|
|
{{plugin-outlet name="group-email-in" args=(hash model=model)}}
|
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}}
|
2016-11-29 03:25:02 -05:00
|
|
|
{{group-flair-inputs model=model}}
|
2016-08-16 12:34:04 -04:00
|
|
|
{{/unless}}
|
|
|
|
|
2017-08-07 12:16:54 -04:00
|
|
|
{{plugin-outlet name="group-edit" args=(hash group=model)}}
|
|
|
|
|
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}}
|
2017-07-26 16:25:09 -04:00
|
|
|
<button {{action "destroy"}} class='btn btn-danger'>{{d-icon "trash-o"}}{{i18n 'admin.customize.delete'}}</button>
|
2015-01-05 12:51:45 -05:00
|
|
|
{{/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>
|