fixed some gui requests
This commit is contained in:
parent
462071780f
commit
c371cf2b14
src/main/java/se/su/dsv/scipro/admin/panels/match
@ -15,7 +15,7 @@
|
|||||||
<table wicket:id="table" class="rounded-corner">
|
<table wicket:id="table" class="rounded-corner">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="rounded-left-top">Name</th><th>Keyword associations</th><th>Type</th><th>Active</th><th class="rounded-right-top">Edit</th>
|
<th class="rounded-left-top">Name</th><th><span wicket:id="keywordAssociationsLabel"></span></th><th>Type</th><th>Active</th><th class="rounded-right-top"><span wicket:id="editLabel"></span></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -79,6 +79,9 @@ public class ManageKeywordPanel extends Panel {
|
|||||||
tableContainer = new WebMarkupContainer("table");
|
tableContainer = new WebMarkupContainer("table");
|
||||||
tableContainer.setOutputMarkupId(true);
|
tableContainer.setOutputMarkupId(true);
|
||||||
|
|
||||||
|
tableContainer.add(new Label("keywordAssociationsLabel", "Keyword associations").setVisible(hasManageAssociations));
|
||||||
|
tableContainer.add(new Label("editLabel", "Edit").setVisible(isEditable));
|
||||||
|
|
||||||
keywordsDataView = new DataView<Keyword>("keywordsDataView", keywordsDataProvider) {
|
keywordsDataView = new DataView<Keyword>("keywordsDataView", keywordsDataProvider) {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@ -181,7 +184,7 @@ public class ManageKeywordPanel extends Panel {
|
|||||||
}
|
}
|
||||||
}.setVisible(hasManageAssociations));
|
}.setVisible(hasManageAssociations));
|
||||||
|
|
||||||
item.add(new Label("associationsCount", String.valueOf(item.getModelObject().getAssociatedKeywords().size())));
|
item.add(new Label("associationsCount", String.valueOf(item.getModelObject().getAssociatedKeywords().size())).setVisible(hasManageAssociations));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user