From 441673a2bd0933e9ca3a42c9804d4f70d939fd73 Mon Sep 17 00:00:00 2001 From: Michael Brohl Date: Sat, 24 Feb 2018 16:23:19 +0000 Subject: [PATCH] Improved: Improve layout and structure of forms. (OFBIZ-10221) This includes the webtools templates. Thanks Julian Leichert for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825261 13f79535-47bb-0310-9956-ffa450edef68 --- .../webtools/config/WebtoolsUiLabels.xml | 12 + .../template/artifactinfo/ArtifactInfo.ftl | 86 +++- .../template/datafile/ViewDataFile.ftl | 18 +- .../webtools/template/entity/CheckDb.ftl | 416 +++++++++++++----- .../template/entity/EntityExportAll.ftl | 42 +- .../webtools/template/entity/EntityImport.ftl | 85 +++- .../template/entity/EntityImportDir.ftl | 58 ++- .../template/entity/EntityImportReaders.ftl | 46 +- .../webtools/template/entity/XmlDsDump.ftl | 25 +- framework/webtools/template/log/FetchLogs.ftl | 57 ++- 10 files changed, 639 insertions(+), 206 deletions(-) diff --git a/framework/webtools/config/WebtoolsUiLabels.xml b/framework/webtools/config/WebtoolsUiLabels.xml index ff10691468..01c013bd6d 100644 --- a/framework/webtools/config/WebtoolsUiLabels.xml +++ b/framework/webtools/config/WebtoolsUiLabels.xml @@ -5971,4 +5971,16 @@ 创建一个实体 ${entityName} :输入值,然后点击新建. 新建一個資料實體 ${entityName} :輸入值,然後點擊新建. + + Eingabe Readers (Komma getrennt,keine Leerzeichen; aus entityengine.xml und ofbiz-component.xml Dateien; common ones include seed,ext,demo) + Enter Readers (comma separated, no spaces; from entityengine.xml and ofbiz-component.xml files; common ones include seed,ext,demo) + + + Ort/Namen Suchen + Search Names/Locations + + + Typ + Type + diff --git a/framework/webtools/template/artifactinfo/ArtifactInfo.ftl b/framework/webtools/template/artifactinfo/ArtifactInfo.ftl index ed62ee0b84..0a900b0f9d 100644 --- a/framework/webtools/template/artifactinfo/ArtifactInfo.ftl +++ b/framework/webtools/template/artifactinfo/ArtifactInfo.ftl @@ -33,7 +33,14 @@ under the License. <#-- add form here to specify artifact info name. -->
- Search Names/Locations: + + + + + + + + + + + +
+ + + - - +
+ + +
-
Name:
-
Location:
-
Type: - - -
+ + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ +
@@ -126,7 +170,7 @@ under the License. - <#elseif "service" == artifactInfo.getType()/> + <#elseif "service" == artifactInfo.getType() >

Service Info

 Description: ${artifactInfo.modelService.description}
 Run (${artifactInfo.modelService.engineName}): ${artifactInfo.modelService.location} :: ${artifactInfo.modelService.invoke}
@@ -203,7 +247,7 @@ under the License. - <#elseif "form" == artifactInfo.getType()/> + <#elseif "form" == artifactInfo.getType() >

Form Extended by This Form

<#if artifactInfo.getFormThisFormExtends()??> @@ -252,7 +296,7 @@ under the License.
- <#elseif "screen" == artifactInfo.getType()/> + <#elseif "screen" == artifactInfo.getType() >

Entities Used in This Screen

<#list artifactInfo.getEntitiesUsedInScreen()! as entityArtifactInfo> @@ -302,7 +346,7 @@ under the License.
- <#elseif "request" == artifactInfo.getType()/> + <#elseif "request" == artifactInfo.getType() > <#if artifactInfo.getServiceCalledByRequestEvent()??>

Service Called by Request Event

@@ -351,7 +395,7 @@ under the License.
- <#elseif "view" == artifactInfo.getType()/> + <#elseif "view" == artifactInfo.getType() >

Requests That This View is a Responses To

