<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Employees</title>
<style type="text/css">
table {
border-collapse: collapse;
}

th, td {
	border: 1px solid #444444;
	padding: 4px;
}
</style>
</head>
<body>

<table>
<tr>
<th>Imię</th><th>Nazwisko</th><th>Stanowisko</th><th>Pensja</th><th>Departament</th><th>Miasto</th>
</tr>

<tr th:each="emp : ${emps}">
	<td th:text="${emp.firstName}">firstName</td>
	<td th:text="${emp.lastName}">lastName</td>
	<td th:text="${emp.job.jobTitle}">jobTitle</td>
	<td th:text="${emp.salary}">salary</td>
	<td th:text="${emp.department.departmentName}" th:if="${emp.department != null}">departmentName</td>
	<td th:text="${emp.department.location.city}" th:if="${emp.department != null}">city</td>
</tr>
</table>
<p><a th:href="@{/}">wróć do spisu treści</a></p>
</body>
</html>
