-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (100 loc) · 3.18 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
<!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>Grades</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container text-center">
<div id="studentsContainer">
<h1>Catalog</h1>
<form onsubmit="return false">
<input
class="input"
id="inputName"
type="text"
pattern="[\p{L} -]{3,}"
placeholder="Nume și prenume elev"
/>
<button class="greenBtn" id="addStudent" type="submit">
<i class="fa-solid fa-plus mr"></i>Adaugă elev
</button>
</form>
<div class="my-20">
<button class="btn sortUp">
Sortare elevi<i class="fas fa-arrow-up sortUp ml"></i>
</button>
<button class="btn sortDown">
Sortare elevi<i class="fas fa-arrow-down sortDown ml"></i>
</button>
</div>
<table class="table w-90">
<thead>
<tr>
<th>ID</th>
<th>Nume și prenume</th>
<th>Medie</th>
<th>Note</th>
<th>Șterge</th>
</tr>
</thead>
<tbody id="studentsTable"></tbody>
</table>
</div>
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<div class="gradesContainer flex-center">
<div class="mx-auto">
<p class="studentName my-20"></p>
<div class="my-20">
<span>Media: </span><span class="avg my-20"></span>
</div>
<form class="my-20" onsubmit="return false">
<input
class="input w-100px ml"
id="inputGrade"
type="number"
min="0"
max="10"
placeholder="Nota"
/>
<button class="greenBtn" id="addGrade" type="submit">
<i class="fa-solid fa-plus mr"></i>Adaugă notă
</button>
</form>
<div class="my-20">
<button class="btn sortGradesUp">
Sortare note<i class="fas fa-arrow-up sortGradesUp ml"></i>
</button>
<button class="btn sortGradesDown">
Sortare note<i
class="fas fa-arrow-down sortGradesDown ml"
></i>
</button>
</div>
</div>
<table class="table w-fc">
<thead>
<tr>
<th>Note</th>
<th>Șterge</th>
</tr>
</thead>
<tbody id="gradesTable"></tbody>
</table>
</div>
</div>
</div>
</div>
<p class="confirm largeFont"></p>
<script src="script.js"></script>
</body>
</html>