Skip to content
Snippets Groups Projects
index.html 694 B
<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<head>
<title>Good Thymes Virtual Grocery</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="test.css" />
</head>

<body>
	<p>
		Ahoj jak se máš <span class="red-text" th:text="${name}">Pepa</span>
	</p>

	<table>
		<tr>
			<th>Id</th>
			<th>Jmeno</th>
			<th>Vek</th>
		</tr>
		<tr th:each="person, iter :${persons}">
			<td th:text="${person.id}">Id</td>
			<td th:text="${person.name}">Jmeno</td>
			<td><form th:action="@{/edit/{id}(id=${person.id})}"
					action="/edit/1">
					<input type="submit" value="Edit" />
				</form></td>
		</tr>
	</table>
</body>

</html>