Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:th="http://www.thymeleaf.org">
- <head>
- <title>contacts4</title>
- </head>
- <body>
- <div id="header" th:include="page :: header"></div>
- <div id="content">
- <form method="POST" th:object="${contact}">
- <table>
- <tr>
- <td>Imię:</td>
- <td><input type="text" th:field="*{firstName}"/></td>
- <td th:errors="*{firstName}"></td>
- </tr>
- <tr>
- <td>Nazwisko:</td>
- <td><input type="text" th:field="*{lastName}"/></td>
- <td th:errors="*{lastName}"></td>
- </tr>
- <tr>
- <td>E-mail:</td>
- <td><input type="text" th:field="*{email}"/></td>
- <td th:errors="*{email}"></td>
- </tr>
- <tr>
- <td>Telefon:</td>
- <td><input type="text" th:field="*{phone}"/></td>
- <td th:errors="*{phone}"></td>
- </tr>
- <tr>
- <td><input type="submit" value="Zapisz" /></td>
- </tr>
- </table>
- </form>
- <ul th:each="contact : ${contacts}">
- <li>
- <span th:text="${contact.firstName}">Imię</span>
- <span th:text="${contact.lastName}">nazwisko</span> :
- <span th:text="${contact.phone}">telefon</span>,
- <span th:text="${contact.email}">e-mail</span>
- </li>
- </ul>
- </div>
- <div id="footer" th:include="page :: footer"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement