-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateform.html
43 lines (34 loc) · 1.29 KB
/
updateform.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends '../base.html' %}
{% block csslink %}
<link href="/assets/css/user.css" rel="stylesheet" type="text/css">
{% endblock%}
{% block content %}
{% if request.GET.result == 'success' %}
<script>
alert('정보 수정이 완료되었습니다.')
</script>
{% endif %}
<div id="user">
<form id="join-form" name="joinForm" method="post" action="{% url 'user:update' %}">
{% csrf_token %}
<label class="block-label" for="name">이름</label>
<input id="name" name="name" type="text" value="{{ user.name }}">
<label class="block-label" for="email">이메일</label>
<input id="email" name="email" type="text" value="{{ user.email }}">
<input type="button" value="id 중복체크">
<label class="block-label">패스워드</label>
<input name="password" type="password" value="">
<fieldset>
<legend>성별</legend>
{% if user.gender == 'female' %}
<label>여</label> <input type="radio" name="gender" value="female" checked="checked">
<label>남</label> <input type="radio" name="gender" value="male">
{% else %}
<label>여</label> <input type="radio" name="gender" value="female">
<label>남</label> <input type="radio" name="gender" value="male" checked="checked">
{% endif %}
</fieldset>
<input type="submit" value="수정하기">
</form>
</div>
{% endblock%}