Advertisement
Amakesh

Untitled

Apr 2nd, 2022
1,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.87 KB | None | 0 0
  1. <form th:method = "POST" th:action="@{/validate_regon}" th:object="${numbersList}" modelAttribute="numbers">
  2.     <table>
  3.         <tr>
  4.             <td th:each="number, itemStat : *{numbersList9}">
  5.                 <input th:type="number" min="0" max="9" th:size="3" th:maxlength="1" th:field="*{numbersList9[__${itemStat.index}__]}" />
  6.                 <span th:each="err : ${#fields.errors('numbersList9[__${itemStat.index}__]')}" th:text="${err}"></span>
  7.             </td>
  8.             <td th:each="number, itemStat: *{numbersList14}">
  9.                 <input th:type="number" min="0" max="9" th:size="3" th:maxlength="1" th:field="*{numbersList14[__${itemStat.index}__]}" />
  10.                <span th:each="err : ${#fields.errors('numbersList14[__${itemStat.index}__]')}" th:text="${err}"></span>
  11.             </td>
  12.         </tr>
  13.     </table>
  14.     <button>Sprawdź</button>
  15. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement