Skip to content

Commit

Permalink
BAEL 3015 (eugenp#7200)
Browse files Browse the repository at this point in the history
* BAEL-3015

* BAEL-3015 remove tabs
  • Loading branch information
amdegregorio authored and maibin committed Jun 27, 2019
1 parent 0c7c689 commit 2e783b0
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions spring-thymeleaf-2/src/main/resources/templates/enums/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
<title>Enums in Thymeleaf</title>
</head>
<body>
<h3>View Widget</h3>
<div>
<label for="name">Name: </label>
<span th:text="${widget.name}"></span>
</div>
<div>
<label for="color">Color: </label>
<span th:text="${widget.color.displayValue}"></span>
</div>
<div th:if="${widget.color == T(com.baeldung.thymeleaf.enums.Color).RED}">
This color screams danger.
</div>
<div th:if="${widget.color.name() == 'GREEN'}">
Green is for go.
</div>
<div th:switch="${widget.color}">
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).RED}" style="color: red;">Alert</span>
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).ORANGE}" style="color: orange;">Warning</span>
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).YELLOW}" style="color: yellow;">Caution</span>
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).GREEN}" style="color: green;">All Good</span>
</div>
<h3>View Widget</h3>
<div>
<label for="name">Name: </label>
<span th:text="${widget.name}"></span>
</div>
<div>
<label for="color">Color: </label>
<span th:text="${widget.color.displayValue}"></span>
</div>
<div th:if="${widget.color == T(com.baeldung.thymeleaf.enums.Color).RED}">
This color screams danger.
</div>
<div th:if="${widget.color.name() == 'GREEN'}">
Green is for go.
</div>
<div th:switch="${widget.color}">
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).RED}" style="color: red;">Alert</span>
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).ORANGE}" style="color: orange;">Warning</span>
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).YELLOW}" style="color: yellow;">Caution</span>
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).GREEN}" style="color: green;">All Good</span>
</div>
</body>
</html>

0 comments on commit 2e783b0

Please sign in to comment.