account/register

Trang đăng ký tài khoản.

Ngoài những biến dưới đây, slot này còn nhận toàn bộ biến toàn cục.

Biến của trang

Biến Kiểu Mô tả Từ phiên bản
error string | null Thông báo lỗi khi đăng ký thất bại. 1.0

Mã đầy đủ

Toàn bộ tệp account/register.html của bộ giao diện mặc định. Chép về templates/<bộ giao diện của bạn>/account/register.html rồi sửa theo ý muốn.

<div class="container page-content page-content--narrow">
  <h1 class="page-title">Đăng ký tài khoản</h1>
  {% if error %}<div class="alert alert--error">{{ error }}</div>{% endif %}
  <form action="/dang-ky" method="post" class="auth-form">
    <div style="position:absolute;left:-9999px;top:-9999px" aria-hidden="true">
      <label for="_hp">Leave this field empty</label>
      <input type="text" id="_hp" name="_hp" tabindex="-1" autocomplete="off">
    </div>
    <div class="form-group">
      <label for="full_name">Họ và tên *</label>
      <input type="text" id="full_name" name="full_name" required class="form-input" placeholder="Nguyễn Văn A">
    </div>
    <div class="form-group">
      <label for="email">Email *</label>
      <input type="email" id="email" name="email" required class="form-input" placeholder="[email protected]">
    </div>
    <div class="form-group">
      <label for="phone">Số điện thoại</label>
      <input type="tel" id="phone" name="phone" class="form-input" placeholder="0901234567">
    </div>
    <div class="form-group">
      <label for="password">Mật khẩu *</label>
      <input type="password" id="password" name="password" required class="form-input" placeholder="Tối thiểu 8 ký tự">
    </div>
    <button type="submit" class="btn btn--primary btn--block btn--lg">Đăng ký</button>
  </form>
  <p class="auth-alt">Đã có tài khoản? <a href="/dang-nhap">Đăng nhập</a></p>
</div>