-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_job_ui.html
executable file
·150 lines (98 loc) · 4.17 KB
/
create_job_ui.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<title>Job Creation</title>
</head>
<body>
<!-- Main App-->
<div id="app" class="container-fluid ">
<div class="row mb-3"></div>
<div class="row">
<div class="col"></div>
<div class="col-8">
<div class="container-fluid py-2 text-center">
<h1>New Job Creation</h1>
</div>
<form>
<div class="row">
<div class="col-6 mb-3">
<label class="form-label">Job Role</label>
<input type="text" class="form-control" v-model="job_role">
</div>
<div class="col-6 mb-3">
<label class="form-label">Company</label>
<input type="text" class="form-control" v-model="job_company">
</div>
</div>
<div class="mb-3">
<label class="form-label">API Key</label>
<input type="text" class="form-control" v-model="api_key">
</div>
<div class="col mb-3">
<label class="form-label">Job Description</label>
<textarea class="form-control" rows="3" v-model="job_description"></textarea>
</div>
<span>
Job Skill
</span>
<div class="row">
<div class="col">
<input type="text" class="form-control" v-model="new_skill">
</div>
<div class="col-2 d-grid gap-2">
<button type="button" class="btn btn-primary" v-on:click="add_skill()">
Add Skill
</button>
</div>
</div>
<!-- <div class="row">
<div class="col"></div>
<div class="col-8"> -->
<table class="table mt-4 mb-5" style="text-align: center; table-layout: fixed;">
<thead>
<th colspan="2">Job Skills</th>
</thead>
<tbody>
<tr v-for="(item, i) in skills">
<td> {{ item }} </td>
<td>
<div class="">
<button type="button" class="btn btn-primary" v-on:click="delete_skill(i)">Delete
</button>
</div>
</td>
</tr>
</tbody>
</table>
<!-- </div>
<div class="col"></div>
</div> -->
<button type="button" class="btn btn-danger" v-on:click="submitForm">
Create Job
</button>
<div class="text-success" v-if="job_added">
Job has been successfully created! <br>
<br>
</div>
<div class="text-danger" v-if="add_job_error!=''">
There is a problem adding this job:<br>
{{ add_job_error }}
<br>
</div>
</form><!-- end-form -->
<!-- </div> -->
<!-- </div> -->
<!-- [Bottom] end-row -->
</div>
<div class="col"></div>
</div>
</div><!-- [Main App] end-container-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="create_job_ui.js"></script>
</body>
</html>