<form>
  {{#d-modal-body class="forgot-password-modal"}}
    {{#if offerHelp}}
      {{html-safe offerHelp}}
    {{else}}
      <label for="username-or-email">{{i18n "forgot_password.invite"}}</label>
      {{text-field value=accountEmailOrUsername placeholderKey="login.email_placeholder" id="username-or-email" autocorrect="off" autocapitalize="off"}}
    {{/if}}
  {{/d-modal-body}}
  <div class="modal-footer">
    {{#if offerHelp}}
      {{d-button class="btn-large btn-primary"
                 label="forgot_password.button_ok"
                 type="submit"
                 action=(action "ok")}}
      {{#unless helpSeen}}
        {{d-button class="btn-large"
                   label="forgot_password.button_help"
                   icon="question-circle"
                   action=(action "help")}}
      {{/unless}}
    {{else}}
      {{d-button action=(action "resetPassword")
                 label="forgot_password.reset"
                 disabled=submitDisabled
                 class="btn-primary forgot-password-reset"
                 type="submit"}}
    {{/if}}
  </div>
</form>
