Themes in cards

This commit is contained in:
Michael Wain 2024-11-27 21:21:40 +03:00
parent a05aba0314
commit 8e58abf3f0
2 changed files with 8 additions and 0 deletions

View File

@ -195,6 +195,7 @@ public class PanelController {
boolean is_mobile = new UAgentInfo(uagent, accepth).detectSmartphone();
model.addAttribute("is_mobile", is_mobile);
model.addAttribute("section", section);
model.addAttribute("themes", themesToCards());
switch (section) {
case "lugg":
model.addAttribute( "cards", is_mobile ? luggageToCards() : toPairs(luggageToCards()) );

View File

@ -344,6 +344,13 @@
</div>
</th:block>
</th:block>
<th:block th:unless="${section == 'actions' OR section == 'themes'}">
<select class="form-select">
<th:block th:each="tt: ${themes}">
<option th:value="${tt}.id" th:text="${tt}.title"></option>
</th:block>
</select>
</th:block>
</form>
</div>
<div class="modal-footer">