Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <title>Spring i Thymeleaf: lista pracowników</title>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7.  
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
  9. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" />
  10.  
  11. <style>
  12. img.empPhoto {
  13. width: 300px;
  14. }
  15. .fired {
  16. color: firebrick;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div class="container-fluid">
  22. <h1>Pan Prezes</h1>
  23. <p>
  24. <b>
  25. <span th:text='|${boss.firstName} ${boss.lastName}|'></span>
  26. </b>
  27. </p>
  28. <img th:src="${boss.photoUrl}" class="empPhoto" />
  29.  
  30. <h1>Pracownicy firmy</h1>
  31.  
  32. <table class="table table-striped">
  33. <tr>
  34. <th>Lp</th>
  35. <th>Imię i nazwisko</th>
  36. <th>Stanowisko</th>
  37. <th>Pensja</th>
  38. <th>Data zatrudnienia</th>
  39. <th>Data zwolnienia</th>
  40. <th>Umiejętności</th>
  41. <th>Uwagi</th>
  42. <th>Zdjęcie</th>
  43. </tr>
  44. <tr th:each="employee,iterStat : ${employees}">
  45. <td>
  46. <span th:text='${iterStat.count}'></span>
  47. </td>
  48. <td>
  49. <span th:text='|${employee.firstName} ${employee.lastName}|'></span>
  50. </td>
  51. <td>
  52. <span th:text='${employee.jobTitle}'></span>
  53. </td>
  54. <td>
  55. <span th:text='${employee.salary}'></span>
  56. </td>
  57. <td>
  58. <span th:text="${#dates.format(employee.dateOfEmployment,'dd MM yyyy')}"></span>
  59. </td>
  60. <td>
  61. <span th:if="${employee.dateOfTermination} != null"><span th:text="${#dates.format(employee.dateOfEmployment,'dd MM yyyy')}"></span></span>
  62. <span th:if="${employee.dateOfTermination} == null">wciąż pracuje</span>
  63. </td>
  64. <td>
  65. <p th:each="skill,iterStat : ${employee.skills}">
  66. <span th:text='|${skill.name} (${skill.level})|'></span>
  67. <span th:if="${!iterStat.last}">,</span>
  68. </p>
  69. </td>
  70. <td>
  71.  
  72. </td>
  73. <td></td>
  74. </tr>
  75. </table>
  76. </div>
  77. </body>
  78. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement