-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.html
78 lines (73 loc) · 5 KB
/
create.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Netwerk</title>
<style>
.create_header{
font-weight: bold;
}
input[type=submit]{
background-color: #ffcc5c;
border: none;
color: black;
cursor: pointer;
}
</style>
</head>
<body>
<div class = "create" data-ng-controller="createController">
<div class = "create_header">
Create profile
</div>
<form method = "post" id = "create">
Type:
<input type= "radio" data-ng-model="profile_type" name = "profile_type" value="candidate">Candidate
<input type= "radio" data-ng-model="profile_type" name = "profile_type" value="job">Job
</form>
<div data-ng-switch="profile_type">
<div data-ng-switch-when="candidate">
<form method = "post" id = "create_candidate">
New username: <input type="text" id = "create_u" data-ng-model = "candidate_info.create_u" /><br>
New password (at least 5 characters): <input type="password" id = "create_p" data-ng-model = "candidate_info.create_p" /><br>
First name: <input type="text" id = "create_first" data-ng-model = "candidate_info.create_first" /><br>
Last name: <input type="text" id = "create_last" data-ng-model = "candidate_info.create_last" /><br>
Current location: <input type="text" id = "create_cloc" data-ng-model = "candidate_info.create_cloc" /><br>
Desired location: <input type="text" id = "create_dloc" data-ng-model = "candidate_info.create_dloc" /><br>
Most recent job: <input type="text" id = "create_job" data-ng-model = "candidate_info.create_job" /><br>
Education: <input type="text" id = "create_edu" data-ng-model = "candidate_info.create_edu" /><br>
Major <input type="text" id = "create_major" data-ng-model = "candidate_info.create_major" /><br>
GPA: <input type="number" step = "0.1" min = "0.0" max = "4.0" id = "create_gpa" data-ng-model = "candidate_info.create_gpa" /><br>
Skills:
<input type="checkbox" id = "skills1" name = skills1 data-ng-model = "candidate_info.skills1" data-ng-init="candidate_info.skills1=false" />Front end
<input type="checkbox" id = "skills2" name = "skills2" data-ng-model = "candidate_info.skills2" data-ng-init="candidate_info.skills2=false" />Back end
<input type="checkbox" id = "skills3" name = "skills3" data-ng-model = "candidate_info.skills3" data-ng-init="candidate_info.skills3=false"/>Data science<br>
Salary: <input type="number" min = "0" id = "create_sal" data-ng-model = "candidate_info.create_sal" /><br>
Fun fact: <input type="text" id = "create_fun" data-ng-model = "candidate_info.create_fun"/><br>
<input type = "submit" data-ng-click = "createCandidate(candidate_info)" />
</form>
</div>
</div>
<div data-ng-switch="profile_type">
<div data-ng-switch-when="job">
<form method = "post" id = "create_j">
New username: <input type="text" id = "create_company_u" name="create_company_u" data-ng-model = "job_info.create_company_u" /><br>
New password: <input type="password" id = "create_company_p" name="create_company_p" data-ng-model = "job_info.create_company_p" /><br>
Company name: <input type="text" id = "create_company_name" name="create_company_name" data-ng-model = "job_info.create_company_name" /><br>
Location: <input type="text" id = "create_company_loc" name="create_company_loc" data-ng-model = "job_info.create_company_loc" /><br>
Title: <input type="text" id = "create_title" name="create_title" data-ng-model = "job_info.create_title"/><br>
Industry: <input type="text" id = "create_industry" name="create_industry" data-ng-model = "job_info.create_industry" /><br>
Skills:
<input type="checkbox" id = "company_skills1" name = "company_skills1" value = "frontend" data-ng-model = "job_info.company_skills1" data-ng-init="job_info.company_skills1=false"/>Front end
<input type="checkbox" id = "company_skills2" name = "company_skills2" value = "backend" data-ng-model = "job_info.company_skills2" data-ng-init="job_info.company_skills2=false"/>Back end
<input type="checkbox" id = "company_skills3" name = "company_skills3" value = "data_science" data-ng-model = "job_info.company_skills3" data-ng-init="job_info.company_skills3=false"/>Data science<br>
Salary: <input type="number" min = "0" id = "create_company_sal" name="create_company_sal" data-ng-model = "job_info.create_company_sal" /><br>
Description: <input type="text" id = "create_desc" name="create_desc" data-ng-model = "job_info.create_desc" /><br>
<!-- <input type="hidden" id="profile_type" value="job" /> -->
<input type = "submit" data-ng-click = "createJob(job_info)" />
</form>
</div>
</div>
</div>
</body>
</html>