{% extends base.html %}

{% block content %}
<form class="signup layui-form" action="/signup" method="POST" href="/">
  <input type="hidden" name="ip" value="{{ handler.ip }}">
  <div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-block">
      <input type="text" name="email" required placeholder="请输入邮箱" class="layui-input" autocomplete="off">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
      <input type="text" name="username" required placeholder="请输入用户名" class="layui-input" autocomplete="off">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
      <input type="password" name="password" required placeholder="请输入密码" class="layui-input" autocomplete="off">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">重复密码</label>
    <div class="layui-input-block">
      <input type="password" name="password" required placeholder="请输入密码" class="layui-input" autocomplete="off">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="default">立即提交</button>
      {% if handler.app.opt.site_id %}
      <button class="weixin-login layui-btn" data-id="{{ handler.app.opt.site_id }}" type="button">微信登录</button>
      {% end %}
    </div>
  </div>
</form>
{% end %}

