Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1.  
  2. <html xmlns="http://www.w3.org/1999/xhtml"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <head>
  5. <title>contacts4</title>
  6. </head>
  7. <body>
  8. <div id="header" th:include="page :: header"></div>
  9. <div id="content">
  10. <form method="POST" th:object="${contact}">
  11. <table>
  12. <tr>
  13. <td>Imię:</td>
  14. <td><input type="text" th:field="*{firstName}"/></td>
  15. <td th:errors="*{firstName}"></td>
  16. </tr>
  17. <tr>
  18. <td>Nazwisko:</td>
  19. <td><input type="text" th:field="*{lastName}"/></td>
  20. <td th:errors="*{lastName}"></td>
  21. </tr>
  22. <tr>
  23. <td>E-mail:</td>
  24. <td><input type="text" th:field="*{email}"/></td>
  25. <td th:errors="*{email}"></td>
  26. </tr>
  27. <tr>
  28. <td>Telefon:</td>
  29. <td><input type="text" th:field="*{phone}"/></td>
  30. <td th:errors="*{phone}"></td>
  31. </tr>
  32. <tr>
  33. <td><input type="submit" value="Zapisz" /></td>
  34. </tr>
  35. </table>
  36. </form>
  37. <ul th:each="contact : ${contacts}">
  38. <li>
  39. <span th:text="${contact.firstName}">Imię</span>
  40. <span th:text="${contact.lastName}">nazwisko</span> :
  41. <span th:text="${contact.phone}">telefon</span>,
  42. <span th:text="${contact.email}">e-mail</span>
  43. </li>
  44. </ul>
  45. </div>
  46. <div id="footer" th:include="page :: footer"></div>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement