{{#if readOnly}} {{input type="text" name="name" value=buffered.displayName disabled=true}} {{else}} {{input type="text" name="name" value=buffered.name}} {{/if}}
{{input type="text" name="icon" value=buffered.icon}}

{{i18n 'admin.badges.icon_help'}}

{{input type="text" name="image" value=buffered.image}}

{{i18n 'admin.badges.icon_help'}}

{{view "select" name="badge_type_id" value=buffered.badge_type_id content=badgeTypes optionValuePath="content.id" optionLabelPath="content.name" disabled=readOnly}}
{{view "select" name="badge_grouping_id" value=buffered.badge_grouping_id content=badgeGroupings optionValuePath="content.id" optionLabelPath="content.displayName"}}  
{{#if canEditDescription}} {{textarea name="description" value=buffered.description}} {{else}} {{textarea name="description" value=buffered.displayDescription disabled=true}} {{/if}}
{{textarea name="query" value=buffered.query disabled=readOnly}}
{{#if hasQuery}} {{i18n 'admin.badges.preview.link_text'}} | {{i18n 'admin.badges.preview.plan_text'}} {{#if preview_loading}} {{i18n 'loading'}}... {{/if}}
{{view "select" name="trigger" value=buffered.trigger content=badgeTriggers optionValuePath="content.id" optionLabelPath="content.name" disabled=readOnly}}
{{/if}}
{{savingStatus}} {{#unless readOnly}} {{i18n 'admin.badges.delete'}} {{/unless}}
{{#if grant_count}}
{{#link-to 'badges.show' this}}{{i18n 'badges.granted' count=grant_count}}{{/link-to}}
{{/if}}