mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 12:53:46 +08:00
371bbadb92
* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
21 lines
990 B
Handlebars
21 lines
990 B
Handlebars
<ComboBox @value={{this.emailTemplate.id}} @content={{this.adminCustomizeEmailTemplates.sortedTemplates}} @onChange={{this.adminCustomizeEmailTemplates.onSelectTemplate}} @nameProperty="title" />
|
|
|
|
<div class="email-template">
|
|
<label>{{i18n "admin.customize.email_templates.subject"}}</label>
|
|
{{#if this.hasMultipleSubjects}}
|
|
<h3><LinkTo @route="adminSiteText" @query={{hash q=this.hasMultipleSubjects}}>{{i18n "admin.customize.email_templates.multiple_subjects"}}</LinkTo></h3>
|
|
{{else}}
|
|
<Input @value={{this.buffered.subject}} />
|
|
{{/if}}
|
|
<br>
|
|
|
|
<label>{{i18n "admin.customize.email_templates.body"}}</label>
|
|
<DEditor @value={{this.buffered.body}} />
|
|
|
|
<SaveControls @model={{this.emailTemplate}} @action={{action "saveChanges"}} @saved={{this.saved}} @saveDisabled={{this.saveDisabled}}>
|
|
{{#if this.emailTemplate.can_revert}}
|
|
<DButton @action={{action "revertChanges"}} @label="admin.customize.email_templates.revert" />
|
|
{{/if}}
|
|
</SaveControls>
|
|
</div>
|