diff --git a/framework/common/config/CommonUiLabels.xml b/framework/common/config/CommonUiLabels.xml index 46f28e7136..a5b8f44edd 100644 --- a/framework/common/config/CommonUiLabels.xml +++ b/framework/common/config/CommonUiLabels.xml @@ -159,6 +159,10 @@ 添加一个 新建 + + Add Column + Aggiungi una colonna + Add A Portlet... Aggiungi un portlet... @@ -3814,7 +3818,7 @@ Nici-o informatie contact in Fisier Контактной информации по файлу не найдено ไม่มีข้อมูลการติดต่อบนไฟล์ - 文件里没有联系信息 + 文‡件里没有联系信息 无联系信息 diff --git a/framework/common/script/org/ofbiz/common/PortalPageServices.xml b/framework/common/script/org/ofbiz/common/PortalPageServices.xml index f048fb7910..eda762e6d9 100644 --- a/framework/common/script/org/ofbiz/common/PortalPageServices.xml +++ b/framework/common/script/org/ofbiz/common/PortalPageServices.xml @@ -38,6 +38,33 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -45,6 +72,24 @@ under the License. + + + + + + + + + + + + + + + + + + @@ -59,4 +104,37 @@ under the License. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/framework/common/servicedef/services.xml b/framework/common/servicedef/services.xml index 1e024fdaa0..2035d04fa0 100644 --- a/framework/common/servicedef/services.xml +++ b/framework/common/servicedef/services.xml @@ -588,7 +588,8 @@ under the License. - + Delete a PortalPortlet from a PortalPage @@ -603,7 +604,8 @@ under the License. - + Create a new Portal Page @@ -613,6 +615,26 @@ under the License. + + Delete a Portal Page + + + + + + + Add a new Column to a PortalPage + + + + + + Delete a Column from a PortalPage + + diff --git a/framework/common/webcommon/WEB-INF/portal-controller.xml b/framework/common/webcommon/WEB-INF/portal-controller.xml index 57786717e9..6c659d72d9 100644 --- a/framework/common/webcommon/WEB-INF/portal-controller.xml +++ b/framework/common/webcommon/WEB-INF/portal-controller.xml @@ -77,12 +77,30 @@ under the License. + + + + + + + + + + + + + + + + + + diff --git a/framework/common/webcommon/portal/appheader.ftl b/framework/common/webcommon/portal/appheader.ftl new file mode 100644 index 0000000000..aaf1418ed3 --- /dev/null +++ b/framework/common/webcommon/portal/appheader.ftl @@ -0,0 +1,40 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +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 +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<#assign selected = headerItem?default("void")> +
+

Example Dashboard

