-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
197 lines (177 loc) · 8.4 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!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" />
<title>School Registration Form</title>
<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<!-- Schools Info -->
<div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-xl ">
<div class="modal-content p-5">
<div class="modal-header">
<h2 class="text-center">School Form</h2>
</div>
<div class="modal-body">
<form class="row">
<div class="col">
<div class="mb-3">
<label for="school-name" class="form-label">Enter School Name</label>
<input type="text" class="form-control" id="school-name" required>
</div>
<div class="mb-3">
<label for="class-num-entry" class="form-label">School Type</label>
<select class="form-select" aria-label="School Type" id="class-num-entry" required>
<option selected disabled >Select a type</option>
<option value="Primary School">Primary School</option>
<option value="Secondary School">Secondary School</option>
<option value="High School">High School</option>
<option value="University">University</option>
</select>
</div>
</div>
<div class="col">
<p class="mb-2">School Grades</p>
<div class="mb-3 input-group">
<!-- <label for="class-grade" class="form-label">How many grade</label><br> -->
<select class="form-select me-2" aria-label="Class Grade" id="class-grade" required>
<option selected disabled>Select start grade</option>
<option value=1>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
<option value=4>Four</option>
<option value=5>Five</option>
<option value=6>Six</option>
<option value=7>Seven</option>
<option value=8>Eight</option>
<option value=9>Nine</option>
</select>
<!-- <label for="class-grade" class="form-label">School Grades</label><br> -->
<select class="form-select" aria-label="Class Grade" id="class-grade" required>
<option selected disabled>Select end grade</option>
<option value=1>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
<option value=4>Four</option>
<option value=5>Five</option>
<option value=6>Six</option>
<option value=7>Seven</option>
<option value=8>Eight</option>
<option value=9>Nine</option>
<option value=10>Ten</option>
<option value=11>Eleven</option>
<option value=12>Twelve</option>
</select>
</div>
<div class="mb-3">
<label for="class-branch" class="form-label">How many branch</label>
<select class="form-select" aria-label="Class Branch" id="class-branch" required>
<option selected disabled>Select a branch</option>
<option value=1>A</option>
<option value=2>A-B</option>
<option value=3>A-C</option>
<option value=4>A-D</option>
<option value=5>A-E</option>
<option value=6>A-F</option>
<option value=7>A-G</option>
<option value=8>A-H</option>
<option value=9>A-I</option>
<option value=10>A-J</option>
<option value=11>A-K</option>
</select>
</div>
</div>
</div>
<div class="modal-footer">
<button type="reset" class="btn btn-lg btn-outline-secondary text-end rounded-pill fw-bold">Reset</button>
<button type="submit" class="btn btn-lg btn-outline-primary text-end rounded-pill float-end fw-bold">Submit</button>
</div>
</div>
</form>
</div>
</div>
<!-- Students Info -->
<main class="container-lg bg-primary text-light">
<header class="bg-gradient-primary shadow text-capitalize">
<h1 class="text-center text-dark p-3 display-4 fw-bold" style="text-shadow: black 1px 2px 3px">School Name</h1>
</header>
<form class="row ">
<div class="col">
<div class="mb-3">
<label for="class-num" class="form-label">Select Class Number</label>
<select class="form-select" aria-label="Class Number" id="class-num">
<option selected disabled>Open this select menu</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
</select></div>
<div class="mb-3">
<label for="class-name" class="form-label">Select Class Name</label>
<select class="form-select" aria-label="Class Name" id="class-name">
</select></div>
<div class="mb-3">
<label for="student-no" class="form-label">Enter Student No</label>
<input type="number" class="form-control" id="student-no" aria-describedby="studentNo">
<div id="studentNo" class="form-text text-warning">If you enter an existing student number, you asked for update.</div>
</div>
</div>
<div class="col">
<div class="mb-3">
<label for="fullname" class="form-label">Enter Student Name</label>
<input type="text" class="form-control" id="fullname">
</div>
<label class="form-label">Enter Student Grades</label>
<div class="input-group mb-3 ">
<input type="number" class="form-control grades me-1" placeholder="Result-1" aria-label="Result-1">
<input type="number" class="form-control grades me-1" placeholder="Result-2" aria-label="Result-2">
<input type="number" class="form-control grades" placeholder="Result-3" aria-label="Result-3">
</div>
<div class="btn-group gap-1 w-100 mb-2" role="group" aria-label="Search Buttons">
<button class="btn btn-lg btn-success rounded-pill w-25 shadow" id="search">Search</button>
<button id="reset" type="reset" class="btn btn-lg btn-secondary shadow rounded-pill w-25" >Reset</button>
<button class="btn btn-lg btn-success rounded-pill w-25 shadow" id="register" >New Student</button></div>
<div class="btn-group gap-1 w-100" role="group" aria-label="Data Buttons">
<button class="btn btn-lg btn-secondary rounded-pill w-25 shadow" id="delete-all" >Delete All</button>
<button class="btn btn-lg btn-success rounded-pill w-25 shadow" id="backup">Backup</button>
<button class="btn btn-lg btn-secondary rounded-pill w-25 shadow" id="restore">Restore</button>
</div>
</div>
</form>
<table class="table table-success table-striped">
<thead>
<tr>
<th scope="col">Class</th>
<th scope="col">Student No</th>
<th scope="col">Student Name</th>
<th scope="col">Grades</th>
</tr>
</thead>
<tbody>
</tbody>
<div id="alert-box"></div>
</table><br>
</main>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG"
crossorigin="anonymous"
></script>
<script src="./app.js"></script>
</body>
</html>