{{t 'resources.target.title_plural'}}

{{#if @model}}

{{t 'resources.target.description'}}

{{/if}}
{{#if (can 'create collection' this.scope collection='targets')}} {{#if @model}} {{t 'titles.new' }} {{/if}} {{/if}} {{#if @model}} {{t 'form.name.label'}} {{t 'form.type.label'}} {{t 'form.id.label'}} {{#each @model as |target|}} {{#if (can 'read model' target)}} {{target.displayName}} {{else}} {{target.displayName}} {{/if}}

{{target.description}}

{{#if target.type}} {{t (concat 'resources.target.types.' target.type)}} {{/if}} {{target.id}}
{{/each}}
{{else}} {{#if (can 'list collection' this.scope collection='targets')}} {{! can list (at least): show default welcome message}} {{t 'resources.target.description'}} {{else if (can 'create collection' this.scope collection='targets' )}} {{! can create (only): show create-but-not-list welcome message}} {{t 'descriptions.create-but-not-list' resource=(t 'resources.target.title_plural') }} {{else}} {{! can neither list nor create }} {{t 'descriptions.neither-list-nor-create' resource=(t 'resources.target.title_plural') }} {{/if}} {{#if (can 'create collection' this.scope collection='targets')}} {{t 'titles.new'}} {{/if}} {{/if}}