{{#if (eq this.mode "create")}} Create Template {{else if (eq this.mode "edit")}} Edit Template {{else}} Template {{this.model.id}} {{/if}}

{{#if (eq this.mode "show")}} {{#if this.capabilities.canDelete}}
{{/if}} {{#if this.capabilities.canUpdate}} Edit template {{/if}}
{{/if}} {{#if (or (eq this.mode "edit") (eq this.mode "create"))}}
{{#each this.model.attrs as |attr|}} {{#if (and (eq attr.name "name") (eq this.mode "edit"))}} {{#if attr.options.subText}}

{{attr.options.subText}}

{{/if}} {{else}} {{/if}} {{/each}}
Cancel
{{else}} {{#if this.model.displayErrors}}
{{/if}}
{{#each this.model.attrs as |attr|}} {{#if (eq attr.type "object")}} {{else if (eq attr.type "array")}} {{else}} {{/if}} {{/each}}
{{/if}}