2014-04-24 01:25:02 +08:00
|
|
|
{{#if automatic}}
|
|
|
|
<h3>{{name}}</h3>
|
|
|
|
{{else}}
|
2014-06-10 23:54:38 +08:00
|
|
|
{{text-field value=name placeholderKey="admin.groups.name_placeholder"}}
|
2014-04-24 01:25:02 +08:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{i18n admin.groups.group_members}}</label>
|
|
|
|
<div class="controls">
|
2014-06-10 23:54:38 +08:00
|
|
|
{{user-selector usernames=usernames id="group-users" placeholderKey="admin.groups.selector_placeholder" tabindex="1" disabled=automatic}}
|
2014-04-24 01:25:02 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
{{input type="checkbox" checked=visible}} {{i18n groups.visible}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{i18n groups.alias_levels.title}}</label>
|
|
|
|
<div class="controls">
|
2014-06-11 22:57:30 +08:00
|
|
|
{{combo-box valueAttribute="value" value=alias_level content=aliasLevelOptions}}
|
2014-04-24 01:25:02 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='controls'>
|
2014-10-01 00:36:23 +08:00
|
|
|
<button {{action "save"}} {{bind-attr disabled="disableSave"}} class='btn'>{{i18n admin.customize.save}}</button>
|
2014-04-24 01:25:02 +08:00
|
|
|
{{#unless automatic}}
|
2014-10-01 00:36:23 +08:00
|
|
|
<button {{action "destroy"}} class='btn btn-danger'><i class="fa fa-trash-o"></i>{{i18n admin.customize.delete}}</button>
|
2014-04-24 01:25:02 +08:00
|
|
|
{{/unless}}
|
|
|
|
</div>
|