Files
LABS_EDUCATION_2/lr7/src/main/resources/templates/add-group-form.html
T
2026-10-08 10:55:09 +05:00

37 lines
1.0 KiB
HTML

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title>Add Group</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous">
</head>
<body>
<div class="container">
<h3>Add New Study Group</h3>
<hr/>
<form th:action="@{/saveGroup}" th:object="${group}" method="POST">
<input type="text" th:field="*{name}" class="form-control col-4 mb-4" placeholder="Enter Group Name"/>
<input type="text" th:field="*{faculty}" class="form-control col-4 mb-4" placeholder="Enter Faculty"/>
<input type="text" th:field="*{course}" class="form-control col-4 mb-4" placeholder="Enter Course"/>
<button type="submit" class="btn btn-primary col-2">Save</button>
<input type="hidden" th:field="*{id}"/>
</form>
<hr/>
<a th:href="@{/groupList}">Back to list</a>
</div>
</body>
</html>