discourse/app/assets/javascripts/admin/addon/templates/modal/admin-incoming-email.hbs
Jarek Radosz c3fd91670e
DEV: Update linting setup and fix issues (#17345)
Re-lands #16119 and #17298

* Update eslint-config-discourse
* Update linting workflow
* Prettier-ignore stuff
* Update template-lint config
* Auto-fix template issues
* Fix various template issues
  Mostly incorrect attributes and unused templates
* Prettier js files
* Fix template auto-fix regressions
* Small css tweak

Co-authored-by: Peter Wagenet <peter.wagenet@gmail.com>
2022-07-06 10:37:54 +02:00

46 lines
1.3 KiB
Handlebars

<DModalBody @class="incoming-emails" @title="admin.email.incoming_emails.modal.title">
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.error"}}</label>
<div class="controls">
<p>{{this.model.error}}</p>
{{#if this.model.error_description}}
<p class="error-description">{{this.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={{this.model.headers}} wrap="off" />
</div>
</div>
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.subject"}}</label>
<div class="controls">
{{this.model.subject}}
</div>
</div>
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.body"}}</label>
<div class="controls">
<Textarea @value={{this.model.body}} />
</div>
</div>
{{#if this.model.rejection_message}}
<hr>
<div class="control-group">
<label>{{i18n "admin.email.incoming_emails.modal.rejection_message"}}</label>
<div class="controls">
<Textarea @value={{this.model.rejection_message}} />
</div>
</div>
{{/if}}
</DModalBody>