summaryrefslogtreecommitdiff
path: root/views/partials/edit-profile.ejs
blob: 5775ca5e24907f88e7b1e2bd3156a2fbfffe93e3 (plain)
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
88
89
90
91
92
93
94
95
<div class="mediaDrawer fixed animate editProfile">
	<span class="close">X</span>
	<div id="form_container">

		<form enctype="multipart/form-data" method="post">
			<input type="hidden" name="_csrf" value="[[- token ]]">
			<ul>
				<li class="section_break">
					<h3>Edit Profile</h3>
				</li>
				<li>
					<label class="description" for="profile_displayName">Username:</label>
					<div>
					<div id="profile_username"></div>
					</div>
				</li>
				<li>
					<label class="description" for="profile_displayName">Display Name:</label>
					<div>
					<input id="profile_displayName" name="displayName" class="element text" type="text" maxlength="255">
					</div>
				</li>
				<li>
					<label class="description" for="profile_email">Email:</label>
					<div>
						<input id="profile_email" name="email" class="element text medium" type="text" maxlength="255"> 
					</div> 
				</li>
				<li>
					<label class="description" for="profile_website">Location:</label>
					<div>
						<input id="profile_location" name="location" class="element text medium" type="text" maxlength="255"> 
					</div> 
				</li>
				<li>
					<label class="description" for="profile_website">Website:</label>
					<div>
						<input id="profile_website" name="website" class="element text medium" type="text" maxlength="255"> 
					</div> 
				</li>
				<li>
					<label class="description" for="profile_twitter">Twitter:</label>
					<div>
						<input id="profile_twitter" name="twitterName" class="element text medium" type="text" maxlength="255">
					</div> 
				</li>		
				<li>
					<label class="description" for="profile_facebook">Facebook:</label>
					<div>
						<input id="profile_facebook" name="facebookUrl" class="element text medium" type="text" maxlength="255"> 
					</div> 
				</li>
				<li>
					<label class="description" for="profile_avatar">Upload Avatar:</label>
					<div>
						<input id="profile_avatar" name="avatar" class="element file" type="file"> 
					</div>
					<p class="guidelines"><small>please choose a picture at least 500px wide</small></p> 
					<br>
					<br><img id="load_avatar">
				</li>		
				<li class="section_break">
					<h3 class="link" data-role="changePasswordToggle">Change Password</h3>
				</li>
				<div class="hidden" data-role="changePasswordFields">
				<li>
					<label class="description" for="profile_old_password">Old Password:</label>
					<div>
						<input id="profile_old_password" name="old_password" class="element text medium" type="password" maxlength="255">
					</div> 
				</li>		
				<li>
					<label class="description" for="profile_new_password">New Password:</label>
					<div>
						<input id="profile_new_password" name="new_password" class="element text medium" type="password" maxlength="255">
					</div> 
				</li>		
				<li>
					<label class="description" for="profile_new_password2">Again!</label>
					<div>
						<input id="profile_new_password2" class="element text medium" type="password" maxlength="255"> 
					</div> 
				</li>
				</div>
				<li class="buttons">
					<input id="saveForm" class="button_text" type="submit" value="Submit" />
				</li>
				<div class="errors">
					<div>There was a problem with your submission:</div>
					<div class="errorList"></div>
				</div>
			</ul>
		</form>
	</div>
</div>