-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_profile.html
105 lines (99 loc) · 3.64 KB
/
edit_profile.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!doctype html>
<html class="no-js" lang="en" ng-app="qred-profile">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Foundation | Welcome</title>
<link rel="stylesheet" href="css/foundation.css" />
<script src="js/vendor/modernizr.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/profile.js"></script>
</head>
<body style="background-image:url(img/gray.jpg)">
<div class="row">
<div class="large-3 columns" style = "padding:0px">
<div class="panel">
<h2>Edit Profile</h2>
</div>
</div>
<div class="large-9 columns">
<ul class="right button-group">
<a href="wall.html" class="success button inline">View My Wallet</a>
<a href="profile.html" class="button inline">View My Profile</a>
<a href="mycard.html" class="secondary button inline">View My Card</a>
<a href="#" class="alert button inline">Sign Out</a>
</ul>
</div>
</div>
<div class="row">
<article>
<form data-abide ng-controller="EditProfileController as ep" ng-submit="submit()">
<h3> My Account </h3>
<div class="name-field">
<label>Your name <small>required</small>
<input ng-model="profile.name" type="text" required pattern="[a-zA-Z ]+">
</label>
<small class="error">Name is required and must be a string.</small>
</div>
<div class="email-field">
<label>Email <small>required</small>
<input ng-model="profile.email" type="email" required>
</label>
<small class="error">An email address is required.</small>
</div>
<div class="password-field">
<label>Password <small>required</small>
<input ng-model="password" type="password" id="password" pattern="[a-zA-Z]+">
</label>
<small class="error">Your password must match the requirements</small>
</div>
<div class="password-confirmation-field">
<label>Confirm Password <small>required</small>
<input type="password" pattern="[a-zA-Z]+" data-equalto="password">
</label>
<small class="error">The password did not match</small>
</div>
<hr>
<h3> My Details </h3>
<div ng-repeat="site in profile.sites" class="url-field">
<label>Edit a website
<input ng-model="site.name" type="text" required>
<input ng-model="site.url" type="url" required>
</label>
<small class="error">This is not a valid URL</small>
</div>
<div class="url-field">
<label>Add a website
<input placeholder="Site name" ng-model="new_site_name" type="text" >
<input placeholder="Site URL" ng-model="new_site_url" type="url" >
</label>
<small class="error">This is not a valid URL</small>
</div>
<label ng-repeat="address in profile.addresses"> Edit an Address Line
<input ng-model="address" type="text"> </label>
<label> Add an Address Line
<input ng-model="new_address" type="text"> </label>
<label> City
<input ng-model="profile.city" type="text"> </label>
<label> State
<input ng-model="profile.state" type="text"> </label>
<label> Postal Code
<input ng-model="profile.postal" type="text"> </label>
<label> Country
<input ng-model="profile.country" type="text"> </label>
<label ng-repeat="number in profile.phone_numbers"> Edit a Phone number
<input ng-model="number" type="text"> </label>
<label> Add a Phone number
<input ng-model="new_phone_number" type="text"> </label>
<label> Company
<input ng-model="profile.company" type="text"> </label>
<label> Title
<input ng-model="profile.title" type="text"> </label>
<hr>
<button type="submit">Update</button>
</form>
</article>
</div>
</footer>
</body>
</html>