+ +
+
\ No newline at end of file diff --git a/framework/common/webcommon/portal/listPortalPortlets.ftl b/framework/common/webcommon/portal/listPortalPortlets.ftl index 54ac0409a2..e7f75c4b24 100644 --- a/framework/common/webcommon/portal/listPortalPortlets.ftl +++ b/framework/common/webcommon/portal/listPortalPortlets.ftl @@ -45,7 +45,7 @@ margin: 1em;
${portalPortlet.description} diff --git a/framework/common/webcommon/portal/portalPage.ftl b/framework/common/webcommon/portal/portalPage.ftl index e582ee5d19..c003d3fccf 100644 --- a/framework/common/webcommon/portal/portalPage.ftl +++ b/framework/common/webcommon/portal/portalPage.ftl @@ -27,35 +27,9 @@ under the License. - <#if (portalPages.size() > 1)> -
  • - -
  • - - -
  • - ${uiLabelMap.CommonManagePortalPages} -
  • - -
  • - ${uiLabelMap.CommonConfigure} - <#if configurePortalPage?has_content> - ON | OFF - <#else> - ON | OFF - -
  • - <#if configurePortalPage?has_content> -
  • - ${uiLabelMap.CommonAddAPortlet} +
  • + ${uiLabelMap.CommonAddColumn}
  • @@ -64,6 +38,25 @@ under the License.
    + <#if configurePortalPage?has_content> + + <#list portalPageColumnList?if_exists as portalPageColumn> + + <#if portalPageColumn_has_next> + + + + + <#list portalPageColumnList?if_exists as portalPageColumn>
    + +  
    width="${portalPageColumn.columnWidthPixels}"> @@ -147,4 +140,4 @@ under the License. <#else/>

    No portal page data found. You may not have the necessary seed or other data for it.

    - + \ No newline at end of file diff --git a/framework/common/webcommon/portal/portalPageHeader.ftl b/framework/common/webcommon/portal/portalPageHeader.ftl new file mode 100644 index 0000000000..304527b0e0 --- /dev/null +++ b/framework/common/webcommon/portal/portalPageHeader.ftl @@ -0,0 +1,49 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +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 +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +
    +
      + <#if currentPortalPage.portalName?has_content> +
    • + ${currentPortalPage.portalName} +
    • + + + <#if (portalPages.size() > 1)> +
    • + +
    • + + + <#if configurePortalPage?has_content> +
    • + ${uiLabelMap.CommonAddAPortlet} +
    • + + +
    +
    +
    \ No newline at end of file diff --git a/framework/common/widget/PortalPageForms.xml b/framework/common/widget/PortalPageForms.xml index 1d2d9c1fea..93093f9739 100644 --- a/framework/common/widget/PortalPageForms.xml +++ b/framework/common/widget/PortalPageForms.xml @@ -32,7 +32,7 @@ under the License. - + @@ -50,15 +50,17 @@ under the License. + + +
    - - + - + diff --git a/framework/common/widget/PortalPageScreens.xml b/framework/common/widget/PortalPageScreens.xml index b772db9106..5d4775170c 100644 --- a/framework/common/widget/PortalPageScreens.xml +++ b/framework/common/widget/PortalPageScreens.xml @@ -25,12 +25,12 @@ under the License.
    - + - + @@ -46,6 +46,8 @@ under the License. + + diff --git a/framework/example/webapp/example/WEB-INF/controller.xml b/framework/example/webapp/example/WEB-INF/controller.xml index e42d763e83..fbc81cb4df 100644 --- a/framework/example/webapp/example/WEB-INF/controller.xml +++ b/framework/example/webapp/example/WEB-INF/controller.xml @@ -170,10 +170,12 @@ under the License. + + diff --git a/framework/example/widget/example/CommonScreens.xml b/framework/example/widget/example/CommonScreens.xml index 0778315f35..c249d37af4 100644 --- a/framework/example/widget/example/CommonScreens.xml +++ b/framework/example/widget/example/CommonScreens.xml @@ -22,27 +22,30 @@ under the License. xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> -
    - + - + + then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. --> + + + + - - + + + + + @@ -175,19 +178,7 @@ under the License. the user. -->
    - - - -
    - - - - -
    -
    -
    -
    +
    diff --git a/framework/example/widget/example/ExampleAjaxScreens.xml b/framework/example/widget/example/ExampleAjaxScreens.xml index d4d0408a6b..3e19694020 100644 --- a/framework/example/widget/example/ExampleAjaxScreens.xml +++ b/framework/example/widget/example/ExampleAjaxScreens.xml @@ -25,7 +25,7 @@ under the License.
    - + diff --git a/framework/example/widget/example/ExampleFeatureScreens.xml b/framework/example/widget/example/ExampleFeatureScreens.xml index 8d647e998d..243e624735 100644 --- a/framework/example/widget/example/ExampleFeatureScreens.xml +++ b/framework/example/widget/example/ExampleFeatureScreens.xml @@ -25,7 +25,7 @@ under the License.
    - + diff --git a/framework/example/widget/example/ExampleMenus.xml b/framework/example/widget/example/ExampleMenus.xml index a0c80be727..b85e98581a 100644 --- a/framework/example/widget/example/ExampleMenus.xml +++ b/framework/example/widget/example/ExampleMenus.xml @@ -21,14 +21,13 @@ under the License. - + - - + + diff --git a/framework/example/widget/example/ExampleScreens.xml b/framework/example/widget/example/ExampleScreens.xml index 8243dc05e0..15d3799130 100644 --- a/framework/example/widget/example/ExampleScreens.xml +++ b/framework/example/widget/example/ExampleScreens.xml @@ -148,5 +148,35 @@ under the License.
    - + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    diff --git a/framework/example/widget/example/FormWidgetExampleScreens.xml b/framework/example/widget/example/FormWidgetExampleScreens.xml index ff5511b2fe..33eea3d255 100644 --- a/framework/example/widget/example/FormWidgetExampleScreens.xml +++ b/framework/example/widget/example/FormWidgetExampleScreens.xml @@ -24,7 +24,7 @@ under the License.
    - + diff --git a/framework/images/webapp/images/maincss.css b/framework/images/webapp/images/maincss.css index 5d93c185bb..4358f73000 100644 --- a/framework/images/webapp/images/maincss.css +++ b/framework/images/webapp/images/maincss.css @@ -2080,7 +2080,7 @@ padding: 0.1em 0.5em 0.2em 0.5em; #manage-portal-toolbar #config-on-off, #manage-portal-toolbar #manage-portal-page, -#manage-portal-toolbar #add-portlet { +#manage-portal-toolbar #add-column { float: right; } @@ -2088,3 +2088,8 @@ float: right; font-size: 1.5em; font-weight: bold; } + +.manage-portal-column-toolbar #add-portlet, +.manage-portal-column-toolbar #delete-column { +float: right; +}