discourse/app/assets/javascripts/admin/addon/templates/customize-email-templates-e...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
935 B
Handlebars
Raw Normal View History

<ComboBox @value={{emailTemplate.id}} @content={{adminCustomizeEmailTemplates.sortedTemplates}} @onChange={{adminCustomizeEmailTemplates.onSelectTemplate}} @nameProperty="title" />
<div class="email-template">
<label>{{i18n "admin.customize.email_templates.subject"}}</label>
{{#if hasMultipleSubjects}}
<h3><LinkTo @route="adminSiteText" @query={{hash q=hasMultipleSubjects}}>{{i18n "admin.customize.email_templates.multiple_subjects"}}</LinkTo></h3>
{{else}}
<Input @value={{buffered.subject}} />
{{/if}}
<br>
<label>{{i18n "admin.customize.email_templates.body"}}</label>
<DEditor @value={{buffered.body}} />
<SaveControls @model={{emailTemplate}} @action={{action "saveChanges"}} @saved={{saved}} @saveDisabled={{saveDisabled}}>
2015-11-20 12:30:04 -05:00
{{#if emailTemplate.can_revert}}
<DButton @action={{action "revertChanges"}} @label="admin.customize.email_templates.revert" />
2015-11-20 12:30:04 -05:00
{{/if}}
</SaveControls>
</div>