2013-05-09 03:37:34 -04:00
|
|
|
<div class='row groups'>
|
2013-04-17 03:08:21 -04:00
|
|
|
<div class='content-list span6'>
|
|
|
|
<h3>{{i18n admin.groups.edit}}</h3>
|
|
|
|
<ul>
|
2013-05-08 01:20:38 -04:00
|
|
|
{{#each group in model}}
|
2013-04-17 03:08:21 -04:00
|
|
|
<li>
|
2014-01-14 12:48:57 -05:00
|
|
|
<a href="#" {{action "edit" group}} {{bind-attr class="group.active"}}>{{group.name}} <span class="count">{{group.userCountDisplay}}</span></a>
|
2013-04-17 03:08:21 -04:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2013-05-09 03:37:34 -04:00
|
|
|
<div class='controls'>
|
2014-03-26 13:17:40 -04:00
|
|
|
<button class='btn' {{bind-attr disabled="refreshingAutoGroups"}} {{action "refreshAutoGroups"}}>{{i18n admin.groups.refresh}}</button>
|
|
|
|
<button class='btn' {{action newGroup}}>{{i18n admin.groups.new}}</button>
|
2013-05-08 01:20:38 -04:00
|
|
|
</div>
|
2013-04-17 03:08:21 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='content-editor'>
|
2013-05-08 01:20:38 -04:00
|
|
|
{{#if model.active}}
|
2014-02-06 15:11:46 -05:00
|
|
|
{{#if model.active.loadedUsers}}
|
2013-05-09 03:37:34 -04:00
|
|
|
{{#with model.active}}
|
|
|
|
{{#if automatic}}
|
|
|
|
<h3>{{name}}</h3>
|
|
|
|
{{else}}
|
2013-05-20 12:47:59 -04:00
|
|
|
{{textField value=name placeholderKey="admin.groups.name_placeholder"}}
|
2013-05-09 03:37:34 -04:00
|
|
|
{{/if}}
|
2013-04-18 23:06:00 -04:00
|
|
|
|
2013-12-23 09:46:00 -05:00
|
|
|
<div class="control-group">
|
2014-03-26 13:17:40 -04:00
|
|
|
<label class="control-label">{{i18n admin.groups.group_members}}</label>
|
2013-12-23 09:46:00 -05:00
|
|
|
<div class="controls">
|
|
|
|
{{userSelector usernames=usernames id="group-users" placeholderKey="admin.groups.selector_placeholder" tabindex="1" disabledBinding="automatic"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-04-22 16:43:46 -04:00
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
{{input type="checkbox" checked=visible}} {{i18n groups.visible}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-12-23 09:46:00 -05:00
|
|
|
<div class="control-group">
|
2014-02-06 13:40:04 -05:00
|
|
|
<label class="control-label">{{i18n groups.alias_levels.title}}</label>
|
2013-12-23 09:46:00 -05:00
|
|
|
<div class="controls">
|
2014-02-06 13:40:04 -05:00
|
|
|
{{combobox valueAttribute="value" value=alias_level content=controller.aliasLevelOptions}}
|
2013-12-23 09:46:00 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-09 03:37:34 -04:00
|
|
|
<div class='controls'>
|
2014-01-14 12:48:57 -05:00
|
|
|
<button {{action save this}} {{bind-attr disabled="disableSave"}} class='btn'>{{i18n admin.customize.save}}</button>
|
2013-05-09 03:37:34 -04:00
|
|
|
{{#unless automatic}}
|
2014-04-22 16:43:46 -04:00
|
|
|
<a {{action destroy this}} class='delete-link'>{{i18n admin.customize.delete}}</a>
|
2013-05-09 03:37:34 -04:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
{{/with}}
|
|
|
|
{{else}}
|
|
|
|
<div class='spinner'>{{i18n loading}}</div>
|
|
|
|
{{/if}}
|
2013-04-17 03:08:21 -04:00
|
|
|
{{else}}
|
2013-06-16 23:43:06 -04:00
|
|
|
{{i18n admin.groups.about}}
|
2013-04-17 03:08:21 -04:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|