<mt:setvarblock name="page_title"><__trans phrase="Create an account"></mt:setvarblock>
<mt:include name="include/chromeless_header.tmpl">

<mt:if name="error">
  <mtapp:statusmsg
     id="generic-error"
     class="error"
     can_close="0">
    <mt:var name="error">
  </mtapp:statusmsg>
</mt:if>
<mt:If name="message">
    <mt:App:StatusMsg
        id="message"
        class="alert"
        can_close="0">
        <$mt:Var name="message"$>
    </mt:App:StatusMsg>
</mt:If>

<mt:setvarblock name="common_fields" id="common_fields">
<mtapp:setting
   id="nickname"
   label="<__trans phrase="Display Name">"
   label_class="top-label"
   required="1"
   hint="<__trans phrase="The name appears on your comment.">">
  <input type="text" name="nickname" id="nickname" class="text full" value="<mt:var name="nickname" escape="html">" />
</mtapp:setting>
<mtapp:setting
   id="email"
   label="<__trans phrase="Email Address">"
   label_class="top-label"
   required="1"
   hint="<__trans phrase="Your email address.">">
  <input type="text" name="email" id="email" class="text full" value="<mt:var name="email" escape="html">" />
</mtapp:setting>
</mt:setvarblock>

<form method="post" id="signup_form" action="<mt:var name="script_url">">
  <input type="hidden" name="blog_id" value="<mt:var name="blog_id" escape="html">" />
  <input type="hidden" name="entry_id" value="<mt:var name="entry_id" escape="html">" />
  <input type="hidden" name="static" value="<mt:var name="static" escape="html">" />
  <input type="hidden" name="return_url" value="<mt:var name="return_url" escape="html">" />
<mt:if name="auth_mode_mt">
  <input type="hidden" name="__mode" value="do_signup" />
  <mtapp:setting
     id="username"
     label="<__trans phrase="Username">"
     label_class="top-label"
     required="1"
     hint="<__trans phrase="Your login name.">">
    <input type="text" name="username" id="username" class="text full" value="<mt:var name="username" escape="html">" />
  </mtapp:setting>

  <$mt:var name="common_fields"$>

  <mtapp:setting
     id="password"
     label="<__trans phrase="Initial Password">"
     label_class="top-label"
     required="1"
     hint="<__trans phrase="Select a password for yourself."> (<$mt:PasswordValidationRule$>)"
     show_hint="1">
    <input type="password" name="password" id="password" class="text password" value="" />
  </mtapp:setting>
  <script type="text/javascript">
  /* <![CDATA[ */
  <$mt:PasswordValidation form="signup_form" password="password" username="username"$>
  /* ]]> */
  </script>
  <mtapp:setting
     id="pass_verify"
     label="<__trans phrase="Password Confirm">"
     label_class="top-label"
     required="1"
     hint="<__trans phrase="Repeat the password for confirmation.">">
    <input type="password" name="pass_verify" id="pass_verify" class="text password" value="" />
  </mtapp:setting>
  <mtapp:setting
     id="url"
     label="<__trans phrase="Website URL">"
     label_class="top-label"
     hint="<__trans phrase="The URL of your website. (Optional)">">
    <input type="text" name="url" id="url" class="text password" value="<mt:var name="url" escape="html">" />
  </mtapp:setting>
  <mt:if name="captcha_fields">
    <div class="setting">
      <mt:var name="captcha_fields">
    </div>
  </mt:if>
<mt:else>
  <input type="hidden" name="__mode" value="do_signup" />
  <input type="hidden" name="external_auth" value="1" />
  <mtapp:setting
     id="external_username"
     label="<__trans phrase="Username">"
     label_class="top-label"
     required="1"
     hint="<__trans phrase="Your login name.">">
    <input type="text" name="username" id="username" class="text full" value="<mt:var name="username" escape="html">" />
  </mtapp:setting>

    <$mt:var name="common_fields"$>
</mt:if>

<mt:loop name="field_loop">
<mt:if name="__first__">
  <input type="hidden" name="_type" value="author" id="obj_type" />
  <input type="hidden" name="customfield_beacon" value="1" id="customfield_beacon" />
</mt:If>
<!-- start-customfield_<$mt:Var name="basename"$> -->
  <mtapp:setting
     id="$field_id"
     label="$name"
     label_class="top-label"
     hint="$description"
     shown="$show_field"
     show_hint="$show_hint"
     required="$required">
    <$mt:Var name="field_html"$>
  </mtapp:setting>
<!-- end-customfield_<$mt:Var name="basename"$> -->
</mt:loop>

  <div class="actions-bar">
    <button
       type="submit"
       accesskey="s"
       class="action primary button">
      <__trans phrase="Register">
    </button>
  </div>
</form>

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