Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 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}'></span>-->
  26. <!--<span th:text='${boss.lastName}'></span>-->
  27. <span th:text='|${boss.firstName} ${boss.lastName}|'></span>
  28. </b>
  29. </p>
  30. <img th:src="${boss.photoUrl}" class="empPhoto" />
  31.  
  32. <h1>Pracownicy firmy</h1>
  33.  
  34. <table class="table table-striped">
  35. <tr>
  36. <th>Lp</th>
  37. <th>Imię i nazwisko</th>
  38. <th>Stanowisko</th>
  39. <th>Wynagrodzenie</th>
  40. <th>Data zatrudnienia</th>
  41. <th>Data zwolnienia</th>
  42. <th>Umiejętności</th>
  43. <th>Uwagi</th>
  44. <th>Zdjęcie</th>
  45. </tr>
  46. <tr th:each="employee,iterStat : ${employees} ">
  47. <td></td>
  48. <td th:text='|${employee.firstName} ${employee.lastName}|'></td>
  49. <td th:text='${employee.jobTitle}'></td>
  50. <td th:text='${#numbers.formatDecimal(employee.salary, 3,"WHITESPACE",2,"POINT")}'></td>
  51. <td th:text='${#dates.format(employee.dateOfEmployment, "dd.MM.yyyy")}'></td>
  52. <td>
  53. <span th:if="${employee.dateOfTermination} != null"
  54. th:text='${#dates.format(employee.dateOfTermination, "dd.MM.yyyy")}'
  55. th:class="fired"></span>
  56. <span th:if="${employee.dateOfTermination} == null"
  57. th:text="'Wciąż pracuje'"></span>
  58. </td>
  59. <td>
  60.  
  61. </td>
  62. <td>
  63.  
  64. </td>
  65. <td>
  66. <img
  67.  
  68. th:src="@{${employee.photoUrl}}"
  69. th:alt-title="#{logo}"
  70. th:class="empPhoto"/>
  71. </td>
  72. </tr>
  73. </table>
  74. </div>
  75. </body>
  76. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement