Option with Vet

This commit is contained in:
snackk 2018-10-24 22:50:48 +01:00
parent 0ecde8f3ea
commit 7602727cf4

View file

@ -13,8 +13,11 @@
placeholder="YYYY-MM-DD" title="Enter a date in this format: YYYY-MM-DD"
pattern="(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))"/>
<input th:case="'datetime'" class="form-control" type="text" th:field="*{__${name}__}"
placeholder="YYYY-MM-DD HH:MM" title="Enter a date in this format: YYYY-MM-DD HH:MM"
/>
placeholder="YYYY-MM-DD HH:MM" title="Enter a date in this format: YYYY-MM-DD HH:MM"/>
<select th:case="'vet'" class="form-control" th:field="*{__${name}__}">
<option value="null" th:text="Select: "></option>
<option th:each="vet : ${vets}" th:value="${vet}" th:text="${vet.getFirstName() + ' ' + vet.getLastName()}"></option>
</select>
</div>
<span th:if="${valid}"
class="glyphicon glyphicon-ok form-control-feedback"