mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Hard coded solution. Displays every hour for every Vet
This commit is contained in:
parent
87f0123a92
commit
42e8cbcb75
1 changed files with 5 additions and 1 deletions
|
@ -8,12 +8,16 @@
|
|||
<label class="col-sm-2 control-label" th:text="${label}">Label</label>
|
||||
<div class="col-sm-10">
|
||||
<div th:switch="${type}">
|
||||
|
||||
<input th:case="'text'" class="form-control" type="text" th:field="*{__${name}__}" />
|
||||
|
||||
<input th:case="'date'" class="form-control" type="text" th:field="*{__${name}__}"
|
||||
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))"/>
|
||||
|
||||
<!-- type could be datetime-local -->
|
||||
<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-DDTHH:mm" title="Enter a date in this format: YYYY-MM-DDTHH:mm"/>
|
||||
|
||||
<select th:case="'vet'" class="form-control" th:field="*{vet.id}">
|
||||
<option value="-1" th:text="Select"></option>
|
||||
|
|
Loading…
Reference in a new issue