discourse/app/assets/javascripts/admin/addon/components/modal/incoming-email.hbs

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

54 lines
1.4 KiB
Handlebars
Raw Normal View History

<DModal
class="admin-incoming-email-modal"
@title={{i18n "admin.email.incoming_emails.modal.title"}}
@closeModal={{@closeModal}}
@bodyClass="incoming-emails"
>
<:body>
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.error"}}</label>
<div class="controls">
<p>{{@model.error}}</p>
{{#if @model.error_description}}
<p class="error-description">{{@model.error_description}}</p>
{{/if}}
</div>
</div>
<hr />
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.headers"}}</label>
<div class="controls">
<Textarea @value={{@model.headers}} wrap="off" />
</div>
</div>
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.subject"}}</label>
<div class="controls">
{{@model.subject}}
</div>
</div>
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.body"}}</label>
<div class="controls">
<Textarea @value={{@model.body}} />
</div>
</div>
{{#if @model.rejection_message}}
<hr />
<div class="control-group">
<label>{{i18n
"admin.email.incoming_emails.modal.rejection_message"
}}</label>
<div class="controls">
<Textarea @value={{@model.rejection_message}} />
</div>
</div>
{{/if}}
</:body>
</DModal>