-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.py
More file actions
87 lines (85 loc) · 1.97 KB
/
Copy pathforms.py
File metadata and controls
87 lines (85 loc) · 1.97 KB
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
78
79
80
81
82
83
84
85
86
87
form_signup="""
<form method="post">
<style type="text/css">
body{
font-family:sans-serif;
width: 800px;
font-size:20;
margin: 0 auto;
padding: 10px;
}
label{
display: block;
font-size:20px;
}
input[type=text]{
width:400px;
font-size:20px;
padding:2px;
}
input[type=password]{
width:400px;
font-size:20px;
padding:2px;
}
textarea{
width:400px;
height:300px;
font-size:17px;
font-family:monospace;
}
input[type=submit]{
font-size:20;
}
.post-heading{
position: relative;
border-bottom: 4px solid #666;
}
</style>
<h1> Registration form </h1>
<br>
<label>
<div> First name </div>
<input type="text" name="first_name" value=%(first_name_value)s>
</label>
<div style="color: red">%(error_first_name)s</div>
<br>
<label>
<div> Last name </div>
<input type="text" name="last_name" value=%(last_name_value)s>
</label>
<div style="color: red">%(error_last_name)s</div>
<br>
<label>
<label>
<div> Address </div>
<input type="text" name="postal_address" value=%(postal_address_value)s>
</label>
<div style="color: red">%(error_postal_address)s</div>
<br>
<div> User name </div>
<input type="text" name="username" value=%(username_value)s>
</label>
<div style="color: red">%(error_username)s</div>
<br>
<label>
<div>Password </div>
<input type="password" name="password">
</label>
<div style="color: red">%(error_password)s</div>
<br>
<label>
<div> Verify your password </div>
<input type="password" name="verify">
</label>
<div style="color: red">%(error_password_verify)s</div>
<br>
<label>
<div> Email (optional) </div>
<input type="text" name="email" value=%(email_value)s>
</label>
<div style="color: red">%(error_email)s</div>
<br>
<input type="submit">
</form>
"""