<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<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>

<c:forEach var="emp" items="${emps}">
	<tr>
	<td>${emp.firstName}</td>
	<td>${emp.lastName}</td>
	<td>${emp.job.jobTitle}</td>
	<td>${emp.salary}</td>
	<td>${emp.department.departmentName}</td>
	<td>${emp.department.location.city}</td>
	</tr>
</c:forEach>
</table>
<p><a href="/">wróć do spisu treści</a></p>
</body>
</html>
