-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreatestudent.html
More file actions
115 lines (95 loc) · 2.54 KB
/
createstudent.html
File metadata and controls
115 lines (95 loc) · 2.54 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
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
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Student Registration</title>
<style>
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: #f4f6f8;
}
/* NAVBAR */
.navbar {
background-color: #2c3e50;
color: white;
padding: 15px 25px;
font-size: 22px;
font-weight: bold;
display: flex;
align-items: center;
}
.nav-btn {
margin-left: auto;
color: white;
text-decoration: none;
background-color: #1abc9c;
padding: 8px 14px;
border-radius: 4px;
font-size: 18px;
}
.nav-btn:hover {
background-color: #16a085;
}
/* FORM CONTAINER */
.container {
background-color: white;
width: 500px;
margin: 40px auto;
padding: 25px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
label {
font-weight: bold;
display: block;
margin-bottom: 6px;
}
input {
width: 96%;
padding: 8px;
margin-bottom: 15px;
border-radius: 4px;
border: 1px solid #ccc;
}
button {
width: 100%;
padding: 10px;
background-color: #2c3e50;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
}
button:hover {
background-color: #1a252f;
}
</style>
</head>
<body>
<!-- NAVBAR -->
<div class="navbar">
Student Management System
<a th:href="@{/students}" class="nav-btn">Home</a>
</div>
<!-- FORM -->
<div class="container">
<h2>Student Registration Form</h2>
<form th:action="@{/students}" th:object="${student}" method="post">
<label>Student First Name</label>
<input type="text" name="firstname" placeholder="Enter First Name" required="required">
<label>Student Last Name</label>
<input type="text" name="lastname" placeholder="Enter Last Name" required="required">
<label>Student Email</label>
<input type="text" name="email" placeholder="Enter Email" required="required">
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>