1
1
{% extends "layout.html" %}
2
+ {% import 'helper.html' as forms %}
2
3
{% block content %}
4
+ < h2 > Edit your profile</ h2 >
3
5
< div id ="alert " class ="alert alert-error alert-block hidden ">
4
6
< button type ="button " class ="close " data-dismiss ="alert "> ×</ button >
5
7
< span id ="alert-text "> </ span >
6
8
</ div >
7
- < form id ="signup " action ="signup " method ="post " class ="form-horizontal ">
9
+ < div class ="control-group ">
10
+ < label class ="control-label " for ="old_password "> Current Password {{ forms.info("Enter your current password to confirm changes.") }}</ label >
11
+ < input class ="span2 " id ="old_password " type ="password " placeholder ="Current Password ">
12
+ </ div >
13
+ < form id ="edit " action ="/edit " method ="post " class ="form-horizontal ">
8
14
< fieldset >
9
15
< legend > Account Details</ legend >
10
16
< div id ="email-control-group " class ="control-group ">
11
- < label class ="control-label " for ="email "> Email Address</ label >
17
+ < label class ="control-label " for ="email ">
18
+ Email Address {{ forms.info("Enter your Menlo School Email address") }}
19
+ </ label >
12
20
< div class ="controls ">
13
21
< div class ="input-prepend input-append ">
14
22
< span class ="add-on "> < i class ="icon-envelope "> </ i > </ span >
15
- < input class ="span2 " id ="email " name ="email " type ="text " placeholder ="first.last " >
23
+ < input class ="span2 " class =" email " id ="email " name ="email " type ="text " placeholder ="New Email Address " value = {{ g.user.email }} >
16
24
< span class ="add-on "> @menloschool.org</ span >
17
25
</ div >
18
26
< span id ="email-label " class ="label "> </ span >
19
27
</ div >
20
28
</ div >
21
29
< div id ="password-control-group " class ="control-group ">
22
30
< label class ="control-label " for ="password ">
23
- Old Password < a href ="# " rel ="tooltip " title ="A password must ____ "> < i class ="icon-info-sign "> </ i > </ a >
24
- </ label >
25
- < div class ="controls ">
26
- < div class ="input-prepend ">
27
- < span class ="add-on "> < i class ="icon-font "> </ i > </ span >
28
- < input class ="span2 " id ="password " name ="password " type ="password " placeholder ="Password ">
29
- </ div >
30
- < span id ="password-label " class ="label "> </ span >
31
- </ div >
32
- </ div >
33
- < div id ="password-control-group " class ="control-group ">
34
- < label class ="control-label " for ="password ">
35
- New Password < a href ="# " rel ="tooltip " title ="A password must ____ "> < i class ="icon-info-sign "> </ i > </ a >
31
+ New Password {{ forms.info("A password must ___") }}
36
32
</ label >
37
33
< div class ="controls ">
38
34
< div class ="input-prepend ">
39
35
< span class ="add-on "> < i class ="icon-font "> </ i > </ span >
40
- < input class ="span2 " id ="password " name ="password " type ="password " placeholder ="Password ">
36
+ < input class ="span2 pass " id ="password " name ="password " type ="password " placeholder ="New Password ">
41
37
</ div >
42
38
< span id ="password-label " class ="label "> </ span >
43
39
</ div >
44
40
</ div >
45
41
< div id ="confirm-password-control-group " class ="control-group ">
46
42
< label class ="control-label " for ="confirm-password ">
47
- Confirm New Password < a href =" # " rel =" tooltip " title =" What you enter here must be the same as what you entered above. "> < i class =" icon-info-sign " > </ i > </ a >
43
+ Confirm Password {{ forms.info(" What you enter here must be the same as what you entered above.") }}
48
44
</ label >
49
45
< div class ="controls ">
50
46
< div class ="input-prepend ">
51
47
< span class ="add-on "> < i class ="icon-font "> </ i > </ span >
52
- < input class ="span2 " id ="confirm-password " name ="confirm-password " type ="password " placeholder ="Confirm Password ">
48
+ < input class ="span2 pass " id ="confirm-password " name ="confirm-password " type ="password " placeholder ="Confirm Password ">
53
49
</ div >
54
50
< span id ="confirm-password-label " class ="label "> </ span >
55
51
</ div >
59
55
< legend > About You</ legend >
60
56
< div id ="first-name-control-group " class ="control-group ">
61
57
< label class ="control-label " for ="first-name ">
62
- First Name < a href =" # " rel =" tooltip " title =" A first name must contain only letters (it match the regular expression '^[a-zA-Z]+$') " > < i class =" icon-info-sign " > </ i > </ a >
58
+ First Name {{ forms.info("A name may only contain upper- or lowercase letters ") }}
63
59
</ label >
64
60
< div class ="controls ">
65
61
< div class ="input-prepend ">
66
62
< span class ="add-on "> < i class ="icon-font "> </ i > </ span >
67
- < input class ="span2 " id ="first-name " name ="first_name "type ="text " placeholder ="First Name ">
63
+ < input class ="span2 " id ="first-name " name ="first_name "type ="text " placeholder ="First Name " value = {{ g.user.first_name }} >
68
64
</ div >
69
65
< span id ="first-name-label " class ="label "> </ span >
70
66
</ div >
71
67
</ div >
72
68
< div id ="last-name-control-group " class ="control-group ">
73
- < label class ="control-label " for ="last-name "> Last Name</ label >
69
+ < label class ="control-label " for ="last-name ">
70
+ Last Name {{ forms.info("A name may only contain upper- or lowercase letters ") }}
71
+ </ label >
74
72
< div class ="controls ">
75
73
< div class ="input-prepend ">
76
74
< span class ="add-on "> < i class ="icon-font "> </ i > </ span >
77
- < input class ="span2 " id ="last-name " name ="last_name " type ="text " placeholder ="Last Name ">
75
+ < input class ="span2 " id ="last-name " name ="last_name " type ="text " placeholder ="Last Name " value = {{ g.user.last_name }} >
78
76
</ div >
79
77
< span id ="last-name-label " class ="label "> </ span >
80
78
</ div >
81
79
</ div >
82
80
< div id ="grade-control-group " class ="control-group ">
83
- < label class ="control-label " for ="grade "> Grade</ label >
81
+ < label class ="control-label " for ="grade ">
82
+ Grade {{ forms.info("Your grade must be either '9', '10', '11', or '12'") }}
83
+ </ label >
84
84
< div class ="controls ">
85
85
< div class ="input-prepend ">
86
86
< span class ="add-on "> #</ span >
87
- < input class ="span2 " id ="grade " name ="grade " type ="number " min =9 max =12 placeholder ="Between 9 and 12 ">
87
+ < input class ="span2 " id ="grade " name ="grade " type ="number " min =9 max =12 placeholder ="Between 9 and 12 " value = {{ g.user.grade }} >
88
88
</ div >
89
89
< span id ="grade-label " class ="label "> </ span >
90
90
</ div >
91
91
</ div >
92
92
</ fieldset >
93
93
< fieldset >
94
- < legend > Math/Science Classes < em > You Could Tutor</ em > </ legend >
94
+ < legend > Math/Science Classes < em > You Could Tutor</ em > {{ forms.info("Only select the classes you are capable of tutoring.") }} </ legend >
95
95
< p > < small > To select multiple options, hold down the command key (⌘) on Mac or the control (CTRL) button on Windows.</ small > </ p >
96
96
< select id ="tutor_science " name ="tutor_science " multiple ="multiple " size ="21 " class ="pull-left span4 ">
97
97
< optgroup label ="Physics ">
164
164
</ select >
165
165
</ fieldset >
166
166
< fieldset >
167
- < legend > Math/Science Classes < em > You Are Currently Taking</ em > </ legend >
167
+ < legend > Math/Science Classes < em > You Are Currently Taking</ em > {{ forms.info("Only select the classes you are currently taking this school year.") }} </ legend >
168
168
< p > < small > To select multiple options, hold down the command key (⌘) on Mac or the control (CTRL) button on Windows.</ small > </ p >
169
169
< select id ="learn_science " name ="learn_science " multiple ="multiple " size ="21 " class ="pull-left span4 ">
170
170
< optgroup label ="Physics ">
236
236
</ optgroup >
237
237
</ select >
238
238
</ fieldset >
239
- < p > < small > By clicking sign up, you agree to our < a href = {{ url_for( 'terms_and_conditions') }} > Terms and Conditions < a > </ small > </ p >
240
- < button type =" submit " class =" btn btn-primary " id =" submit_button " > Sign Up! </ button >
239
+ < button type =" submit " class =" btn btn-primary " id =" submit_button " > Submit </ button >
240
+ </ form >
241
241
{% endblock %}
0 commit comments