* BAEL-3015

* BAEL-3015 remove tabs
This commit is contained in:
Amy DeGregorio 2019-06-27 06:33:46 -04:00 committed by maibin
parent 0c7c689d3b
commit 2e783b0f22

View File

@ -5,26 +5,26 @@
<title>Enums in Thymeleaf</title> <title>Enums in Thymeleaf</title>
</head> </head>
<body> <body>
<h3>View Widget</h3> <h3>View Widget</h3>
<div> <div>
<label for="name">Name: </label> <label for="name">Name: </label>
<span th:text="${widget.name}"></span> <span th:text="${widget.name}"></span>
</div> </div>
<div> <div>
<label for="color">Color: </label> <label for="color">Color: </label>
<span th:text="${widget.color.displayValue}"></span> <span th:text="${widget.color.displayValue}"></span>
</div> </div>
<div th:if="${widget.color == T(com.baeldung.thymeleaf.enums.Color).RED}"> <div th:if="${widget.color == T(com.baeldung.thymeleaf.enums.Color).RED}">
This color screams danger. This color screams danger.
</div> </div>
<div th:if="${widget.color.name() == 'GREEN'}"> <div th:if="${widget.color.name() == 'GREEN'}">
Green is for go. Green is for go.
</div> </div>
<div th:switch="${widget.color}"> <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).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).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).YELLOW}" style="color: yellow;">Caution</span>
<span th:case="${T(com.baeldung.thymeleaf.enums.Color).GREEN}" style="color: green;">All Good</span> <span th:case="${T(com.baeldung.thymeleaf.enums.Color).GREEN}" style="color: green;">All Good</span>
</div> </div>
</body> </body>
</html> </html>