{{#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.writeAttrs as |attr|}} {{#if (and (eq attr.name "name") (eq this.mode "edit"))}} {{#if attr.options.subText}}

{{attr.options.subText}}

{{/if}} {{else}} {{#if (eq attr.name "alphabet")}} {{/if}} {{/if}} {{/each}}
Cancel
{{else}} {{#if this.model.displayErrors}}
{{/if}}
{{#each this.model.readAttrs as |attr|}} {{#let (capitalize (or attr.options.label (humanize (dasherize attr.name)))) as |label|}} {{#if (eq attr.name "decodeFormats")}} {{#if (not (is-empty-value this.model.decodeFormats))}}
{{#each-in this.model.decodeFormats as |key value|}}

{{key}}

{{value}}

{{/each-in}}
{{/if}} {{else}} {{/if}} {{/let}} {{/each}}
{{/if}}