-
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-7976 conflict solver panels impl integrated into wizard
- Loading branch information
Showing
13 changed files
with
642 additions
and
468 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
35 changes: 35 additions & 0 deletions
35
...-gui/src/main/java/com/evolveum/midpoint/gui/api/component/wizard/BehaviourDelegator.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,35 @@ | ||
/* | ||
* 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.api.component.wizard; | ||
|
||
import com.evolveum.midpoint.web.component.util.SerializableSupplier; | ||
import com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour; | ||
|
||
import org.apache.wicket.Component; | ||
import org.apache.wicket.behavior.Behavior; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Created by Viliam Repan (lazyman). | ||
*/ | ||
public class BehaviourDelegator extends Behavior { | ||
|
||
private SerializableSupplier<Behavior> behaviour; | ||
|
||
public BehaviourDelegator(@NotNull SerializableSupplier<Behavior> behaviour) { | ||
this.behaviour = behaviour; | ||
} | ||
|
||
@Override | ||
public void onConfigure(Component component) { | ||
Behavior real = behaviour.get(); | ||
if (real != null) { | ||
real.onConfigure(component); | ||
} | ||
} | ||
} |
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
75 changes: 75 additions & 0 deletions
75
...rc/main/java/com/evolveum/midpoint/gui/impl/page/self/requestAccess/CartSummaryPanel.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,75 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
<!DOCTYPE html> | ||
<html xmlns:wicket="http://wicket.apache.org"> | ||
<wicket:panel> | ||
<div class="col-md-12 col-xl-7 col-lg-8 col-xxl-9"> | ||
<div wicket:id="table"/> | ||
</div> | ||
<div class="col-md-12 col-xl-5 col-lg-4 col-xxl-3"> | ||
<div class="card"> | ||
<div class="card-header"> | ||
<h3 class="card-title"> | ||
<i class="fas fa-cash-register mr-1"></i> | ||
<wicket:message key="ShoppingCartPanel.checkout"/> | ||
</h3> | ||
</div> | ||
<div class="card-body d-flex flex-column gap-3 pb-1"> | ||
<wicket:enclosure wicket:child="validity"> | ||
<div class="form-group mb-0"> | ||
<label> | ||
<wicket:message key="ShoppingCartPanel.validity"/> | ||
<i class="fas fa-info-circle fa-xs text-primary"></i> | ||
</label> | ||
<select class="form-control" wicket:id="validity"/> | ||
</div> | ||
</wicket:enclosure> | ||
<wicket:enclosure wicket:child="comment"> | ||
<div class="form-group mb-0"> | ||
<label> | ||
<wicket:message key="ShoppingCartPanel.comment"/> | ||
<i class="fas fa-info-circle fa-xs text-primary"></i> | ||
</label> | ||
<textarea class="form-control" rows="4" wicket:id="comment"></textarea> | ||
</div> | ||
</wicket:enclosure> | ||
<a class="btn btn-danger" wicket:id="openConflict"> | ||
<i class="fas fa-triangle-exclamation mr-1"></i> | ||
<wicket:message key="ShoppingCartPanel.openConflict"/> | ||
</a> | ||
<a class="btn btn-success" wicket:id="submit"> | ||
<i class="fas fa-credit-card mr-1"></i> | ||
<wicket:message key="ShoppingCartPanel.submit"/> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</wicket:panel> | ||
|
||
<wicket:fragment wicket:id="tableHeaderFragment"> | ||
<h3 class="card-title"> | ||
<i class="fa-solid fa-cart-shopping mr-1"></i> | ||
<wicket:message key="ShoppingCartPanel.tableHeader"/> | ||
</h3> | ||
</wicket:fragment> | ||
|
||
<wicket:fragment wicket:id="tableFooterFragment"> | ||
<a class="btn btn-outline-primary" wicket:id="clearCart"> | ||
<i class="fa-solid fa-recycle mr-1"></i> | ||
<wicket:message key="ShoppingCartPanel.clearCart"/> | ||
</a> | ||
</wicket:fragment> | ||
|
||
<wicket:fragment wicket:id="tableButtonColumn"> | ||
<a class="btn btn-xs btn-outline-primary px-2" wicket:id="edit" wicket:message="title:ShoppingCartPanel.edit"> | ||
<i class="fas fa-pen-to-square"></i> | ||
</a> | ||
<a class="btn btn-xs btn-outline-danger px-2" wicket:id="remove" wicket:message="title:ShoppingCartPanel.remove"> | ||
<i class="fas fa-trash-can"></i> | ||
</a> | ||
</wicket:fragment> | ||
</html> |
Oops, something went wrong.