Author: jacopoc
Date: Tue Aug 12 03:48:59 2008
New Revision: 685113
URL: http://svn.apache.org/viewvc?rev=685113&view=rev
Log:
Added list of Content records that are associated to the data resource id in
the edit screen, so that it is possible to quickly browse from and to
Content/DataResource.
Modified:
ofbiz/trunk/applications/content/config/ContentUiLabels.xml
ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml
ofbiz/trunk/applications/content/widget/content/DataResourceScreens.xml
Modified: ofbiz/trunk/applications/content/config/ContentUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/config/ContentUiLabels.xml?rev=685113&r1=685112&r2=685113&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/config/ContentUiLabels.xml (original)
+++ ofbiz/trunk/applications/content/config/ContentUiLabels.xml Tue Aug 12
03:48:59 2008
@@ -183,6 +183,9 @@
<value xml:lang="th">หัวà¸à¹à¸</value>
<value xml:lang="zh">å
容</value>
</property>
+ <property key="ContentContentsAssociatedToDataResource">
+ <value xml:lang="en">Content Entries Associated to this Data
Resource</value>
+ </property>
<property key="ContentContentManagerApplication">
<value xml:lang="ar">تطبÙ٠تسÙÙØ± اÙÙ
ØØªÙÙ</value>
<value xml:lang="en">Content Manager Application</value>
Modified: ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml?rev=685113&r1=685112&r2=685113&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml
(original)
+++ ofbiz/trunk/applications/content/widget/content/DataResourceForms.xml Tue
Aug 12 03:48:59 2008
@@ -160,6 +160,21 @@
<field name="createButton" title="${uiLabelMap.CommonCreate}"
use-when="currentValue==null" widget-style="smallSubmit"><submit
button-type="button"/></field>
<field name="updateButton" title="${uiLabelMap.CommonUpdate}"
use-when="currentValue!=null" widget-style="smallSubmit"><submit
button-type="button"/></field>
</form>
+ <form name="ListContentsAssociatedToDataResource" type="list"
list-name="contentRecords" default-widget-style="display"
+ odd-row-style="alternate-row" default-table-style="basic-table
hover-bar">
+ <actions>
+ <entity-and entity-name="Content" list-name="contentRecords">
+ <field-map field-name="dataResourceId"
env-name="dataResourceId"/>
+ <order-by field-name="contentId"/>
+ </entity-and>
+ </actions>
+ <field name="contentId" widget-style="buttontext">
+ <hyperlink also-hidden="false" description="${contentId}"
target="/EditContent?contentId=${contentId}"/>
+ </field>
+ <field name="contentName"><display/></field>
+ <field name="description"><display/></field>
+ </form>
+
<form name="DataResourceMaster" target="createDataResource" title=""
type="single" default-map-name="currentValue"
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="DataResource"
default-field-type="edit"/>
Modified:
ofbiz/trunk/applications/content/widget/content/DataResourceScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/DataResourceScreens.xml?rev=685113&r1=685112&r2=685113&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/widget/content/DataResourceScreens.xml
(original)
+++ ofbiz/trunk/applications/content/widget/content/DataResourceScreens.xml Tue
Aug 12 03:48:59 2008
@@ -186,6 +186,8 @@
</section>
</container>
</container>
+ <label
text="${uiLabelMap.ContentContentsAssociatedToDataResource}" style="h3"/>
+ <include-form
name="ListContentsAssociatedToDataResource"
location="component://content/widget/content/DataResourceForms.xml"/>
</decorator-section>
</decorator-screen>
</widgets>