-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditprofile.html
More file actions
194 lines (159 loc) · 9 KB
/
editprofile.html
File metadata and controls
194 lines (159 loc) · 9 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
193
194
<!DOCTYPE html>
<head>
<title>Linked Up - Edit Profile</title>
<!----------------------------------------------->
<!-- Meta tag for rendering on mobile devices -->
<!----------------------------------------------->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Helping professional students connect!">
<meta name="author" content="Linked Up">
<!----------------------------------------------->
<!-- EXTERNAL CSS AND JS -->
<!----------------------------------------------->
<script src="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/3.5.2/firebaseui.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!----------------------------------------------->
<!-- INTERNAL CSS AND JS -->
<!----------------------------------------------->
<link href="css/login.css" rel="stylesheet">
<script src="scripts/dropzone/dropzone.js"></script>
<link href="css/editprofile.css" rel="stylesheet">
</head>
<body>
<!----------------------------------------------->
<!-- LOAD FIREBASE JS -->
<!----------------------------------------------->
<!-- Firebase App (the core Firebase SDK) is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.10.0/firebase-app.js"></script>
<!-- If you enabled Analytics in your project, add the Firebase SDK for Analytics -->
<script src="https://www.gstatic.com/firebasejs/7.10.0/firebase-analytics.js"></script>
<!-- Add Firebase products that you want to use -->
<script src="https://www.gstatic.com/firebasejs/7.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.12.0/firebase-storage.js"></script>
<!----------------------------------------------->
<!-- NAVIGATION BAR -->
<!----------------------------------------------->
<nav class="navbar navbar-expand bg-light navbar-light fixed-top py-3" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger text-black" href="main.html">LINKED UP</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto my-2 my-lg-0">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="editprofile.html">Edit Profile</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="messagelist.html">Messages</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="" id="logoutButton">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
<!----------------------------------------------->
<!-- MAIN CONTAINER FOR EDITING PROFILE FORM -->
<!----------------------------------------------->
<div class="container">
<form class="form-completeRegistration ml-2 mr-2" novalidate>
<div class="text-center mb-3">
<img class="mb-2 mt-4 img-fluid" src="images/logo.svg" alt="" width="72" height="72">
<h1 class="h3 mb-1 font-weight-normal">Linked Up</h1>
<p>Looks like you need to make some changes to your profile! We can help you with that!</p>
</div>
<div class="text-center" id="photoupload">
<img class="mb-2 img-fluid" src="images/upload.png" alt="" width="90" height="90" style="pointer-events: none;" id="profileimage"><br>
<small class="text-muted" id="profileimageDescription">Upload a profile picture</small>
</div>
<label for="validationCustomEmail">Email</label>
<input type="email" id="validationCustomEmail" class="form-control mb-1" placeholder="Email" aria-describedby="emailHelpBlock" required pattern="^[a-zA-Z0-9_.+-]+@(?:(?:[a-zA-Z0-9-]+\.)?[a-zA-Z]+\.)?(my.bcit)\.ca$">
<small id="emailHelpBlock" class="form-text text-muted mb-1">
Email cannot be changed.
</small>
<div class="form-row">
<div class="col-md-4 mb-3">
<label for="validationFirstName">First name</label>
<input type="text" class="form-control" id="validationFirstName" placeholder="First name" pattern="^[a-zA-Z]+$" required>
<div class="valid-feedback">
First name looks great!
</div>
<div class="invalid-feedback">
Oops! First name is invalid
</div>
</div>
<div class="col-md-4 mb-3">
<label for="validationLastName">Last name</label>
<input type="text" class="form-control" id="validationLastName" placeholder="Last name" pattern="^[a-zA-Z]+$" aria-describedby="lastNameHelpBlock" required>
<small id="lastNameHelpBlock" class="form-text text-muted">
Last names are not visible to other people.
</small>
<div class="valid-feedback">
Last name looks great!
</div>
<div class="invalid-feedback">
Oops! Last name is invalid
</div>
</div>
<div class="col-md-4 mb-3">
<label for="validationDateOfBirth">Date of Birth</label>
<input type="text" class="form-control" id="validationDateOfBirth" placeholder="dd/mm/yyyy" pattern="^([0-2][0-9]|(3)[0-1])(\/)(((0)[0-9])|((1)[0-2]))(\/)\d{4}$" aria-describedby="dateofbirthHelpBlock" required>
<small id="dateofbirthHelpBlock" class="form-text text-muted">
Ages are visible to other people, not date of birth.
</small>
<div class="valid-feedback">
Date of birth looks great!
</div>
<div class="invalid-feedback">
Make sure date of birth is entered using the format dd/mm/yyyy.
</div>
</div>
</div>
<div class="form-group">
<label for="bioTextBox">Bio</label>
<textarea class="form-control" rows="5" id="bioTextBox" minlength="20" required></textarea>
<small id="passwordHelpBlock" class="form-text text-muted">
Tell other users about yourself outlining your accomplishments and goals! Remember, keep it
professional!
</small>
<div class="invalid-feedback">
Please complete the bio to let other users know more about you! (min 20 characters)
</div>
</div>
<div class="alert alert-danger d-none" id="errorMessage" role="alert">
Oops! Something went wrong, please try again later!
</div>
<button class="btn mb-1" style="background-color: #f4623a; color: #fff; width: 100%;" id="completeRegistrationButton" type="submit">Update Profile</button>
</form>
</div>
<!----------------------------------------------->
<!-- CONFIGURE FIREBASE -->
<!----------------------------------------------->
<script>
var firebaseConfig = {
apiKey: "AIzaSyAEZnIL7YOqY0xHIfR402hVwJ0FWv3ATSA",
authDomain: "linkedup-f5db2.firebaseapp.com",
databaseURL: "https://linkedup-f5db2.firebaseio.com",
projectId: "linkedup-f5db2",
storageBucket: "linkedup-f5db2.appspot.com",
messagingSenderId: "957675612833",
appId: "1:957675612833:web:f493f2c3ed606f2c80dee0",
measurementId: "G-E16PSFXZL9"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
const db = firebase.firestore();
let storage = firebase.storage();
const storageRef = storage.ref();
</script>
<!----------------------------------------------->
<!-- LOAD INTERNAL JS AFTER BODY LOADS -->
<!----------------------------------------------->
<script src="scripts/editprofile.js"></script>
</body>
</html>