Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/axonivy-market/portal int…
Browse files Browse the repository at this point in the history
…o feature/IVYPORTAL-17422-Remove-Full-Case-List-and-Replace-it-with-the-Case-Widget-ver1

# Conflicts:
#	AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/util/DefaultTaskListDashboardUtils.java
  • Loading branch information
lttung-axonivy committed Nov 21, 2024
2 parents 5965b27 + 8abdf81 commit 48bb0ee
Show file tree
Hide file tree
Showing 76 changed files with 1,063 additions and 684 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ic="http://ivyteam.ch/jsf/component" xmlns:p="http://primefaces.org/ui"
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ic="http://ivyteam.ch/jsf/component"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<h:body>
<h1>Create tasks</h1>
<h:form>
<p:panelGrid columns="2" layout="tabular">
<p:outputLabel value="Number of categories" />
<p:inputText value="#{data.numOfCats}" />
<p:outputLabel value="Number of sub categories" />
<p:inputText value="#{data.numOfSubCats}" />
<p:outputLabel value="Number of cases per sub catetory" />
<p:inputText value="#{data.numOfCasesPerSubCat}" />
<p:outputLabel value="Attach to one business case" />
<p:selectBooleanCheckbox value="#{data.attachToBusinessCase}"/>
</p:panelGrid>
<p:panelGrid columns="1" layout="tabular">
<h:outputText
value="*** Note that each case has 4 tasks (1 done task and 3 open task). So the number of tasks will be created = number of categories * number of sub categories * number of cases per sub category * 4" />
<p:commandButton value="Create tasks" actionListener="#{logic.close}" />
</p:panelGrid>
</h:form>
<ui:composition template="/layouts/frame-10.xhtml">
<ui:define name="title">Create tasks</ui:define>
<ui:define name="content">
<h:form>
<div class="card">
<p:panelGrid columns="2" layout="grid" style="width: 50%;">
<p:outputLabel value="Number of categories" />
<p:inputText value="#{data.numOfCats}" />
<p:outputLabel value="Number of sub categories" />
<p:inputText value="#{data.numOfSubCats}" />
<p:outputLabel value="Number of cases per sub catetory" />
<p:inputText value="#{data.numOfCasesPerSubCat}" />
<p:outputLabel value="Attach to one business case" />
<p:selectBooleanCheckbox value="#{data.attachToBusinessCase}" />
</p:panelGrid>
<p:panelGrid columns="1">
<h:outputText
value="*** Note that each case has 4 tasks (1 done task and 3 open task). So the number of tasks will be created = number of categories * number of sub categories * number of cases per sub category * 4" />
<p:commandButton value="Create tasks"
actionListener="#{logic.close}" />
</p:panelGrid>
</div>
</h:form>
<ic:com.axonivy.portal.components.IFrameTaskConfig isHideCaseInfo="true" isHideTaskAction="true" isWorkingOnATask="false" />
</ui:define>
</ui:composition>
</h:body>
</html>

</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:ic="http://ivyteam.ch/jsf/component"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">

<!--
DESCRIPTION:
This is the default template to use the freya-ivy theme as well as iFrames approach.
PORTAL:
If you are using the Axon Ivy Portal, you can pass several parameters to it to use some features (e.g. process chain).
You'll find the list of parameters here: https://developer.axonivy.com/portal/12.0/doc/portal-developer-guide/components/layout-templates.html#components-layout-templates-iframe-task-template
For further information about iframes and usage in Portal please refer to: https://developer.axonivy.com/portal/12.0/doc/portal-developer-guide/iframe/index.html
BRANDING:
If you want to brand your dialogs, please take a look at our documentation: https://developer.axonivy.com/doc/12.0/designer-guide/user-interface/branding/index.html
STYLING:
If you want to add custom styles, you can simply add your own .css file (e.g. at the location: "webContent/layouts/styles/style.css")
and refence it below in the head part.
-->

