2013-05-09 15:37:34 +08:00
|
|
|
<div class='row groups'>
|
2013-04-17 15:08:21 +08:00
|
|
|
<div class='content-list span6'>
|
|
|
|
<h3>{{i18n admin.groups.edit}}</h3>
|
|
|
|
<ul>
|
2013-05-08 13:20:38 +08:00
|
|
|
{{#each group in model}}
|
2013-04-17 15:08:21 +08:00
|
|
|
<li>
|
2014-01-15 02:18:04 +08:00
|
|
|
<a href="#" {{action "edit" group}} {{bindAttr class="group.active"}}>{{group.name}} <span class="count">{{group.userCountDisplay}}</span></a>
|
2013-04-17 15:08:21 +08:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2013-05-09 15:37:34 +08:00
|
|
|
<div class='controls'>
|
|
|
|
<button class='btn' {{bindAttr disabled="refreshingAutoGroups"}} {{action "refreshAutoGroups"}}>Refresh</button>
|
|
|
|
<button class='btn' {{action newGroup}}>New</button>
|
2013-05-08 13:20:38 +08:00
|
|
|
</div>
|
2013-04-17 15:08:21 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class='content-editor'>
|
2013-05-08 13:20:38 +08:00
|
|
|
{{#if model.active}}
|
2013-05-09 15:37:34 +08:00
|
|
|
{{#if model.active.loaded}}
|
|
|
|
{{#with model.active}}
|
|
|
|
{{#if automatic}}
|
|
|
|
<h3>{{name}}</h3>
|
|
|
|
{{else}}
|
2013-05-21 00:47:59 +08:00
|
|
|
{{textField value=name placeholderKey="admin.groups.name_placeholder"}}
|
2013-05-09 15:37:34 +08:00
|
|
|
{{/if}}
|
2013-04-19 11:06:00 +08:00
|
|
|
|
2013-12-23 22:46:00 +08:00
|
|
|
<div class="control-group">
|
2014-01-15 02:18:04 +08:00
|
|
|
<label class="control-label">Group members</label>
|
2013-12-23 22:46:00 +08:00
|
|
|
<div class="controls">
|
|
|
|
{{userSelector usernames=usernames id="group-users" placeholderKey="admin.groups.selector_placeholder" tabindex="1" disabledBinding="automatic"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{i18n admin.groups.alias_levels.title}}</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{combobox valueAttribute="value" value=alias_level content=validValues}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-09 15:37:34 +08:00
|
|
|
<div class='controls'>
|
2013-12-23 22:46:00 +08:00
|
|
|
<button {{action save this}} {{bindAttr disabled="disableSave"}} class='btn'>{{i18n admin.customize.save}}</button>
|
2013-05-09 15:37:34 +08:00
|
|
|
{{#unless automatic}}
|
|
|
|
<a {{action destroy this}} class='delete-link'>{{i18n admin.customize.delete}}</a>
|
|
|
|
{{/unless}}
|
|
|
|
</div>
|
|
|
|
{{/with}}
|
|
|
|
{{else}}
|
|
|
|
<div class='spinner'>{{i18n loading}}</div>
|
|
|
|
{{/if}}
|
2013-04-17 15:08:21 +08:00
|
|
|
{{else}}
|
2013-06-17 11:43:06 +08:00
|
|
|
{{i18n admin.groups.about}}
|
2013-04-17 15:08:21 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|