<#list artifactInfo.getRequestsThatThisViewIsResponseTo()! as controllerRequestArtifactInfo> diff --git a/framework/webtools/template/datafile/ViewDataFile.ftl b/framework/webtools/template/datafile/ViewDataFile.ftl index cef70b152d..3d1c12ac2b 100644 --- a/framework/webtools/template/datafile/ViewDataFile.ftl +++ b/framework/webtools/template/datafile/ViewDataFile.ftl @@ -19,12 +19,12 @@ under the License.

${uiLabelMap.WebtoolsDataFileMessage1}.


<#if security.hasPermission("DATAFILE_MAINT", session)> -
+ - - + @@ -41,27 +41,23 @@ under the License. - - - + - - - - - + +
${uiLabelMap.WebtoolsDataDefinitionFileName} + checked="checked" />${uiLabelMap.WebtoolsDataIsUrl}
${uiLabelMap.WebtoolsDataDefinitionName}  
${uiLabelMap.WebtoolsDataFileName} + checked="checked" />${uiLabelMap.WebtoolsDataIsUrl}
${uiLabelMap.WebtoolsDataSaveToFile}  
${uiLabelMap.WebtoolsDataSaveToXml}  
  
diff --git a/framework/webtools/template/entity/CheckDb.ftl b/framework/webtools/template/entity/CheckDb.ftl index dba245028f..36950033b9 100644 --- a/framework/webtools/template/entity/CheckDb.ftl +++ b/framework/webtools/template/entity/CheckDb.ftl @@ -1,3 +1,5 @@ + + <#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file @@ -6,9 +8,7 @@ regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -16,105 +16,317 @@ KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> -

${uiLabelMap.WebtoolsCheckUpdateDatabase}

-
- - ${uiLabelMap.WebtoolsGroupName}: - - - - - - -
-

${uiLabelMap.WebtoolsNoteUseAtYourOwnRisk}

- -

${uiLabelMap.WebtoolsRemoveAllTables}

-
- - ${uiLabelMap.WebtoolsGroupName}: - - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - ${uiLabelMap.WebtoolsEntityName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllPrimaryKeys}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsCreateRemovePrimaryKey}

-
- - ${uiLabelMap.WebtoolsGroupName}: - ${uiLabelMap.WebtoolsEntityName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - ${uiLabelMap.WebtoolsEntityName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllDeclaredIndices}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeyIndices}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeys}

-

${uiLabelMap.WebtoolsNoteForeighKeysMayAlsoBeCreated}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-
- - ${uiLabelMap.WebtoolsGroupName}: - -
-

${uiLabelMap.WebtoolsUpdateCharacterSetAndCollate}

-
- - ${uiLabelMap.WebtoolsGroupName}: - -
+

${uiLabelMap.WebtoolsCheckUpdateDatabase}

+
+ + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + + + + +
+ + +
+
+

${uiLabelMap.WebtoolsNoteUseAtYourOwnRisk}

+ +

${uiLabelMap.WebtoolsRemoveAllTables}

+
+ + + + + + + + + + +
+ + + + + +
+
+
+ + + + + + + + + + + + + + +
+ + + +
+ + + + +
+
+

${uiLabelMap.WebtoolsCreateRemoveAllPrimaryKeys}

+
+ + + + + + + + + + +
+ + + + +
+
+
+ + + + + + + + + +
+ + + + +
+
+

${uiLabelMap.WebtoolsCreateRemovePrimaryKey}

+
+ + + + + + + + + + + + + +
+ + + +
+ + + + +
+
+
+ + + + + + + + + + + + + + +
+ +
+ + + +
+ + + + +
+
+

${uiLabelMap.WebtoolsCreateRemoveAllDeclaredIndices}

+
+ + + + + + + + + +
+ + + + +
+
+
+ + + + + + + + + +
+ + + + +
+
+

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeyIndices}

+
+ + + + + + + + + +
+ + + + +
+
+
+ + + + + + + + + +
+ + + + +
+
+

${uiLabelMap.WebtoolsCreateRemoveAllForeignKeys}

+

${uiLabelMap.WebtoolsNoteForeighKeysMayAlsoBeCreated}

+
+ + + + + + + + + +
+ + + + +
+
+
+ + + + + + + + + +
+ + + + +
+
+

