forked from ShaunMLS/1800_202330_DTC01
-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_account.html
120 lines (96 loc) · 4.86 KB
/
my_account.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>FlushFinder</title>
<meta name="comp1800 template" content="My 1800 App">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap Library CSS CDN go here -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Boostrap Library JS CDN go here -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<!-- Firebase 8 Library related CSS, JS, JQuery go here -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/ui/4.8.1/firebase-ui-auth.js"></script>
<link type="text/css" rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/4.8.1/firebase-ui-auth.css" />
<!-- Other libraries go here -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Link to styles of your own -->
<link rel="stylesheet" href="./styles/normalize.css">
<link rel="stylesheet" href="./styles/nav.css">
<link rel="stylesheet" href="./styles/my_account.css">
</head>
<body>
<!------------------------------>
<!-- Your HTML Layout go here -->
<!------------------------------>
<!-- Header html -->
<nav id="navbarPlaceholder"></nav>
<!-- Body html goes here -->
<div class="padding"></div>
<div class="container">
<h1>User Profile </h1>
<form>
<fieldset class="mb-3" id="personalInfoFields" disabled>
<div class="form-group">
<label>Name</label>
<input type="text" id="nameInput" class="form-control" placeholder="Enter your name">
</div>
<div class="form-group">
<label>City</label>
<input type="text" id="cityInput" class="form-control" placeholder="Enter your city">
</div>
<div class="form-group">
<label>Country</label>
<input type="text" id="countryInput" class="form-control" placeholder="Enter your country">
</div>
<fieldset disabled>
<label>Email</label>
<input type="text" id="emailInput" class="form-control" placeholder="Your email">
</fieldset>
</fieldset>
<div class="modal fade" id="successModal" tabindex="-1" aria-labelledby="successModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
User profile has been saved
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"
id="closeSuccessModalButton">Close</button>
</div>
</div>
</div>
</div>
<div class="d-flex justify-content-end mt-5">
<button type="button" class="btn btn-secondary" onclick="editUserInfo()">Edit</button>
<span style="width: 10px"></span>
<button type="button" class="btn btn-info" onclick="saveUserInfo()" data-bs-toggle="modal"
data-bs-target="#successModal">Save</button>
</div>
</form>
</div>
<!-- Footer html -->
<nav id="footerPlaceholder"></nav>
<!---------------------------------------------->
<!-- Your own JavaScript functions go here -->
<!---------------------------------------------->
<!-- Link to scripts of your own -->
<script src="./scripts/firebaseAPI_DTC01.js"></script>
<script src="./scripts/skeleton.js"></script>
<script src="./scripts/myaccount.js"></script>
</body>
</html>