-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.html
77 lines (56 loc) · 1.77 KB
/
registration.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{%extends 'base.html' %}
{%block title%}
<title>REG</title>
{%endblock%}
{%block content%}
<div class="container" id="pad">
<div class="row" >
<div class="col-lg-6 col-sm-6 col-xs-12" style="background-color:gray">
<h2>SignUp</h2><br>
{% with messages = get_flashed_messages() %}
{%if messages%}
{% for message in messages %}
<div class="alert alert-success alert-dismissable" role="alert" >
<button type="button" class="close" data-dismiss="alert" aria-label="close" >
<span aria-hidden="true" >x</span>
</button>
{{message}}
</div>
{% endfor %}
{% endif %}
{% endwith %}
<form action="" method="post" novalidate>
{{form.csrf_token}}
<p>
{{form.username.label}}<br>
{{form.username(size=20)}}
{% for error in form.username.errors %}
<span style="color:red">{{error}}</span>
{% endfor %}
</p>
<p>
{{form.password.label}}<br>
{{form.password(size=20)}}
{% for error in form.password.errors %}
<span style="color:red">{{error}}</span>
{% endfor %}
</p>
<p>
{{form.email.label}}<br>
{{form.email(size=20)}}
{% for error in form.email.errors %}
<span style="color:red">{{error}}</span>
{% endfor %}
</p>
<p>
<input type="submit" value="signup" class="btn btn-success">
</p>
</form>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<h1>welcome</h1>
<img src="../static/images/man.jpg" width="400px" height="400px">
</div>
</div>
</div>
{%endblock%}