-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_profile(only).html
138 lines (108 loc) · 5.25 KB
/
edit_profile(only).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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<title>Profile</title>
</head>
<body>
<br><br>
<div class="container">
<form>
<div class="form-group" data-aos="fade-up" data-aos-duration="1000">
<label for="Input1">Name</label>
<input type="email" class="form-control" id="Input1" placeholder="Name">
</div>
<div class="form-group" data-aos="fade-up" data-aos-duration="1000">
<label for="Input2">Age</label>
<input type="email" class="form-control" id="Input2" placeholder="Age">
</div>
<div class="form-group" data-aos="fade-up" data-aos-duration="1000">
<label for="inputAddressLine2" class="col-sm-2 control-label">Address Line 1</label>
<input type="text" class="form-control" id="inputAddressLine2" name="address-line2"
placeholder="Address Line 1">
</div>
<div class="form-group" data-aos="fade-up" data-aos-duration="1000">
<label for="inputCityTown" class="col-sm-2 control-label">City / Town</label>
<input type="text" class="form-control" id="inputCityTown" name="city-town" placeholder="City / Town">
</div>
<div class="form-group" data-aos="fade-up" data-aos-duration="1000">
<label for="inputStateProvinceRegion" class="col-sm-2 control-label">State / Province</label>
<input type="text" class="form-control" id="inputStateProvinceRegion" name="state-province-region"
placeholder="State / Province / Region">
</div>
<div class="form-group" data-aos="fade-up" data-aos-duration="1000">
<label for="inputZipPostalCode" class="col-sm-2 control-label">Zip / Postal Code</label>
<input type="text" class="form-control" id="inputCityTown" name="city-town" placeholder="City / Town">
</div>
</form>
</div>
<div class="container">
<table class="table" data-aos="fade-up" data-aos-duration="1000">
<thead>
<th>Phone Numbers</th>
</thead>
<tbody id="list">
</tbody>
</table>
<button type="button" class="btn btn-outline-primary" aria-label="Add" data-toggle="modal"
data-target="#formModal" data-aos="fade-up" data-aos-duration="1000">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Add number
</button>
<!-- Modal -->
<div class="modal fade" id="formModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<div class="form-group">
<label>Number</label>
<input type="text" name="price" id="price" class="form-control" />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button class="btn btn-success" onmousedown="add()">
Add
</button>
</div>
</div>
</div>
</div>
<div class="container" style="text-align : center; margin-top: 10px;" data-aos="fade-up"
data-aos-duration="1000">
<button type="submit" class="btn btn-outline-success mb-2">Edit Profile</button>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
</body>
<script>
function add() {
var type = $('#type').val();
var name = $('#name').val();
var price = $('#price').val();
var quantity = $('#quantity').val();
var newLine = '<tr>' +
'<td>' + price + '</td>' +
'</td>' +
'</tr>';
$('#list').append(newLine);
$('#formModal').modal('hide');
}
AOS.init();
</script>
</html>