mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 23:42:12 +08:00

There are a few changes here to make the Emails admin page more consistent with the rest of the admin UI. - The header and navigation menu have been updated. - The sidebar now stays highlighted when visiting the email admin sub-pages. - Moved the Template editor from /admin/customize/email_templates to /admin/email/templates, so it fit as a sub-page. - Removed the link to the Template editor from the Customize section of the old top menu, since it's accessible from the Emails section, instead.
38 lines
1.0 KiB
Handlebars
38 lines
1.0 KiB
Handlebars
<ComboBox
|
|
@value={{this.emailTemplate.id}}
|
|
@content={{this.adminEmailTemplates.sortedTemplates}}
|
|
@onChange={{this.adminEmailTemplates.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> |