{{i18n admin.badges.title}}

{{#if selectedItem}} {{#with selectedItem controller='adminBadge'}}
{{input type="text" name="name" value=name disabled=readOnly}}
{{#if showDisplayName}}
{{i18n admin.badges.display_name}} {{displayName}}
{{/if}}
{{input type="text" name="name" value=icon disabled=readOnly}}
{{view Ember.Select name="badge_type_id" value=badge_type_id content=controller.badgeTypes optionValuePath="content.id" optionLabelPath="content.name" disabled=readOnly}}
{{#if controller.canEditDescription}} {{textarea name="description" value=description}} {{else}} {{textarea name="description" value=displayDescription disabled=true}} {{/if}}
{{input type="checkbox" checked=allow_title disabled=readOnly}} {{i18n admin.badges.allow_title}}
{{input type="checkbox" checked=multiple_grant disabled=readOnly}} {{i18n admin.badges.multiple_grant}}
{{input type="checkbox" checked=listable disabled=readOnly}} {{i18n admin.badges.listable}}
{{input type="checkbox" checked=enabled}} {{i18n admin.badges.enabled}}
{{savingStatus}} {{#unless readOnly}} {{i18n admin.badges.delete}} {{/unless}}
{{#link-to 'badges.show' this classNames="btn btn-primary"}}{{i18n badges.granted count=grant_count}}{{/link-to}}
{{/with}} {{/if}}