mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Option with Vet
This commit is contained in:
parent
0ecde8f3ea
commit
7602727cf4
1 changed files with 5 additions and 2 deletions
|
@ -13,8 +13,11 @@
|
||||||
placeholder="YYYY-MM-DD" title="Enter a date in this format: YYYY-MM-DD"
|
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))"/>
|
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}__}"
|
<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>
|
</div>
|
||||||
<span th:if="${valid}"
|
<span th:if="${valid}"
|
||||||
class="glyphicon glyphicon-ok form-control-feedback"
|
class="glyphicon glyphicon-ok form-control-feedback"
|
||||||
|
|
Loading…
Reference in a new issue