-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.html
138 lines (135 loc) · 7.29 KB
/
edit.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>
<head>
<meta charset="utf-8"/>
<title>Netwerk</title>
<style>
input[type=submit]{
background-color: #ffeead;
border: none;
color: black;
cursor: pointer;
}
.candidate_profile, .job_profile {
display:inline-block;
text-align: center;
border-radius: 25px;
background: #cccccc;
padding: 20px;
width: auto;
height: auto;
position: relative;
margin-left: 40%;
}
.info{
display:flex;
}
.suggestions{
display:inline-block;
text-align: center;
border-radius: 25px;
background: #ccff33;
padding: 20px;
width: 48%;
height: auto;
position: relative;
}
.skills{
display:inline-block;
text-align: center;
border-radius: 25px;
background: #ccfff5;
padding: 20px;
height: auto;
position: relative;
flex:1;
}
</style>
</head>
<body>
<div class = "edit_candidate" data-ng-show="profile_type == 'candidate'">
<div class="current_profile">
<div class="candidate_profile" data-ng-show ="profile_type == 'candidate'">
<p>
<b>Name:</b> {{current_profile.first_name}}
{{current_profile.last_name}}<br>
<b>Education:</b> {{current_profile.education}}<br>
<b>Major:</b> {{current_profile.major}}<br>
<b>GPA:</b> {{current_profile.gpa}}<br>
<b>Most recent job:</b> {{current_profile.most_recent_job}}<br>
<b>Current location:</b> {{current_profile.current_location}}<br>
<b>Desired location:</b> {{current_profile.location}}<br>
<b>Desired salary:</b> {{current_profile.salary | currency}}<br>
<b>Skills: </b><br>
<b>Front end?</b> {{current_profile.skills1}}<br>
<b>Back end?</b> {{current_profile.skills2}} <br>
<b>Data science?</b> {{current_profile.skills3}} <br>
<b>Fun fact:</b> {{current_profile.fun_fact}}
</p>
</div>
</div>
<div class = "info">
<div class = "suggestions">
<p>Job suggestion (from GitHub Jobs) </p>
{{suggestion}}
</div>
<div class = "skills">
<p data-ng-show = "headerBool == 1">Skills development resources </p>
<p data-ng-show = "skills1Bool == 1">Front end <a href = "https://www.w3schools.com/html/default.asp">w3schools HTML</a></p>
<p data-ng-show = "skills2Bool == 1">Back end <a href = "https://www.w3schools.com/php/default.asp">w3schools PHP</a> </p>
<p data-ng-show = "skills3Bool == 1">Data science <a href = "https://www.w3schools.com/sql/default.asp">w3schools MySQL</a></p>
</div>
</div>
<p data-ng-show="logBool == 1">Edit Profile</p>
<form method = "post" id = "edit_candidate" >
Password: <input type="password" id = "edit_p" name="edit_p" data-ng-model = "candidate_info.edit_p" /><br>
First name: <input type="text" id = "edit_first" data-ng-model = "candidate_info.edit_first" /><br>
Last name: <input type="text" id = "edit_last" data-ng-model = "candidate_info.edit_last" /><br>
Current location: <input type="text" id = "edit_cloc" data-ng-model = "candidate_info.edit_cloc" /><br>
Desired location: <input type="text" id = "edit_dloc" data-ng-model = "candidate_info.edit_dloc" /><br>
Most recent job: <input type="text" id = "edit_job" data-ng-model = "candidate_info.edit_job" /><br>
Education: <input type="text" id = "edit_edu" data-ng-model = "candidate_info.edit_edu" /><br>
Major <input type="text" id = "edit_major" data-ng-model = "candidate_info.edit_major" /><br>
GPA: <input type="number" step = "0.1" min = "0.0" max = "4.0" id = "edit_gpa" data-ng-model = "candidate_info.edit_gpa" /><br>
Skills:
<input type="checkbox" id = "edit_skills1" name = edit_skills1 data-ng-model = "candidate_info.edit_skills1" data-ng-init="candidate_info.edit_skills1=false" />Front end
<input type="checkbox" id = "edit_skills2" name = "edit_skills2" data-ng-model = "candidate_info.edit_skills2" data-ng-init="candidate_info.edit_skills2=false" />Back end
<input type="checkbox" id = "edit_skills3" name = "edit_skills3" data-ng-model = "candidate_info.edit_skills3" data-ng-init="candidate_info.edit_skills3=false"/>Data science<br>
Salary: <input type="number" min = "0" id = "edit_sal" data-ng-model = "candidate_info.edit_sal" /><br>
Fun fact: <input type="text" id = "edit_fun" data-ng-model = "candidate_info.edit_fun"/><br>
<input type = "submit" data-ng-click = "editCandidate(candidate_info)" />
</form>
</div>
<div class = "edit_job" data-ng-show="profile_type == 'job'">
<div class = "job_profile" data-ng-show ="profile_type == 'job'">
<p>
<b>Company name:</b> {{current_profile.company_name}}<br>
<b>Title:</b> {{current_profile.title}}<br>
<b>Industry:</b> {{current_profile.industry}}<br>
<b>Location:</b> {{current_profile.location}}<br>
<b>Salary:</b> {{current_profile.salary | currency}}<br>
<b>Skills:</b> <br>
<b>Front end?</b> {{current_profile.skills1}}<br>
<b>Back end?</b> {{current_profile.skills2}} <br>
<b>Data science?</b> {{current_profile.skills3}} <br>
<b>Description: </b>{{current_profile.description}}
</p>
</div>
<p data-ng-show="logBool == 1">Edit Profile</p>
<form method = "post" id = "edit">
Password: <input type="password" id = "edit_company_p" name="edit_company_p" data-ng-model = "job_info.edit_company_p" /><br>
Company name: <input type="text" id = "edit_company_name" name="edit_company_name" data-ng-model = "job_info.edit_company_name" /><br>
Location: <input type="text" id = "edit_company_loc" name="edit_company_loc" data-ng-model = "job_info.edit_company_loc" /><br>
Title: <input type="text" id = "edit_title" name="edit_title" data-ng-model = "job_info.edit_title"/><br>
Industry: <input type="text" id = "edit_industry" name="edit_industry" data-ng-model = "job_info.edit_industry" /><br>
Skills:
<input type="checkbox" id = "edit_company_skills1" name = "edit_company_skills1" value = "frontend" data-ng-model = "job_info.edit_company_skills1" data-ng-init="job_info.edit_company_skills1=false"/>Front end
<input type="checkbox" id = "edit_company_skills2" name = "edit_company_skills2" value = "backend" data-ng-model = "job_info.edit_company_skills2" data-ng-init="job_info.edit_company_skills2=false"/>Back end
<input type="checkbox" id = "edit_company_skills3" name = "edit_company_skills3" value = "data_science" data-ng-model = "job_info.edit_company_skills3" data-ng-init="job_info.edit_company_skills3=false"/>Data science<br>
Salary: <input type="text" id = "edit_company_sal" name="edit_company_sal" data-ng-model = "job_info.edit_company_sal" /><br>
Description: <input type="text" id = "edit_desc" name="edit_desc" data-ng-model = "job_info.edit_desc" /> <br>
<input type = "submit" data-ng-click = "editJob(job_info)" />
</form>
</div>
</body>
</html>