<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>