forked from mikkosio/1800_202230_DTC09
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
192 lines (171 loc) · 9.11 KB
/
settings.html
File metadata and controls
192 lines (171 loc) · 9.11 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html lang="en">
<head>
<title>Inter-Task-Tivity</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 JS CDN go here -->
<!------------------------------------------>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://getbootstrap.com/docs/5.0/assets/css/docs.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>
<!-------------------------------------------------------->
<!-- Firebase 8 Library related CSS, JS, JQuery go here -->
<!-------------------------------------------------------->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/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 and styles of your own -->
<!-------------------------------------------->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="./styles/style.css">
<style>
.account {
margin: 20px;
}
.username {
margin: 20px;
margin-bottom: 0;
margin-top: 10px;
}
.email {
margin: 20px;
margin-top: 0;
}
.notifications {
margin: 20px;
margin-top: 40px;
}
.hstack {
display: flex;
flex-direction: row;
align-items: center;
align-self: stretch;
}
</style>
</head>
<body>
<!------------------------------>
<!-- Your HTML Layout go here -->
<!------------------------------>
<!--Nav Bar-->
<nav id="navbarplaceholder"></nav>
<!--Settings page cards-->
<div class="container">
<div class="row justify-content-center">
<div class="col-12 col-lg-10 col-xl-8 mx-auto">
<!--User information-->
<div class="my-4">
<ul class="nav nav-tabs mb-4" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab"
aria-controls="home" aria-selected="false">Settings</a>
</li>
</ul>
<form>
<div class="row mt-5 align-items-center">
<div class="col-md-3 text-center mb-5">
<div class="avatar avatar-xl">
<img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="..."
class="avatar-img rounded-circle" />
</div>
</div>
<div class="col">
<div class="row align-items-center">
<div class="col-md-7">
<h4 class="mb-1"><span class="name-goes-here"></span></h4>
</div>
</div>
<div class="row mb-4">
<div class="col-md-7">
<p class="text-muted">
</p>
</div>
<div class="col">
</div>
</div>
</div>
</div>
<hr class="my-4" />
<fieldset id="personalInfoFields" disabled>
<div class="form-row">
<div class="form-group col-md-6">
<label for="firstname">First name</label>
<input type="text" id="firstname" class="form-control" />
</div>
<div class="form-group col-md-6">
<label for="lastname">Last name</label>
<input type="text" id="lastname" class="form-control" placeholder="Last Name" />
</div>
</div>
</fieldset>
<!--Edit and confirm buttons-->
<div class="d-flex justify-content-end mt-5">
<button type="button" class="btn btn-secondary"
onclick="editUserSettings()">Edit</button>
<span style="width: 10px"></span>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal"
data-target="#exampleModal" onclick="myFunction()">
Save
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Confirmation</h5>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Are you sure you want to save these changes?
</div>
<div class="modal-footer">
<!--Modal confirmation buttons-->
<button type="button" class="btn btn-secondary" data-dismiss="modal"
onclick="closeModal()">Close</button>
<button type="button" class="btn btn-info"
onclick="saveUserInfo(), closeModal()">Save</button>
</div>
</div>
</div>
</div>
</div>
</div>
<hr class="my-4" />
</div>
</form>
</div>
</div>
</div>
</div>
<!--Email notifications-->
<div class="notifications">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">Email Notifications</label>
</div>
</div>
<!--Footer-->
<footer id="footerplaceholder"></footer>
<!---------------------------------------------->
<!-- Your own JavaScript functions go here -->
<!---------------------------------------------->
<!-- Link to scripts of your own -->
<script src="./scripts/firebaseAPI_TEAM09.js"></script>
<script src="./scripts/skeleton.js"></script>
<script src="./scripts/settings.js"></script>
</body>
</html>