edit_facility_26115 #5

Merged
francesco.mangiacrapa merged 17 commits from edit_facility_26115 into master 2024-03-19 10:28:52 +01:00
1 changed files with 16 additions and 13 deletions
Showing only changes of commit 36f32bf438 - Show all commits

View File

@ -67,6 +67,8 @@ public class CkanMetadataManagementPanel extends FlowPanel {
// user's own
private InlineHTML separatorMyInfo = null;
private InlineHTML separatorAdminButtons = null;
private DropdownButton dropMyOptionButtons = new DropdownButton("My...");
private NavLink myDatasets = new NavLink("My Items");
private NavLink myOrganizations = new NavLink("My Organizations");
private NavLink myGroups = new NavLink("My Groups");
@ -179,13 +181,12 @@ public class CkanMetadataManagementPanel extends FlowPanel {
separatorMyInfo.setVisible(true);
nav.add(separatorMyInfo);
DropdownButton dropMy = new DropdownButton("My...");
dropMy.setBaseIcon(IconType.USER);
dropMy.add(myOrganizations);
dropMy.add(myGroups);
dropMy.add(myDatasets);
dropMy.setType(ButtonType.LINK);
nav.add(dropMy);
dropMyOptionButtons.setBaseIcon(IconType.USER);
dropMyOptionButtons.add(myOrganizations);
dropMyOptionButtons.add(myGroups);
dropMyOptionButtons.add(myDatasets);
dropMyOptionButtons.setType(ButtonType.LINK);
nav.add(dropMyOptionButtons);
separatorAdminButtons = new InlineHTML(
"<span style=\"font-weight:bold;vertical-alignment:middle;margin:0 5px;\">|</span>");
@ -520,9 +521,10 @@ public class CkanMetadataManagementPanel extends FlowPanel {
insertMeta.setVisible(false);
editMeta.setVisible(false);
deleteItem.setVisible(false);
myDatasets.setVisible(false);
myOrganizations.setVisible(false);
myGroups.setVisible(false);
dropMyOptionButtons.setVisible(false);
// myDatasets.setVisible(false);
// myOrganizations.setVisible(false);
// myGroups.setVisible(false);
manageGRSFProduct.setVisible(false);
manageCModS.setVisible(false);
@ -540,9 +542,10 @@ public class CkanMetadataManagementPanel extends FlowPanel {
types.setVisible(false);
separatorMyInfo.setVisible(false);
separatorAdminButtons.setVisible(false);
myDatasets.setVisible(false);
myOrganizations.setVisible(false);
myGroups.setVisible(false);
dropMyOptionButtons.setVisible(false);
// myDatasets.setVisible(false);
// myOrganizations.setVisible(false);
// myGroups.setVisible(false);
statistics.setVisible(false);
manageGRSFProduct.setVisible(false);
manageCModS.setVisible(false);