Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section id="content">
- <header>
- <h2></h2>
- </header>
- <form method="post" action="/chiefChangeUserDataForm" th:object="${changeDataForm}">
- <table>
- <tr>
- <td><h3><label th:text="#{register.prename}" for="prename">Vorname</label></h3></td>
- <td><input id="prename" th:field="*{prename}" th:errorclass="fieldError" type="text" name="prename" /></td>
- </tr>
- <tr><td><p th:if="${#fields.hasErrors('prename')}" th:errors="*{prename}">Das Feld darf nicht leer sein.</p></td></tr>
- <tr>
- <td><h3><label th:text="#{register.name}" for="name">Nachname</label></h3></td>
- <td><input id="name" th:field="*{name}" th:errorclass="fieldError" type="text" name="name" /></td>
- </tr>
- <tr><td><p th:if="${#fields.hasErrors('name')}" th:errors="*{name}">Das Feld darf nicht leer sein.</p></td></tr>
- <tr>
- <td><h3><label th:text="#{register.age}" for="age">Alter</label></h3></td>
- <td><input id="age" th:field="*{age}" th:errorclass="fieldError" type="text" name="age" value="" /></td>
- </tr>
- <tr><td><p th:if="${#fields.hasErrors('age')}" th:errors="*{age}">Das Feld darf nicht leer sein.</p></td></tr>
- <tr>
- <td><h3><label th:text="#{register.city}" for="city">Wohnort</label></h3></td>
- <td><input id="city" th:field="*{city}" th:errorclass="fieldError" type="text" name="city" /></td>
- </tr>
- <tr><td><p th:if="${#fields.hasErrors('city')}" th:errors="*{city}">Das Feld darf nicht leer sein.</p></td></tr>
- <tr>
- <td><h3><label th:text="#{register.zip}" for="zip">Postleitzahl</label></h3></td>
- <td><input id="zip" th:field="*{zip}" th:errorclass="fieldError" type="text" name="zip" /></td>
- </tr>
- <tr><td><p th:if="${#fields.hasErrors('city')}" th:errors="*{city}">Das Feld darf nicht leer sein.</p></td></tr>
- <tr>
- <td><h3><label th:text="#{register.street}" for="street">Straße</label></h3></td>
- <td><input id="street" th:field="*{street}" th:errorclass="fieldError" type="text" name="street" /></td>
- </tr>
- <tr><td><p th:if="${#fields.hasErrors('street')}" th:errors="*{street}">Das Feld darf nicht leer sein.</p></td></tr>
- <tr>
- <td><h3><label th:text="#{register.nickname}" for="nickname">Benutzername</label></h3></td>
- <td><input id="nickname" th:field="*{nickname}" th:errorclass="fieldError" type="text" name="nickname" /></td>
- </tr>
- <tr><td><p th:if="${#fields.hasErrors('nickname')}" th:errors="*{nickname}">Das Feld darf nicht leer sein.</p></td></tr>
- <tr>
- <td></td>
- <td><input type="submit" th:value="#{register.submit}" value="Registrieren" /></td>
- </tr>
- </table>
- </form>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement