-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile.html
215 lines (188 loc) · 11 KB
/
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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<!-- ================================-->
<!-- This is the profile page -->
<!-- ================================-->
<html>
<head>
<meta charset="UTF-8">
<!-- UIkit CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.23/css/uikit.min.css" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/app.css">
<!-- jQuery is required -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/profile.js"></script>
<!-- UIkit JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.23/js/uikit.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.23/js/uikit-icons.min.js"></script>
<link rel="stylesheet" href="css/profile.css">
</head>
<body>
<!-- Navigation Section-->
<nav class="uk-navbar-container" uk-navbar style="background-color:#0093d0;">
<div class="uk-navbar-left">
<a class="uk-navbar-item uk-logo" href="#">
<img src="images/addlevel_logo_white_trans.svg" width="120" height="120"uk-svg style="padding-bottom:7px;"></a>
<ul class="uk-navbar-nav ">
<li class="uk-active " ><a href="./client_dashboard.html"><b><font color="white" size="2em;">Dashboard</font></b></a></li>
<li class="uk-parent"><a href="./question_control.html"><b><font color="white" size="2em;">Questionaire</font></b></a></li>
<li class="uk-parent"><a href="./contact.html"><b><font color="white" size="2em;">Contact</font></b></a></li>
<li class="uk-parent"><a href="./faq.html"><b><font color="white" size="2em;">FAQ</font></b></a></li>
</ul>
</div>
<div class="uk-navbar-right" style="padding-right:20px;">
<ul class="uk-navbar-nav">
<li>
<a href="#">
<span uk-icon="icon:user" style="padding-right:5px;padding-bottom:5px;color:white;"></span><b><font color="white" size="2em;">My profile</font></b>
</a>
<div class="uk-navbar-dropdown">
<ul class="uk-nav uk-navbar-dropdown-nav">
<li><a href="./profile.html">
<span uk-icon="icon:settings" style="padding-right:10px;"></span>Profile</li>
<li class="uk-nav-divider"></li>
<li><a href="" class="signout"><span uk-icon="icon:sign-out" style="padding-right:10px;"></span>Sign out</a></li>
</ul>
</div>
</li>
</ul>
</nav> <!-- End Nav -->
<div class="center_profile top_margin center_text" id="profile-div" hidden>
<div class="uk-margin">
<div class="uk-inline">
<legend class="uk-legend">Profile</legend>
</div>
</div>
<div>
<form action="/profile/EditInfo" method="post" id="profile-edit-form">
<table class="profile_table">
<tr><td class="text_right_align">First Name</td><td id="profile-fname" class="text_left_align"><input class="uk-input no_field" type="text" disabled name="firstname"></td></tr> <!--FIND ME-->
<tr><td class="text_right_align">Last Name</td><td id="profile-lname" class="text_left_align"><input class="uk-input no_field" type="text" disabled name="lastname"></td></tr>
<tr><td class="text_right_align">Email</td><td id="profile-email" class="text_left_align"><input class="uk-input no_field" type="text" disabled name="email"></td></tr>
<tr><td class="text_right_align">Phone</td><td id="profile-phone" class="text_left_align"><input class="uk-input no_field" type="text" disabled name="phone"></td></tr>
<tr>
<td class="text_right_align">Position</td>
<td id="profile-position" class="text_left_align">
<select class="uk-select no_field" name="position" disabled>
<option value="0"></option>
<option></option>
</select>
</td>
</tr>
</table>
<input type="submit" value="save" class="uk-button uk-button-primary uk-button-small b20width" hidden>
</form>
<button class="uk-button uk-button-primary uk-button-small b20width" id="profile-edit-btn">Edit</button>
</div>
</div>
<div class="center_profile top_margin center_text" id="create-div" hidden>
<ul uk-accordion>
<!-- The accordion to open the form to provide company information -->
<li class="uk-open">
<h3 class="uk-accordion-title">Company Info</h3>
<div class="uk-accordion-content">
<form action="/company/create" method="post" id="create-form">
<div class="uk-margin">
<input class="uk-input" type="text" placeholder="Company Name" name="name">
</div>
<div class="uk-margin">
<select class="uk-select" name="country" id="create-country">
<option>Country</option>
<option></option>
</select>
</div>
<div class="uk-margin">
<select class="uk-select" name="industry" id="create-industry">
<option>Industry</option>
<option></option>
</select>
</div>
<div class="uk-margin">
<select class="uk-select" name="size" id="create-size">
<option>Company Size</option>
<option></option>
</select>
</div>
<div class="uk-margin">
<input class="uk-input" type="text" placeholder="Number of Security Employees" name="securityEmps">
</div>
<div class="uk-margin">
<select class="uk-select" name="language" id="create-language">
<option>Preferred Language</option>
<option></option>
</select>
</div>
<div class="uk-margin">
<input class="uk-input" type="text" placeholder="Budget" name="budget">
</div>
<input type="submit" value="save" class="uk-button uk-button-primary">
</form>
</div>
</li>
</ul>
</div>
<div class="center_profile top_margin center_text" id="company-div" hidden>
<div class="uk-margin">
<ul uk-accordion>
<!-- This accordion opens the already saved company info -->
<li class="uk-open">
<h3 class="uk-accordion-title">Company Info </h3>
<div class="uk-accordion-content">
<div>
<!-- This is the profile information that is already saved and should be displayed -->
<form action="/company/edit" method="post" id="company-edit-form">
<table class="profile_table">
<tr><td class="text_right_align">Name</td><td id="company-name" class="text_left_align"><input class="uk-input no_field" type="text" disabled name="name"></td></tr>
<tr>
<td class="text_right_align">Country</td>
<td id="company-country" class="text_left_align">
<select class="uk-select no_field" name="country" disabled>
<option value="0"></option>
<option></option>
</select>
</td>
</tr>
<tr>
<td class="text_right_align">Industry</td>
<td id="company-industry" class="text_left_align">
<select class="uk-select no_field" name="industry" disabled>
<option value="0"></option>
<option></option>
</select>
</td>
</tr>
<tr>
<td class="text_right_align">Company Size</td>
<td id="company-size" class="text_left_align">
<select class="uk-select no_field" name="size" disabled>
<option value="0"></option>
<option></option>
</select>
</td>
</tr>
<tr><td class="text_right_align">Security Employees</td><td id="company-securityEmps" class="text_left_align"><input class="uk-input no_field" type="text" disabled name="securityEmps"></td></tr>
<tr>
<td class="text_right_align">Preferred Language</td>
<td id="company-language" class="text_left_align">
<select class="uk-select no_field" name="language" disabled>
<option value="0"></option>
<option></option>
</select>
</td>
</tr>
<tr><td class="text_right_align">Budget</td><td id="company-budget" class="text_left_align"><input class="uk-input no_field" type="text" disabled name="Budget"></td></tr>
</table>
<input type="submit" value="save" class="uk-button uk-button-primary uk-button-small b20width" hidden>
</form>
<button class="uk-button uk-button-primary uk-button-small b20width" id="company-edit-btn">Edit</button>
</div>
</div>
</li>
</ul>
</div>
</div>
<!-- give parent div of create form and company info display different IDs so that Abdalah can display -->
</body>
</html>