Slowly adding themes x10
This commit is contained in:
parent
343f6153d2
commit
94ab1a6fe4
@ -162,6 +162,7 @@ public class PanelController {
|
|||||||
card.setId(theme.getId());
|
card.setId(theme.getId());
|
||||||
card.setTitle(textDataValService.getTextDataValById(theme.getTextNameId()).getText());
|
card.setTitle(textDataValService.getTextDataValById(theme.getTextNameId()).getText());
|
||||||
card.setBody(new ArrayList<>());
|
card.setBody(new ArrayList<>());
|
||||||
|
card.setSelected(theme.getIsSelected());
|
||||||
cards.add(card);
|
cards.add(card);
|
||||||
}
|
}
|
||||||
return cards;
|
return cards;
|
||||||
@ -236,5 +237,6 @@ public class PanelController {
|
|||||||
private String title;
|
private String title;
|
||||||
private List<String> body;
|
private List<String> body;
|
||||||
private Long id;
|
private Long id;
|
||||||
|
private Boolean selected = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<th:block th:unless="${section == 'script_request'}">
|
<th:block th:unless="${section == 'script_request'}">
|
||||||
<a th:unless="${section == 'actions' OR section == 'themes'}" href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal_syn" onclick="" class="btn btn-primary" th:text="#{eddittsynn}"></a>
|
<a th:unless="${section == 'actions' OR section == 'themes'}" href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal_syn" onclick="" class="btn btn-primary" th:text="#{eddittsynn}"></a>
|
||||||
|
<a th:if="${section == 'themes'}" href="#" th:data-id="${cc.id}" th:data-selected="${cc.selected}" class="btn btn-success is-selected-theme" th:text="#{thmsel}"></a>
|
||||||
<a href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal" onclick="edit_entry(this)" class="btn btn-primary" th:text="#{edditbtn}"></a>
|
<a href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal" onclick="edit_entry(this)" class="btn btn-primary" th:text="#{edditbtn}"></a>
|
||||||
<a href="#" th:data-id="${cc.id}" onclick="remove_entry(this)" class="btn btn-danger" th:text="#{remombtn}"></a>
|
<a href="#" th:data-id="${cc.id}" onclick="remove_entry(this)" class="btn btn-danger" th:text="#{remombtn}"></a>
|
||||||
</th:block>
|
</th:block>
|
||||||
@ -130,7 +131,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<th:block th:unless="${section == 'script_request'}">
|
<th:block th:unless="${section == 'script_request'}">
|
||||||
<a th:unless="${section == 'actions' OR section == 'themes'}" href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal_syn" onclick="show_synergies_modal(this)" class="btn btn-primary" th:text="#{eddittsynn}"></a>
|
<a th:unless="${section == 'actions' OR section == 'themes'}" href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal_syn" onclick="show_synergies_modal(this)" class="btn btn-primary" th:text="#{eddittsynn}"></a>
|
||||||
<a th:if="${section == 'themes'}" href="#" th:data-id="${cc.id}" class="btn btn-success" th:text="#{thmsel}"></a>
|
<a th:if="${section == 'themes'}" href="#" th:data-id="${cc.id}" th:data-selected="${cc.selected}" class="btn btn-success is-selected-theme" th:text="#{thmsel}"></a>
|
||||||
<a href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal" onclick="edit_entry(this)" class="btn btn-primary" th:text="#{edditbtn}"></a>
|
<a href="#" th:data-id="${cc.id}" data-bs-toggle="modal" data-bs-target="#modal" onclick="edit_entry(this)" class="btn btn-primary" th:text="#{edditbtn}"></a>
|
||||||
<a href="#" th:data-id="${cc.id}" onclick="remove_entry(this)" class="btn btn-danger" th:text="#{remombtn}"></a>
|
<a href="#" th:data-id="${cc.id}" onclick="remove_entry(this)" class="btn btn-danger" th:text="#{remombtn}"></a>
|
||||||
</th:block>
|
</th:block>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user