Hard coded solution. Displays every hour for every Vet

This commit is contained in:
snackk 2018-10-25 22:42:25 +01:00
parent 87f0123a92
commit 42e8cbcb75

View file

@ -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>