IDEMPIERE-6127 : Improve Report Process Parameter for Mobile Screen (#2334)

* IDEMPIERE-6127 : Improve Report Process Parameter for Mobile Screen

* apply patch from hengsin

- Combine summary checkbox and label into one component
- update default theme version
This commit is contained in:
Zuhri Utama 2024-04-30 18:33:19 +07:00 committed by Carlos Ruiz
parent 4c7a1b124f
commit 0e17a03d37
3 changed files with 10 additions and 5 deletions

View File

@ -58,6 +58,6 @@ Copyright (C) 2007 Ashley G Ramdass (ADempiere WebUI).
<!-- this js module doesn't actually exists and it is here for default theme version --> <!-- this js module doesn't actually exists and it is here for default theme version -->
<!-- since loading of js module is on demand, it doesn't cause any error as long as you don't try to load it --> <!-- since loading of js module is on demand, it doesn't cause any error as long as you don't try to load it -->
<javascript-module name="idempiere.theme.default" version="202402261244" /> <javascript-module name="idempiere.theme.default" version="202404261001" />
</language> </language>

View File

@ -511,10 +511,9 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI
//summary option //summary option
chbIsSummary = new Checkbox(); chbIsSummary = new Checkbox();
chbIsSummary.setSclass("option-input-parameter"); chbIsSummary.setSclass("option-input-parameter");
chbIsSummary.setLabel(Msg.translate(Env.getCtx(), "Summary"));
Label lPrintFormat = new Label(Msg.translate(Env.getCtx(), "AD_PrintFormat_ID")); Label lPrintFormat = new Label(Msg.translate(Env.getCtx(), "AD_PrintFormat_ID"));
lPrintFormat.setSclass("option-input-parameter print-format-label"); lPrintFormat.setSclass("option-input-parameter print-format-label");
Label lIsSummary = new Label(Msg.translate(Env.getCtx(), "Summary"));
lIsSummary.setSclass("option-input-parameter");
//print formats //print formats
MClient client = MClient.get(m_ctx); MClient client = MClient.get(m_ctx);
@ -531,7 +530,6 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI
} }
fPrintFormat.getComponent().setSclass("option-input-parameter print-format-list"); fPrintFormat.getComponent().setSclass("option-input-parameter print-format-list");
fPrintFormat.getComponent().setPlaceholder(lPrintFormat.getValue()); fPrintFormat.getComponent().setPlaceholder(lPrintFormat.getValue());
reportOptionLayout.appendChild(lIsSummary);
reportOptionLayout.appendChild(chbIsSummary); reportOptionLayout.appendChild(chbIsSummary);
} }

View File

@ -31,7 +31,14 @@ when detect side effect, fix to only apply for parameter window*/
} }
.report-option-container { .report-option-container {
overflow-x: auto; display: flex;
flex-wrap: wrap;
flex-direction: row;
align-items: center;
}
.report-option-container div {
padding: 2px;
} }
/* Chromium based browsers + Safari */ /* Chromium based browsers + Safari */