mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 17:37:27 +00:00
- Added test to ensure there are no string literals - Added test to ensure a string is translated in all language files - Added missing strings in properties - Internationalized remaining strings flagged by the tests Signed-off-by: anizmo <potdar.anuj@gmail.com>
29 lines
1 KiB
HTML
29 lines
1 KiB
HTML
<html xmlns:th="https://www.thymeleaf.org">
|
|
<body>
|
|
<form>
|
|
<th:block th:fragment="select (label, name, items)">
|
|
<div th:with="valid=${!#fields.hasErrors(name)}"
|
|
th:class="${'form-group' + (valid ? '' : ' has-error')}"
|
|
class="form-group">
|
|
<label th:for="${name}" class="col-sm-2 control-label" th:text="${label}">Label</label>
|
|
|
|
<div class="col-sm-10">
|
|
<select th:field="*{__${name}__}">
|
|
<option th:each="item : ${items}" th:value="${item}"
|
|
th:text="${item}">dog</option>
|
|
</select>
|
|
<span th:if="${valid}"
|
|
class="fa fa-ok form-control-feedback"
|
|
aria-hidden="true"></span>
|
|
<th:block th:if="${!valid}">
|
|
<span
|
|
class="fa fa-remove form-control-feedback"
|
|
aria-hidden="true"></span>
|
|
<span class="help-inline" th:errors="*{__${name}__}" th:text="#{error}">Error</span>
|
|
</th:block>
|
|
</div>
|
|
</div>
|
|
</th:block>
|
|
</form>
|
|
</body>
|
|
</html>
|