PIbd-22_Puchkina_Internet_P.../lab4-5/bin/main/templates/subscription-edit.html

29 lines
1.2 KiB
HTML
Raw Normal View History

2024-06-04 18:41:42 +04:00
<!DOCTYPE html>
<html lang="ru" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<head>
<title>Редакторовать списки рассылки</title>
</head>
<body>
<main layout:fragment="content">
<form action="#" th:action="@{/admin/subscription/edit/{id}(id=${subscription.id})}" th:object="${subscription}"
method="post">
<div class="mb-3">
<label for="id" class="form-label">ID</label>
<input type="text" th:value="*{id}" id="id" class="form-control" readonly disabled>
</div>
<div class="mb-3">
<label for="name" class="form-label">Тип заказа</label>
<input type="text" th:field="*{name}" id="name" class="form-control">
<div th:if="${#fields.hasErrors('name')}" th:errors="*{name}" class="invalid-feedback"></div>
</div>
<div class="mb-3 d-flex flex-row">
2024-06-04 23:38:20 +04:00
<button class="btn btn-secondary me-2 button-fixed-width" type="submit">Сохранить</button>
2024-06-04 18:41:42 +04:00
<a class="btn btn-secondary button-fixed-width" href="/admin/subscription">Отмена</a>
</div>
</form>
</main>
</body>
</html>