-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
177 lines (167 loc) · 7.09 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personnel Registration Form - Multi-step Application</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Personnel Registration Form</h1>
<form id="myForm">
<section class="group-one" id="one">
<div class="form-group">
<div class="form-control">
<label for="name">
Name
<span style="color: red;">*</span>
</label>
<input type="text" id="name" name="name" placeholder="Enter your name" aria-required="true">
<span id="name-error" class="error-message" role="alert"></span>
</div>
<div class="form-control">
<label for="idNum">
ID number
<span style="color: red;">*</span>
</label>
<input type="number" id="idNum" name="idNum" placeholder="Enter your ID number"
aria-required="true">
<span id="id-error" class="error-message" role="alert"></span>
</div>
</div>
<div class="form-group">
<div class="form-control">
<label for="email">
Email
<span style="color: red;">*</span>
</label>
<input type="email" id="email" name="email" placeholder="Enter your email" aria-required="true">
<span id="email-error" class="error-message" role="alert"></span>
</div>
<div class="form-control">
<label for="birthdate">
Date of Birth
<span style="color: red;">*</span>
</label>
<input type="date" id="birthdate" name="birthdate" max="2006-10-01" min="1924-01-01"
aria-required="true">
<span id="bd-error" class="error-message" role="alert"></span>
<span id="error"></span>
</div>
</div>
</section>
<section class="group-two" id="two">
<div class="form-control">
<label for="document">
Upload CV/Resume
<span style="color: red;">*</span>
</label>
<input type="file" name="document" id="document" accept=".pdf,.doc,.docx" aria-required="true">
<span id="doc-error" class="error-message" role="alert"></span>
</div>
<div class="form-control">
<label for="department">
Department
<span style="color: red;">*</span>
</label>
<select id="department" name="department" aria-required="true">
<option value="">Select a department</option>
<option value="hr">Human Resources</option>
<option value="it">Information Technology</option>
<option value="finance">Finance</option>
<option value="marketing">Marketing</option>
</select>
<span id="dept-error" class="error-message" role="alert"></span>
</div>
</section>
<section class="group-three" id="three">
<div class="form-control">
<label for="skills">Skills (Optional)</label>
<textarea id="skills" name="skills" rows="4" placeholder="Enter your skills"></textarea>
</div>
<div class="form-control">
<input type="checkbox" name="terms" id="terms" aria-required="true">
<label for="terms">
I agree to the terms and conditions
<span style="color: red;">*</span>
</label>
<span id="terms-error" class="error-message" role="alert"></span>
</div>
</section>
<section class="group-four" id="four" aria-label="Form Summary">
<div class="summary-section">
<p>Name: </p>
<p id="name-val"></p>
<button class="edit-btn" id="name-edit">
<span>✎</span>
<span>Edit</span>
</button>
</div>
<div class="summary-section">
<p>ID Number: </p>
<p id="id-val"></p>
<button class="edit-btn" id="id-edit">
<span>✎</span>
<span>Edit</span>
</button>
</div>
<div class="summary-section">
<p>Email: </p>
<p id="email-val"></p>
<button class="edit-btn" id="email-edit">
<span>✎</span>
<span>Edit</span>
</button>
</div>
<div class="summary-section">
<p>Date of Birth: </p>
<p id="bd-val"></p>
<button class="edit-btn" id="bd-edit">
<span>✎</span>
<span>Edit</span>
</button>
</div>
<div class="summary-section">
<p>CV/Resume: </p>
<p id="cv-val"></p>
<button class="edit-btn" id="cv-edit">
<span>✎</span>
<span>Edit</span>
</button>
</div>
<div class="summary-section">
<p>Department: </p>
<p id="dept-val"></p>
<button class="edit-btn" id="dept-edit">
<span>✎</span>
<span>Edit</span>
</button>
</div>
<div class="summary-section">
<p>Skills: </p>
<p id="skills-val"></p>
<button class="edit-btn" id="skills-edit">
<span>✎</span>
<span>Edit</span>
</button>
</div>
<button id="btn" type="submit">Confirm and Submit</button>
</section>
<div class="arrows">
<button class="nav-group" id="navLeft" type="button" aria-label="Previous step">
<span class="arrow-left">←</span>
<span>Previous</span>
</button>
<span id="stepInfo" role="status" aria-live="polite"></span>
<button class="nav-group" id="navRight" type="button" aria-label="Next step">
<span>Next</span>
<span class="arrow-right">→</span>
</button>
</div>
</form>
<script src="script.js"></script>
</body>
</html>