<h:head>
<f:attribute name="primefaces.THEME" value="#{ivyFreyaTheme.theme}" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><ui:insert name="title">Ivy Html Dialog</ui:insert></title>
<link rel="shortcut icon" href="#{resource['ivy-branding:favicon']}" />
<h:outputScript name="js/layout.js" library="#{ivyFreyaTheme.library}" />
<h:outputStylesheet name="#{ivyFreyaTheme.layout}" library="#{ivyFreyaTheme.library}" />
<h:outputStylesheet name="primeflex-3.min.css" library="primeflex" />
<h:outputStylesheet name="custom.css" library="ivy-branding" />
<!-- Optional Style or Script files:
<h:outputStylesheet name="layouts/styles/style.css" />
-->
</h:head>
<h:body class="body-hd #{ivyFreyaTheme.mode}">
<ui:include src="/layouts/includes/progress-loader.xhtml" />
<div id="content" class="shortcuts-container">
<ui:insert name="content">
default content
</ui:insert>
</div>

<ui:insert name="exception">
<ui:include src="/layouts/includes/portalException.xhtml" />
</ui:insert>

<!-- optional Portal parameters:
<script>
window.
</script>
-->

</h:body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.apache.commons.lang3.StringUtils;

public class JsonVersion implements Comparable<JsonVersion> {
public static final JsonVersion LATEST = new JsonVersion("10.0.0");
public static final JsonVersion LATEST = new JsonVersion("12.0.0");

private String value;

Expand Down
4 changes: 2 additions & 2 deletions AxonIvyPortal/portal/config/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Variables:
# Set URL to download Axon Ivy mobile app on Google Play.
GooglePlayURL: 'https://play.google.com/store/apps/details?id=com.axonivy&pli=1'

# You can configure the look and feel for dashboard according to your needs via this json file.
# This setting will be taken over for all other dashboard.
# You can configure the look and feel of the dashboard according to your needs via this JSON file.
# These settings will apply to all other dashboards.
# [file: json]
Dashboard:
# You can customize the name and icon of the main menu entry for Portal dashboards via this JSON file.
Expand Down
37 changes: 13 additions & 24 deletions AxonIvyPortal/portal/config/variables/Portal/Dashboard.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"id": "1",
"version": "11.4.0",
"version": "12.0.0",
"templateId": "default-portal-dashboard-template",
"titles": [
{
Expand Down Expand Up @@ -51,7 +51,6 @@
"y": 2
},
"enableQuickSearch": true,
"rowsPerPage": 5,
"columns": [
{
"field": "start"
Expand All @@ -61,21 +60,17 @@
},
{
"field": "id",
"visible": false,
"quickSearch": false
"visible": false
},
{
"field": "name",
"quickSearch": true
"field": "name"
},
{
"field": "description",
"visible": false,
"quickSearch": false
"visible": false
},
{
"field": "activator",
"quickSearch": false
"field": "activator"
},
{
"field": "state",
Expand All @@ -90,8 +85,7 @@
},
{
"field": "category",
"visible": false,
"quickSearch": false
"visible": false
},
{
"field": "actions"
Expand Down Expand Up @@ -140,27 +134,23 @@
"x": 3,
"y": 8
},
"rowsPerPage": 5,
"enableQuickSearch": true,
"columns": [
{
"field": "id",
"quickSearch": false
"field": "id"
},
{
"field": "name",
"quickSearch": true
"field": "name"
},
{
"field": "description",
"visible": false,
"quickSearch": false
"visible": false
},
{
"field": "state"
},
{
"field": "creator",
"quickSearch": false
"field": "creator"
},
{
"field": "startTimestamp"
Expand All @@ -171,8 +161,7 @@
},
{
"field": "category",
"visible": false,
"quickSearch": false
"visible": false
},
{
"field": "actions"
Expand Down Expand Up @@ -331,7 +320,7 @@
},
{
"id": "default-task-list-dashboard",
"version": "11.4.0",
"version": "12.0.0",
"templateId": "create-from-scratch",
"titles": [
{
Expand Down
Loading

0 comments on commit 48bb0ee

Please sign in to comment.