Skip to content

Commit

Permalink
Disable cursor on occupied slotlist while trying to block slot in eve…
Browse files Browse the repository at this point in the history
…nt edit
  • Loading branch information
Alf-Melmac committed Nov 20, 2021
1 parent 86932c8 commit e4330ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/resources/templates/eventEdit.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,14 @@ <h3>Teilnahmeplatzaufzählung</h3>
required th:value="${slot.name}" th:disabled="${squad.isReserve()}">
</div>
<div th:unless="${squad.isReserve()}" class="col-md-1 d-flex">
<div th:unless="${slot.isBlocked()}" class="btn btn-xl p-0 pr-1 js-lock"
<button th:unless="${slot.isBlocked()}" class="btn btn-xl p-0 pr-1 js-lock"
th:classappend="${slot.isOccupied()} ? 'btn-denied' : 'btn-lock'"
th:disabled="${slot.isOccupied()}"
type="button" title="Blockierung">
<em class="fas fa-lock-open"></em>
</div>
<div th:if="${slot.isBlocked()}" class="btn btn-xl p-0 pr-1 js-lock js-blocked"
th:classappend="${slot.isOccupied()} ? 'btn-denied' : 'btn-lock'"
</button>
<div th:if="${slot.isBlocked()}" class="btn btn-xl p-0 pr-1 js-lock js-blocked btn-lock"
th:disabled="${slot.isOccupied()}"
type="button" title="Blockierung">
<em class="fas fa-lock"></em>
</div>
Expand Down

0 comments on commit e4330ec

Please sign in to comment.