Skip to content
Snippets Groups Projects
Commit 88084698 authored by Otto Visser's avatar Otto Visser
Browse files

Merge branch '37-default-room-should-be-emtpy' into 'development'

Added default disabled select option

Closes #37

See merge request !20
parents 66814379 07053302
No related branches found
No related tags found
1 merge request!20Added default disabled select option
......@@ -30,7 +30,10 @@
<div class="col-sm-8" th:classappend="${#fields.hasErrors('room')} ? 'has-error'">
<select class="form-control" id="inputRoom" th:field="*{room}">
<div>
<option value="" th:disabled="disabled" th:selected="selected">Choose a room</option>
<option th:each="room : ${lab.rooms}" th:value="${room.id}" th:text="${room}">DW 1.01</option>
</div>
</select>
<span class="help-block" th:if="${#fields.hasErrors('room')}" th:errors="*{room}">Room error</span>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment