Themes in cards
This commit is contained in:
parent
a05aba0314
commit
8e58abf3f0
@ -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()) );
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user