본문 바로가기

Python_WEB/Project-Noticeboard

[Django]User > Templates > HTML > Register

{% extends "base.html" %} {% block contents %}
<div class="row mt-5">
  <div class="col-12 text-center">
    <h1>회원가입</h1>
  </div>
</div>
<div class="row mt-5">
  <div class="col-12">
    {{ error }}
  </div>
</div>
<div class="row mt-5">
  <div class="col-12">
    <form method="POST", action=".">
      {% csrf_token %}
      <div class="form-group">
        <label for="username">사용자 이름</label>
        <input
          type="text"
          class="form-control"
          placeholder="사용자 이름"
          name="username"
        />         
      </div>
      <div class="form-group">
            <label for="useremail">사용자 이메일</label>
            <input
              type="email"
              class="form-control"
              placeholder="사용자 이메일"
              name="useremail"
        />        
      </div>
      <div class="form-group">
        <label for="password">비밀번호</label>
        <input
          type="password"
          class="form-control"
          id="password"
          placeholder="비밀번호"
          name="password"
        />
      </div>
      <div class="form-group">
        <label for="re-password">비밀번호 확인</label>
        <input
          type="password"
          class="form-control"
          id="re-password"
          placeholder="비밀번호 확인"
          name="re-password"
        />
      </div>
      <button type="submit" class="btn btn-primary">등록</button>
    </form>
  </div>
</div>
</div>
{% endblock %}