esoe
7 months ago
6 changed files with 219 additions and 158 deletions
@ -0,0 +1,49 @@ |
|||||||
|
<!DOCTYPE HTML> |
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" |
||||||
|
xmlns:th="http://www.thymeleaf.org"> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title>Teacher</title> |
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2/webcomponents-loader.min.js"></script> |
||||||
|
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<header> |
||||||
|
edit : teacher |
||||||
|
</header> |
||||||
|
<main> |
||||||
|
<h2>Добавление преподавателя:</h2> |
||||||
|
<form th:action="@{/teacher/add}" method="post" th:object="${newTeacher}"> |
||||||
|
<div> |
||||||
|
<label>id: </label> |
||||||
|
<input type="text" th:field="${newTeacher.id}" placeholder="" readonly /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Фамилия: </label> |
||||||
|
<input type="text" th:field="${newTeacher.first_name}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Имя: </label> |
||||||
|
<input type="text" th:field="${newTeacher.second_name}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Отчество: </label> |
||||||
|
<input type="text" th:field="${newTeacher.last_name}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Табельный номер</label> |
||||||
|
<input type="text" th:field="${newTeacher.employee_id}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>СНИЛС</label> |
||||||
|
<input type="text" th:field="${newTeacher.snils}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<br> |
||||||
|
<input type="submit" value="СОХРАНИТЬ И ВЕРНУТЬСЯ"/> |
||||||
|
</form> |
||||||
|
<br> |
||||||
|
<form th:action="@{/teachers}" th:method="get"> |
||||||
|
<input type="submit" value="ВЕРНУТЬСЯ"/> |
||||||
|
</form> |
||||||
|
</main> |
||||||
|
</body> |
@ -0,0 +1,49 @@ |
|||||||
|
<!DOCTYPE HTML> |
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" |
||||||
|
xmlns:th="http://www.thymeleaf.org"> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title>Teacher</title> |
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2/webcomponents-loader.min.js"></script> |
||||||
|
<script type="module" src="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js"></script> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<header> |
||||||
|
edit : teacher |
||||||
|
</header> |
||||||
|
<main> |
||||||
|
<h2>Добавление преподавателя:</h2> |
||||||
|
<form th:action="@{/teacher/add}" method="post" th:object="${teacher}"> |
||||||
|
<div> |
||||||
|
<label>id: </label> |
||||||
|
<input type="text" th:field="${teacher.id}" placeholder="" readonly /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Фамилия: </label> |
||||||
|
<input type="text" th:field="${teacher.first_name}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Имя: </label> |
||||||
|
<input type="text" th:field="${teacher.second_name}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Отчество: </label> |
||||||
|
<input type="text" th:field="${teacher.last_name}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>Табельный номер</label> |
||||||
|
<input type="text" th:field="${teacher.employee_id}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<label>СНИЛС</label> |
||||||
|
<input type="text" th:field="${teacher.snils}" placeholder="" /> |
||||||
|
</div> |
||||||
|
<br> |
||||||
|
<input type="submit" value="СОХРАНИТЬ И ВЕРНУТЬСЯ"/> |
||||||
|
</form> |
||||||
|
<br> |
||||||
|
<form th:action="@{/teachers}" th:method="get"> |
||||||
|
<input type="submit" value="ВЕРНУТЬСЯ"/> |
||||||
|
</form> |
||||||
|
</main> |
||||||
|
</body> |
Loading…
Reference in new issue