<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>employee list</title>
    <link rel="stylesheet" th:href="@{/static/css/index_work.css}">
</head>
<body>
<table>
  <tr>
      <th colspan="5">employee list</th>
  </tr>
  <tr>
      <th>id</th>
      <th>lastName</th>
      <th>email</th>
      <th>gender</th>
      <th>options(<a th:href="@{/to/add}">add</a> )</th>
  </tr>
  <tr th:each="employee : ${allEmployee}">
    <td th:text="${employee.id}"></td>
    <td th:text="${employee.lastName}"></td>
    <td th:text="${employee.email}"></td>
    <td th:text="${employee.gender}"></td>
    <td>
        <a href="">delete</a>
        <a th:href="@{'/employee/'+${employee.id}}">update</a>
    </td>
  </tr>
</table>
</body>
</html>