Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="ru">
- <head>
- <meta charset="utf-8">
- <title>index</title>
- </head>
- <body>
- <form>
- <b>Name</b>
- <select name="nameSortBy">
- <option value="asc">Asc</option>
- <option value="desc">Desc</option>
- </select>
- <select name="name">
- <option value=""/>
- <option th:each="person: ${persons}" th:value="${person.name}" th:text="${person.name}"/>
- </select>
- <br>
- <b>Age</b>
- <select name="ageSortBy">
- <option value="asc">Asc</option>
- <option value="desc">Desc</option>
- </select>
- <select name="age">
- <option value=""/>
- <option th:each="person: ${persons}" th:value="${person.age}" th:text="${person.age}"/>
- </select>
- <br>
- <button type="submit">Ok</button>
- </form>
- <br>
- <table border>
- <tr>
- <th>Name</th>
- <th>Age</th>
- </tr>
- <tr th:each="person: ${persons}">
- <td th:text="${person.name}" />
- <td th:text="${person.age}" />
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement