-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e8e555
commit d45ab6d
Showing
9 changed files
with
158 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,4 +114,6 @@ | |
</div> | ||
</wicket:fragment> | ||
|
||
<wicket:child/> | ||
|
||
</wicket:panel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/search/DebugSearchPanel.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2021 Evolveum | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org"> | ||
<body> | ||
<wicket:extend> | ||
<wicket:fragment wicket:id="debugSearchFragment"> | ||
<div class="form-group" style="margin-right: 10px;"> | ||
<label class="control-label"> | ||
<wicket:message key="pageDebugList.options"/> | ||
</label> | ||
</div> | ||
<div class="checkbox"> | ||
<label> | ||
<input type="checkbox" wicket:id="zipCheck"> | ||
<wicket:message key="pageDebugList.zipCheck"/> | ||
</label> | ||
</div> | ||
<!-- todo implement in a nicer way --> | ||
<div class="checkbox"> | ||
<label> | ||
<input type="checkbox" wicket:id="showAllItemsCheck"> | ||
<wicket:message key="pageDebugList.showAllItems"/> | ||
</label> | ||
</div> | ||
|
||
<div wicket:id="oidItem" class="form-group" style="float:right; padding-right: 5px; margin-bottom: 5px; text-align-last: left;"/> | ||
</wicket:fragment> | ||
</wicket:extend> | ||
</body> | ||
</html> |
40 changes: 40 additions & 0 deletions
40
gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/search/DebugSearchPanel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (C) 2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.web.component.search; | ||
|
||
import com.evolveum.midpoint.web.page.admin.configuration.component.DebugSearchFragment; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType; | ||
import org.apache.wicket.ajax.AjaxRequestTarget; | ||
import org.apache.wicket.markup.repeater.RepeatingView; | ||
import org.apache.wicket.model.IModel; | ||
/** | ||
* @author honchar | ||
*/ | ||
public class DebugSearchPanel<O extends ObjectType> extends AbstractSearchPanel<O> { | ||
|
||
IModel<Boolean> showAllItemsModel; | ||
private static final String ID_DEBUG_SEARCH_FRAGMENT = "debugSearchFragment"; | ||
|
||
public DebugSearchPanel(String id, IModel<Search<O>> model, IModel<Boolean> showAllItemsModel) { | ||
super(id, model); | ||
this.showAllItemsModel = showAllItemsModel; | ||
} | ||
|
||
protected void initSearchItemsPanel(RepeatingView searchItemsRepeatingView) { | ||
DebugSearchFragment debugSearchFragment = new DebugSearchFragment(searchItemsRepeatingView.newChildId(), ID_DEBUG_SEARCH_FRAGMENT, | ||
DebugSearchPanel.this, getModel(), showAllItemsModel); | ||
debugSearchFragment.setOutputMarkupId(true); | ||
searchItemsRepeatingView.add(debugSearchFragment); | ||
|
||
super.initSearchItemsPanel(searchItemsRepeatingView); | ||
} | ||
|
||
protected void searchPerformed(AjaxRequestTarget target) { | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters