mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 20:35:59 +08:00
26 lines
905 B
Handlebars
26 lines
905 B
Handlebars
{{combo-box
|
|
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>{{#link-to "adminSiteText" (query-params q=hasMultipleSubjects)}}{{i18n "admin.customize.email_templates.multiple_subjects"}}{{/link-to}}</h3>
|
|
{{else}}
|
|
{{input value=buffered.subject}}
|
|
{{/if}}
|
|
<br>
|
|
|
|
<label>{{i18n "admin.customize.email_templates.body"}}</label>
|
|
{{d-editor value=buffered.body}}
|
|
|
|
{{#save-controls model=emailTemplate action=(action "saveChanges") saved=saved saveDisabled=saveDisabled}}
|
|
{{#if emailTemplate.can_revert}}
|
|
{{d-button action=(action "revertChanges") label="admin.customize.email_templates.revert"}}
|
|
{{/if}}
|
|
{{/save-controls}}
|
|
</div>
|