{{ template "header.html" }}

<div class="panel">
{{ if .EmailSent }}

  <h2 class="heading">Thank you, please check your email!</h2>
  <div class="explain">
    {{ .Email }} has been sent an email with instructions to reset your password.
  </div>

{{ else }}

  <h2 class="heading">Reset your password </h2>
  <div class="explain">We will send you an email with a link to reset your password.</div>

  <form id="sendResetPasswordForm" method="POST" action="/send-reset-password">

    <div class="form-row">
      <div class="input-desc">
        <label for="email">Email Address</label>
      </div>
      <input required id="email" class="input-box" type="text" name="email" placeholder="email" value="" autofocus />
    </div>

    {{ if .Error }}
      <div class="error-box">{{ .Message }}</div>
    {{ end }}

    <button type="submit" class="btn btn-primary">Send Reset Link</button>
    <input type="hidden" name="redirect_uri" value="{{ .RedirectURL }}" />
    <input type="hidden" name="client_id" value="{{ .ClientID }}" />
  </form>

{{ end }}
</div>

{{ template "footer.html" }}