<mt:var name="screen_id" value="reset-password">
<mt:setvarblock name="page_title"><__trans phrase="Reset Password"></mt:setvarblock>
<mt:setvar name="complete" value="1">
<mt:include name="include/chromeless_header.tmpl">

<mt:if name="error">
  <mtapp:statusmsg
     id="error"
     class="error"
     can_close="0">
    <mt:var name="error">
  </mtapp:statusmsg>
</mt:if>
<mt:If name="not_unique_email">
  <mtapp:statusmsg
     id="not-unique-email"
     class="alert"
     can_close="0">
    <__trans phrase="The email address provided is not unique.  Please enter your username.">
  </mtapp:statusmsg>
</mt:if>

<mt:if name="recovered">
<p><__trans phrase="An email with a link to reset your password has been sent to your email address ([_1]).", params="<mt:var name="email" escape="html">"></p>
<div class="actions-bar actions-bar-login">
<mt:if name="return_to">
  <a
     href="<$mt:var name="return_to" escape="html" $>"
     accesskey="x"
     title="<__trans phrase="Back (x)">"
     class="action button">
    <__trans phrase="Back">
  </a>
<mt:elseif name="can_signin">
  <a
     href="<$mt:var name="script_url"$>"
     accesskey="s"
     title="<__trans phrase="Sign in to Movable Type (s)">"
     class="action primary button">
    <__trans phrase="Sign in to Movable Type">
  </a>
</mt:if>
</div>

<mt:else>

<form method="post" action="<mt:var name="script_url">">
  <input type="hidden" name="__mode" value="recover" />
  <input type="hidden" name="return_to" value="<mt:Var name="return_to" escape="html">" />
    <mtapp:setting
       id="email"
       label="<__trans phrase="Email Address">"
       label_class="top-label">
      <input type="text" name="email" id="email" class="text full" value="<mt:var name="email" escape="html">" />
    </mtapp:setting>
  <mt:if name="not_unique_email">
    <mtapp:setting
       id="name"
       label="<__trans phrase="Username">"
       label_class="top-label">
      <input type="text" name="name" id="name" class="text full" value="<mt:var name="name" escape="html">" />
    </mtapp:setting>
  </mt:if>
  <div class="actions-bar actions-bar-login">
    <button
       type="submit"
       accesskey="s"
       title="<__trans phrase="Reset (s)">"
       class="reset action primary button">
      <__trans phrase="Reset">
    </button>
    <button
       onclick="history.back(); return false;"
       type="submit"
       accesskey="x"
       class="action button"
       title="<__trans phrase="Back (x)">">
      <__trans phrase="Back">
    </button>
  </div>
</form>
</mt:if>

<mt:include name="include/chromeless_footer.tmpl">
