Repository navigation
Expand file tree
/
Copy pathclasses.html
More file actions
76 lines (56 loc) · 1.97 KB
/
Copy pathclasses.html
File metadata and controls
76 lines (56 loc) · 1.97 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Classes Management</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Classes Management</h1>
<p><a href="index.html">Back to index</a></p>
<hr>
<h2>Add class</h2>
<form id="id_form_create_new_class" action="http://localhost:8080/classes" method="post">
<label for="code">Class Code</label>
<input type="text" name="code" id="code" required>
<br>
<label for="title">Class Title</label>
<input type="text" name="title" id="title">
<br>
<label for="description">Class Description</label>
<input type="text" name="description" id="description">
<br>
<label for="maxStudents">Max students in class</label>
<input type="number" name="maxStudents" id="maxStudents">
<br>
<button type="submit">Create new class</button>
</form>
<div id="create_new_class">
Information about the success/failure of creating a new class will be displayed here...
</div>
<hr>
<h2>Show class details</h2>
<div id="show_class_details">
The details for the class returned from the API call will be shown here...
</div>
<hr>
<h2>Update class details</h2>
<div id="update_class_details">
The form to update the class will be shown here...
</div>
<hr>
<h2>Delete class</h2>
<div id="delete_class">
Information about the success/failure of deleting a class will be displayed here...
</div>
<hr>
<h2>Get all classes</h2>
<button onclick="getAndDisplayAllClasses();">Get and display all classes</button>
<div id="list_of_classes">
The classes returned from the API call will be shown here...
</div>
<script src="classes.js"></script>
</body>
</html>