-
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.
request access wizard, catalog tiles, wip
- Loading branch information
Showing
13 changed files
with
229 additions
and
99 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
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
14 changes: 0 additions & 14 deletions
14
...admin-gui/src/main/java/com/evolveum/midpoint/gui/api/component/wizard/WizardFactory.java
This file was deleted.
Oops, something went wrong.
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
59 changes: 59 additions & 0 deletions
59
...gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/requestAccess/CatalogTile.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,59 @@ | ||
/* | ||
* Copyright (c) 2022 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.gui.impl.page.self.requestAccess; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class CatalogTile implements Serializable { | ||
|
||
private String icon; | ||
|
||
private String title; | ||
|
||
private boolean selected; | ||
|
||
public CatalogTile() { | ||
this(null, null); | ||
} | ||
|
||
public CatalogTile(String icon, String title) { | ||
this.icon = icon; | ||
this.title = title; | ||
} | ||
|
||
public String getIcon() { | ||
return icon; | ||
} | ||
|
||
public void setIcon(String icon) { | ||
this.icon = icon; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public boolean isSelected() { | ||
return selected; | ||
} | ||
|
||
public void setSelected(boolean selected) { | ||
this.selected = selected; | ||
} | ||
|
||
public void toggle() { | ||
setSelected(!isSelected()); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...rc/main/java/com/evolveum/midpoint/gui/impl/page/self/requestAccess/CatalogTilePanel.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,30 @@ | ||
<!-- | ||
~ Copyright (c) 2010-2017 Evolveum | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<wicket:panel> | ||
<div class="d-flex justify-content-center mt-3" style="width: 84px; height: 84px; border-radius: 108px; background-color: rgba(60, 141, 188, 0.1);"> | ||
<i class="fas fa-utensils fa-3x align-self-center text-lightblue"></i> | ||
</div> | ||
<span class="mt-4"> | ||
<i class="fas fa-puzzle-piece text-secondary"></i> | ||
<span class="text-secondary font-weight-bold mx-1">Office 365 Package</span> | ||
<i class="fas fa-info-circle fa-xs text-primary"></i> | ||
</span> | ||
<span class="mt-2 text-center">User role that gives you access to Office 365 products</span> | ||
<a class="btn btn-lightblue mt-3"> | ||
<i class="fas fa-cart-plus mr-2"></i> | ||
Add to cart | ||
</a> | ||
<a class="btn btn-link text-lightblue mt-2"> | ||
Details | ||
</a> | ||
|
||
<i class="fas fa-user-circle fa-4x text-lightblue mt-5" wicket:id="icon"></i> | ||
<span class="mt-4 text-secondary" wicket:id="title"/> | ||
</wicket:panel> | ||
</html> |
60 changes: 60 additions & 0 deletions
60
...rc/main/java/com/evolveum/midpoint/gui/impl/page/self/requestAccess/CatalogTilePanel.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,60 @@ | ||
/* | ||
* Copyright (c) 2022 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.gui.impl.page.self.requestAccess; | ||
|
||
import com.evolveum.midpoint.gui.api.component.BasePanel; | ||
|
||
import org.apache.wicket.ajax.AjaxEventBehavior; | ||
import org.apache.wicket.ajax.AjaxRequestTarget; | ||
import org.apache.wicket.behavior.AttributeAppender; | ||
import org.apache.wicket.markup.html.WebMarkupContainer; | ||
import org.apache.wicket.markup.html.basic.Label; | ||
import org.apache.wicket.model.IModel; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class CatalogTilePanel extends BasePanel<CatalogTile> { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private static final String ID_ICON = "icon"; | ||
private static final String ID_TITLE = "title"; | ||
|
||
public CatalogTilePanel(String id, IModel<CatalogTile> model) { | ||
super(id, model); | ||
|
||
initLayout(); | ||
} | ||
|
||
private void initLayout() { | ||
add(AttributeAppender.append("class", "catalog-tile-panel d-flex flex-column align-items-center bordered p-4")); | ||
add(AttributeAppender.append("class", () -> getModelObject().isSelected() ? "active" : null)); | ||
|
||
WebMarkupContainer icon = new WebMarkupContainer(ID_ICON); | ||
icon.add(AttributeAppender.append("class", () -> getModelObject().getIcon())); | ||
add(icon); | ||
|
||
add(new Label(ID_TITLE, () -> { | ||
String title = getModelObject().getTitle(); | ||
return title != null ? getString(title, null, title) : null; | ||
})); | ||
|
||
add(new AjaxEventBehavior("click") { | ||
|
||
@Override | ||
protected void onEvent(AjaxRequestTarget target) { | ||
CatalogTilePanel.this.onClick(target); | ||
} | ||
}); | ||
} | ||
|
||
protected void onClick(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
Oops, something went wrong.