-
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.
MID-7963 role catalog item details, wip
- Loading branch information
Showing
9 changed files
with
199 additions
and
25 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
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
37 changes: 37 additions & 0 deletions
37
.../java/com/evolveum/midpoint/gui/impl/page/self/requestAccess/CatalogItemDetailsPanel.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,37 @@ | ||
<!-- | ||
~ 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> | ||
asdf | ||
|
||
<wicket:fragment wicket:id="buttons"> | ||
<div class="d-flex flex-wrap gap-2 w-100"> | ||
<a class="btn btn-success"> | ||
<i class="fas fa-cart-plus mr-1"></i> | ||
Add to cart | ||
</a> | ||
<a class="btn btn-outline-primary"> | ||
<i class="fa-solid fa-xmark mr-1"></i> | ||
Close | ||
</a> | ||
</div> | ||
</wicket:fragment> | ||
<!-- <table class="table table-borderless">--> | ||
<!-- <tr>--> | ||
<!-- <td>Archetype</td>--> | ||
<!-- <td wicket:id="archetype">Business role</td>--> | ||
<!-- </tr>--> | ||
<!-- <tr>--> | ||
<!-- <td>Owner</td>--> | ||
<!-- <td wicket:id="owner">John Doe</td>--> | ||
<!-- </tr>--> | ||
<!-- </table>--> | ||
<!-- <h3>Description</h3>--> | ||
<!-- <div wicket:id="description"/>--> | ||
</wicket:panel> | ||
</html> |
71 changes: 71 additions & 0 deletions
71
.../java/com/evolveum/midpoint/gui/impl/page/self/requestAccess/CatalogItemDetailsPanel.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,71 @@ | ||
/* | ||
* 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 com.evolveum.midpoint.gui.api.util.WebComponentUtil; | ||
import com.evolveum.midpoint.web.component.dialog.Popupable; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType; | ||
|
||
import org.apache.wicket.Component; | ||
import org.apache.wicket.markup.html.panel.Fragment; | ||
import org.apache.wicket.model.IModel; | ||
import org.apache.wicket.model.StringResourceModel; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class CatalogItemDetailsPanel extends BasePanel<ObjectType> implements Popupable { | ||
|
||
private static final String ID_BUTTONS = "buttons"; | ||
|
||
public CatalogItemDetailsPanel(String id, IModel<ObjectType> model) { | ||
super(id, model); | ||
|
||
initLayout(); | ||
} | ||
|
||
private void initLayout() { | ||
} | ||
|
||
@Override | ||
public Component getFooter() { | ||
return new Fragment("footer", ID_BUTTONS, this); | ||
} | ||
|
||
@Override | ||
public int getWidth() { | ||
return 905; | ||
} | ||
|
||
@Override | ||
public int getHeight() { | ||
return 1139; | ||
} | ||
|
||
@Override | ||
public String getWidthUnit() { | ||
return "px"; | ||
} | ||
|
||
@Override | ||
public String getHeightUnit() { | ||
return "px"; | ||
} | ||
|
||
@Override | ||
public IModel<String> getTitle() { | ||
return () -> WebComponentUtil.getTranslatedPolyString(getModelObject().getName()); | ||
} | ||
|
||
@Override | ||
public Component getComponent() { | ||
return this; | ||
} | ||
} |
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