${uiLabelMap.WebtoolsUpdateCharacterSetAndCollate}

+
+ + + + + + + + + +
+ + + + +
+
<#if miters?has_content> -
- +
+ + diff --git a/framework/webtools/template/entity/EntityExportAll.ftl b/framework/webtools/template/entity/EntityExportAll.ftl index e7989c78e0..a8646024ec 100644 --- a/framework/webtools/template/entity/EntityExportAll.ftl +++ b/framework/webtools/template/entity/EntityExportAll.ftl @@ -27,10 +27,40 @@ under the License.
-
- ${uiLabelMap.WebtoolsOutputDirectory}:
- ${uiLabelMap.CommonFromDate}: <@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/>
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
-
- + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + <@htmlTemplate.renderDateTimeField name="fromDate" event="" action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate" dateType="date" shortDateInput=false timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle="" timeDropdown="" timeHourName="" classString="" hour1="" hour2="" timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected="" compositeType="" formName=""/> +
+ ${uiLabelMap.WebtoolsTimeoutSeconds}: + + +
+ + +
diff --git a/framework/webtools/template/entity/EntityImport.ftl b/framework/webtools/template/entity/EntityImport.ftl index f6e0e657f9..593f7fb00e 100644 --- a/framework/webtools/template/entity/EntityImport.ftl +++ b/framework/webtools/template/entity/EntityImport.ftl @@ -21,23 +21,76 @@ under the License.

${uiLabelMap.WebtoolsXMLImportInfo}


-
- ${uiLabelMap.WebtoolsAbsoluteFileNameOrUrl}:
-
- ${uiLabelMap.WebtoolsAbsoluteFTLFilename}:
-
-
-
-
-
-
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
-
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + + + + +
+ + + +
+ + +
-
- ${uiLabelMap.WebtoolsCompleteXMLDocument}:
- -
+ + + + + + + + + + + + + + +
+ + + +
+ + +
<#if messages??>
diff --git a/framework/webtools/template/entity/EntityImportDir.ftl b/framework/webtools/template/entity/EntityImportDir.ftl index 8781c6458d..d192853d00 100644 --- a/framework/webtools/template/entity/EntityImportDir.ftl +++ b/framework/webtools/template/entity/EntityImportDir.ftl @@ -21,17 +21,53 @@ under the License.

${uiLabelMap.WebtoolsXMLImportInfo}


-
- ${uiLabelMap.WebtoolsAbsolutePath}:
-
-
-
-
-
-
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
- ${uiLabelMap.WebtoolsPause}:
-
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + +
+ + + +
+ + +
+
+ + +
<#if messages??>
diff --git a/framework/webtools/template/entity/EntityImportReaders.ftl b/framework/webtools/template/entity/EntityImportReaders.ftl index d2113b709e..f6212d3483 100644 --- a/framework/webtools/template/entity/EntityImportReaders.ftl +++ b/framework/webtools/template/entity/EntityImportReaders.ftl @@ -20,15 +20,43 @@ under the License.
${uiLabelMap.WebtoolsImportToDataSource}

${uiLabelMap.WebtoolsXMLImportInfo}


-
- Enter Readers (comma separated, no spaces; from entityengine.xml and ofbiz-component.xml files; common ones include seed,ext,demo):
-
-
-
-
- R
- ${uiLabelMap.WebtoolsTimeoutSeconds}:
-
+ + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + +
+ + +
+ + +
<#if messages??>
diff --git a/framework/webtools/template/entity/XmlDsDump.ftl b/framework/webtools/template/entity/XmlDsDump.ftl index d5490d3eba..3fd85a1dfd 100644 --- a/framework/webtools/template/entity/XmlDsDump.ftl +++ b/framework/webtools/template/entity/XmlDsDump.ftl @@ -85,13 +85,19 @@ under the License. ${StringUtil.wrapString(uiLabelMap.WebtoolsOutToBrowser)} checked="checked" /> - -
- <@displayButtonBar/> -
${uiLabelMap.WebtoolsEntitySyncDump}: - -
- ${uiLabelMap.WebtoolsPreConfiguredSet}: + + + <@displayButtonBar/> + + + + + + + +
<#if logLines?has_content>