ilscipio/scipio-erp

View on GitHub
applications/product/widget/catalog/ImageManagementForms.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
    <!-- SCIPIO - Remove; will be replaced with content app features -->
    <form name="ListImageManagement" type="list" title="" odd-row-style="alternate-row" use-row-submit="true" separate-columns="true"> <!-- orig: default-table-style=-style="basic-table" -->
        <!-- <actions>
            <entity-condition entity-name="ProductContentAndInfo">
                <condition-list combine="and">
                    <condition-expr field-name="productId" from-field="parameters.productId"/>
                    <condition-expr field-name="statusId" from-field="statusForm"/>
                    <condition-expr field-name="productContentTypeId" value="IMAGE"/>
                </condition-list>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
        </row-actions>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}" widget-style="${styles.link_nav_info_name} ${styles.action_view}">
            <hyperlink target="${currentFormName}" description="${drDataResourceName}">
                <parameter param-name="productId"/>
                <parameter param-name="contentId"/>
                <parameter param-name="dataResourceId"/>
            </hyperlink>
        </field>
        <field name="contentId"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="viewAction" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field> -->
    </form>
    
    <!-- <form name="ImageGallery" type="single" method="get" title="" header-row-style="header-row" target="ListImageGallery"> orig: default-table-style=-style="basic-table" 
        <field name="productId" title="${uiLabelMap.ImageManagementChooseProductID}"><lookup target-form-name="LookupProduct"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_select}"><submit button-type="button"/></field>
    </form>
    
    <form name="ImageApprove" type="multi" title="" list-name="contentApprovalProductContentAndInfos" odd-row-style="alternate-row" 
        use-row-submit="true" separate-columns="true" target="updateStatusImageManagement"> orig: default-table-style=-style="basic-table"
        <row-actions>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId"/>
                <field-map field-name="drDataResourceId"/>
            </entity-and>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
            <set field="checkRadio" from-field="parameters.selectStatus"/>
            <entity-one entity-name="Product" value-field="product">
                <field-map field-name="productId" from-field="productId"/>
            </entity-one>
            <entity-one entity-name="ProductCategory" value-field="productCategory">
                <field-map field-name="productCategoryId" from-field="product.primaryProductCategoryId"/>
            </entity-one>
        </row-actions>
        <field name="productId" title="${uiLabelMap.ProductProductName} [${uiLabelMap.ProductProductId}] - ${uiLabelMap.FormFieldTitle_categoryName}" entry-name="productId" position="1" use-when="String prev=(String)previousItem.get(&quot;productId&quot;);return new Boolean(!(prev!=null&amp;&amp;prev.equals(productId)));">
            <display-entity entity-name="Product" key-field-name="productId" description="${internalName} [${productId}] - ${productCategory.categoryName}" also-hidden="false"/>
        </field>
        <field name="statusProductId" title="${uiLabelMap.ProductStatus}" position="1" use-when="String prev=(String)previousItem.get(&quot;productId&quot;);return new Boolean(!(prev!=null&amp;&amp;prev.equals(productId)));">
            <radio no-current-selected-key="${checkRadio}">
                <option key="IM_APPROVED__${productId}" description="${uiLabelMap.FormFieldTitle_approve}"/>
                <option key="IM_REJECTED__${productId}" description="${uiLabelMap.FormFieldTitle_rejectButton}"/>
                <option key="IM_PENDING__${productId}" description="${uiLabelMap.FormFieldTitle_pending}"/>
            </radio>
        </field>
        <field name="_rowSubmit" position="2" title=" " widget-style="hidden"><check all-checked="true"/></field>
        <field name="drObjectInfo" position="2" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="checkStatusId" position="2" title="${uiLabelMap.CommonStatus}">
            <radio no-current-selected-key="${checkRadio}">
                <option key="IM_APPROVED/${productId}" description="${uiLabelMap.FormFieldTitle_approve}"/>
                <option key="IM_REJECTED/${productId}" description="${uiLabelMap.FormFieldTitle_rejectButton}"/>
                <option key="IM_PENDING/${productId}" description="${uiLabelMap.FormFieldTitle_pending}"/>
            </radio>
        </field>
        <field name="drDataResourceName" position="2" title="${uiLabelMap.ImageManagementImageName}"><display/></field>
        <field name="contentId" position="2"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}" position="2"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" position="2"><display/></field>
        <field name="viewAction" position="2" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>
    
    <form name="ListPeopleApproved" type="list" title="" list-name="contentApprovalProductContentAndInfos" odd-row-style="alternate-row" 
        use-row-submit="true" separate-columns="true" target=""> orig: default-table-style=-style="basic-table"
        <row-actions>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResourceView">
                <field-map field-name="contentId"/>
                <field-map field-name="drDataResourceId"/>
            </entity-one>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
            <entity-one entity-name="Product" value-field="product">
                <field-map field-name="productId" from-field="productId"/>
            </entity-one>
            <entity-one entity-name="ProductCategory" value-field="productCategory">
                <field-map field-name="productCategoryId" from-field="product.primaryProductCategoryId"/>
            </entity-one>
        </row-actions>
        <field name="productId" title="${uiLabelMap.ProductProductName} [${uiLabelMap.ProductProductId}] - ${uiLabelMap.FormFieldTitle_categoryName}" entry-name="productId" position="1" use-when="String prev=(String)previousItem.get(&quot;productId&quot;);return new Boolean(!(prev!=null&amp;&amp;prev.equals(productId)));">
            <display-entity entity-name="Product" key-field-name="productId" description="${internalName} [${productId}] - ${productCategory.categoryName}" also-hidden="false"/>
        </field>
        <field name="drObjectInfo" position="2" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" position="2" title="${uiLabelMap.ImageManagementImageName}"><display/></field>
        <field name="contentId" position="2"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}" position="2"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" position="2"><display/></field>
        <field name="viewAction" position="2" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
    </form>
    
    <form name="ListPeopleRejected" type="multi" title="" list-name="productContentAndInfos" odd-row-style="alternate-row" 
        use-row-submit="true" separate-columns="true" target="addRejectedReasonImageManagement"> orig: default-table-style=-style="basic-table"
        <row-actions>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResourceView">
                <field-map field-name="contentId"/>
                <field-map field-name="drDataResourceId"/>
            </entity-one>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
            <entity-one entity-name="Product" value-field="product">
                <field-map field-name="productId" from-field="productId"/>
            </entity-one>
            <entity-one entity-name="ProductCategory" value-field="productCategory">
                <field-map field-name="productCategoryId" from-field="product.primaryProductCategoryId"/>
            </entity-one>
        </row-actions>
        <field name="productId" title="${uiLabelMap.ProductProductName} [${uiLabelMap.ProductProductId}] - ${uiLabelMap.FormFieldTitle_categoryName}" entry-name="productId" position="1" use-when="String prev=(String)previousItem.get(&quot;productId&quot;);return new Boolean(!(prev!=null&amp;&amp;prev.equals(productId)));">
            <display-entity entity-name="Product" key-field-name="productId" description="${internalName} [${productId}] - ${productCategory.categoryName}" also-hidden="false"/>
        </field>
        <field name="_rowSubmit" position="2" title=" " widget-style="hidden"><check all-checked="true"/></field>
        <field name="drObjectInfo" position="2" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" position="2" title="${uiLabelMap.ImageManagementImageName}"><display/></field>
        <field name="contentId" position="2"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}" position="2"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" position="2"><display/></field>
        <field name="statusId" position="2" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="description" position="2" title="${uiLabelMap.ImageManagementRejectedReason}">
            <drop-down allow-empty="true">
                <entity-options entity-name="Enumeration" key-field-name="enumId" description="${description}">
                    <entity-constraint name="enumTypeId" operator="equals" value="IMAGE_REJECT_REASON"/>
                </entity-options>
            </drop-down>
        </field>
        <field name="viewAction" position="2" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>
    
    <form name="ImageRejected" type="multi" title="" list-name="productContentAndInfos" odd-row-style="alternate-row" 
        use-row-submit="true" separate-columns="true" target=""> orig: default-table-style=-style="basic-table"
        <row-actions>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResourceView">
                <field-map field-name="contentId"/>
                <field-map field-name="drDataResourceId"/>
            </entity-one>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
            <entity-and entity-name="UserLoginAndPartyDetails" list="userLoginAndPartyDetails">
                <field-map field-name="userLoginId" from-field="createdByUserLogin"/>
            </entity-and>
            <set field="rejectedBy" value="${userLoginAndPartyDetails[0].firstName} ${userLoginAndPartyDetails[0].middleName} ${userLoginAndPartyDetails[0].lastName}"/>
            <entity-one entity-name="Product" value-field="product">
                <field-map field-name="productId" from-field="productId"/>
            </entity-one>
            <entity-one entity-name="ProductCategory" value-field="productCategory">
                <field-map field-name="productCategoryId" from-field="product.primaryProductCategoryId"/>
            </entity-one>
        </row-actions>
        <field name="productId" title="${uiLabelMap.ProductProductName} [${uiLabelMap.ProductProductId}] - ${uiLabelMap.FormFieldTitle_categoryName}" entry-name="productId" position="1" use-when="String prev=(String)previousItem.get(&quot;productId&quot;);return new Boolean(!(prev!=null&amp;&amp;prev.equals(productId)));">
            <display-entity entity-name="Product" key-field-name="productId" description="${internalName} [${productId}] - ${productCategory.categoryName}" also-hidden="false"/>
        </field>
        <field name="drObjectInfo" position="2" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" position="2" title="${uiLabelMap.ImageManagementImageName}"><display/></field>
        <field name="contentId" position="2"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}" position="2"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}" position="2"><display/></field>
        <field name="thruDate" title="${uiLabelMap.CommonThru}" position="2"><display/></field>
        <field name="statusId" position="2" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="rejectedBy" position="2" title="${uiLabelMap.ImageManagementRejectedBy}"><display/></field>
        <field name="description" position="2" title="${uiLabelMap.ImageManagementRejectedReason}"><display/></field>
        <field name="viewAction" position="2" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
    </form>
    
    <form name="ImageManage" type="single" method="get" title="" header-row-style="header-row" target="ListImageManage"> orig: default-table-style=-style="basic-table" 
        <field name="productId" title="${uiLabelMap.ImageManagementChooseProductID}" widget-style="${styles.link_nav} ${styles.action_find}"><lookup target-form-name="LookupProduct"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_nav} ${styles.action_view}"><submit button-type="button"/></field>
    </form>
    
    <form name="ListImageManage" type="multi" title="" odd-row-style="alternate-row" list-name="productContentAndInfoList"
        use-row-submit="true" separate-columns="true" target="setImageDetail?productId=${parameters.productId}"> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-condition entity-name="ProductContentAndInfo" list="productContentAndInfoList">
                <condition-list combine="and">
                    <condition-expr field-name="productId" from-field="parameters.productId"/>
                    <condition-expr field-name="productContentTypeId" value="IMAGE"/>
                    <condition-list combine="or">
                         <condition-expr field-name="statusId" value="IM_APPROVED"/>
                         <condition-expr field-name="statusId" value="IM_PENDING"/>
                    </condition-list>
                </condition-list>
                <order-by field-name="sequenceNum"/>
                <order-by field-name="statusId"/>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
        </row-actions>
        <field name="productId"><hidden/></field>
        <field name="productContentTypeId"><hidden/></field>
        <field name="contentId"><hidden/></field>
        <field name="contentIdTo"><hidden/></field>
        <field name="dataResourceId"><hidden/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><hidden/></field>
        <field name="_rowSubmit" title=" " widget-style="hidden"><check all-checked="true"/></field>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="action" use-when="${groovy: return context.drMimeTypeId == 'image/jpeg';}" title="${uiLabelMap.ImageManagementAction}" event="onChange" action="javascript:
            document.ListImageManage.action='checkAction?productId=${productId}&amp;contentId=${contentId}&amp;dataResourceId=${dataResourceId}'; 
            document.ListImageManage.submit();">
            <drop-down allow-empty="true">
                  <option key="frame" description="${uiLabelMap.ImageManagementFrame}"/>
                  <option key="crop" description="${uiLabelMap.ImageManagementCrop}"/>
                  <option key="rotate" description="${uiLabelMap.ImageManagementRotate}"/>
            </drop-down>
        </field>
        <field name="description" use-when="${groovy: return context.statusId == 'IM_APPROVED';}" title="${uiLabelMap.ImageManagementCaption}"><text/></field>
        <field name="sequenceNum" use-when="${groovy: return context.statusId == 'IM_APPROVED';}" title="${uiLabelMap.ImageManagementSortOrder}"><text maxlength="2" size="5"/></field>
        <field name="drIsPublic" use-when="${groovy: return context.statusId == 'IM_APPROVED';}" title="${uiLabelMap.ImageManagementPublic}"><check/></field>
        <field name="defaultImage" use-when="${groovy: return context.statusId == 'IM_APPROVED';}" title="${uiLabelMap.ImageManagementDefaultImage}" widget-style="${styles.link_run_sys} ${styles.action_update}">
            <hyperlink target="setDefaultImage" description="${uiLabelMap.ImageManagementSetDefault}">
                <parameter param-name="productId"/>
                <parameter param-name="contentId"/>
                <parameter param-name="contentIdTo"/>
            </hyperlink>
        </field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}" id-name="description">
            <display description="${drDataResourceName}" >
                <in-place-editor url="renameImage" cancel-control="button" saving-text="Updating..." text-between-controls=" ">
                    <simple-editor/>
                    <field-map field-name="productId" from-field="productId"/>
                    <field-map field-name="contentId" from-field="contentId"/>
                </in-place-editor>
            </display>
        </field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="viewAction" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
        <field name="deleteAction" title="${uiLabelMap.CommonRemove}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="removeImage" description="${uiLabelMap.CommonRemove}" also-hidden="false" confirmation-message="Do you want to remove this image?">
                <parameter param-name="productId" from-field="productId"/>
                <parameter param-name="contentId" from-field="contentId"/>
                <parameter param-name="productContentTypeId" from-field="productContentTypeId"/>
                <parameter param-name="fromDate" from-field="fromDate"/>
            </hyperlink>
        </field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
        <sort-order>
            <sort-field name="drObjectInfo"/>
            <sort-field name="action"/>
            <sort-field name="description"/>
            <sort-field name="sequenceNum"/>
            <sort-field name="drIsPublic"/>
            <sort-field name="thumbnail"/>
            <sort-field name="drDataResourceName"/>
            <sort-field name="statusId"/>
        </sort-order>
    </form>
    
    <form name="ShowDefaultImage" type="single" title="" header-row-style="header-row"> orig: default-table-style=-style="basic-table" 
        <actions>
            <entity-and entity-name="ProductContentAndInfo" list="productContentAndInfos">
                <field-map field-name="productId" from-field="parameters.productId"/>
                <field-map field-name="productContentTypeId" value="DEFAULT_IMAGE"/>
            </entity-and>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId" from-field="productContentAndInfos[0].contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
        </actions>
        <field name="drObjectInfo" title=" "><image style="cssImgLarge"/></field>
    </form>
    
    <form name="ImageFrames" type="single" title="" target="uploadFrame" header-row-style="header-row" target-window="_self"> orig: default-table-style=-style="basic-table"
        <actions>
            <script location="component://product/webapp/catalog/WEB-INF/actions/imagemanagement/ImageFrame.groovy"/>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResource">
                <field-map field-name="contentId" from-field="parameters.contentId"/>
                <field-map field-name="drDataResourceId" from-field="parameters.dataResourceId"/>
            </entity-one>
            <set field="imageURL" from-field="contentDataResource.drObjectInfo"/>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResource2">
                <field-map field-name="contentId" from-field="frameContentId"/>
                <field-map field-name="drDataResourceId" from-field="frameDataResourceId"/>
            </entity-one>
            
            <set field="frameURL" from-field="contentDataResource2.drObjectInfo"/>
            <set field="previewURL" from-field="contentFrameDataResource.drDataResourceName"/>
        </actions>
        <field name="productId"><hidden value="${parameters.productId}"/></field>
        <field name="contentId"><hidden value="${parameters.contentId}"/></field>
        <field name="dataResourceId"><hidden value="${parameters.dataResourceId}"/></field>
        <field name="frameContentId"><hidden value="${frameContentId}"/></field>
        <field name="frameDataResourceId"><hidden value="${frameDataResourceId}"/></field>
        <field name="checkFrame"><hidden value="T"/></field>
        <field name="frameURL"><hidden value="${parameters.checkFrame}"/></field>
        <field name="imageName"><hidden value="${contentDataResource.drDataResourceName}"/></field>
        <field name="imageShare" use-when="imageURL != null" title="${uiLabelMap.CommonImage}" widget-area-style="image-src"><image value="${imageURL}"/></field>
        <field name="imageShare" use-when="imageURL == null" title="${uiLabelMap.CommonImage}"><image value="/images/defaultImage.jpg" style="cssImgXLarge"/></field>
        <field name="imageDimension" widget-area-style="dimension"><display/></field>
        <field name="imageFrame" use-when="frameURL != null" title="${uiLabelMap.ImageManagementFrame}" widget-area-style="image-fr"><image value="${frameURL}"/></field>
        <field name="imageFrame" use-when="frameURL == null" title="${uiLabelMap.ImageManagementFrame}" widget-area-style="image-fr"><image value="/images/defaultImage.jpg" style="cssImgXLarge"/></field>
        <field name="frameDimension" use-when="frameURL != null" widget-area-style="frameDimension"><display/></field>
        <field name="uploadedFile" title="${uiLabelMap.ImageManagementUploadNewFrame}" event="onClick" action="javascript:setUploadTarget('_self');"><file/></field>
        <field name="uploadAction" title="${uiLabelMap.CommonUpload}" widget-style="${styles.link_run_sys} ${styles.action_import}" event="onClick" action="javascript:document.ImageFrames.setAttribute('enctype', 'multipart/form-data');setTargetWindows('upload');document.ImageFrames.submit();"><submit button-type="button"/></field>
        <field name="imageFrameContentId" title="${uiLabelMap.ImageManagementChooseExistFrame}"><lookup target-form-name="LookupImageFrame"/></field>
        <field name="confirmAction" title="${uiLabelMap.FormFieldTitle_confirmButton}" widget-style="${styles.link_run_sys} ${styles.action_update}" event="onClick" action="javascript:setTargetWindows('choose');document.ImageFrames.submit();"><submit button-type="button"/></field>
        <field name="imageWidth" title="${uiLabelMap.ImageManagementImageWidth}"><text/></field>
        <field name="imageHeight" title="${uiLabelMap.ImageManagementImageHeight}"><text/></field>
        <field name="previewAction" title="${uiLabelMap.CommonPreview}" use-when="frameURL != null" widget-style="${styles.link_run_sys} ${styles.action_view}" event="onClick" action="javascript:setTargetWindows('new');"><submit button-type="button"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonCreate}" use-when="frameURL != null" widget-style="${styles.link_run_sys} ${styles.action_add}" event="onClick" action="javascript:setTargetWindows('_self');"><submit button-type="button"/></field>
        <field name="cancelAction" title=" " widget-style="${styles.link_nav_cancel}" event="onClick" action="javascript:deletePreviewFrameImage();">
            <hyperlink target="ListImageManage" description="${uiLabelMap.CommonCancel}">
                <parameter param-name="productId" from-field="parameters.productId"/>
            </hyperlink>
        </field>
    </form>

    <form name="ImageCropping" type="single" title="" header-row-style="header-row" target="CropImage"> orig: default-table-style=-style="basic-table" 
        <actions>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResource">
                <field-map field-name="contentId" from-field="parameters.contentId"/>
                <field-map field-name="drDataResourceId" from-field="parameters.dataResourceId"/>
            </entity-one>
            <set field="imageURL" from-field="contentDataResource.drObjectInfo"/>
        </actions>
        <field name="productId"><hidden/></field>
        <field name="imageName"><hidden value="${contentDataResource.drDataResourceName}"/></field>
        <field name="imageURL"><hidden/></field>
        <field name="imageX"><hidden/></field>
        <field name="imageY"><hidden/></field>
        <field name="imageW"><hidden/></field>
        <field name="imageH"><hidden/></field>
        SCIPIO: widget-area-style here creates an extra div
        <field name="imageCropp" widget-area-style=";container:cropbox" use-when="imageURL != null" title="${uiLabelMap.CommonImage}"><image value="${imageURL}"/></field>
        <field name="imageCropp" use-when="imageURL == null" title="${uiLabelMap.CommonImage}" ><image value="/images/defaultImage.jpg" style="cssImgXLarge"/></field>
    </form>
    
    <form name="ImageRotating" type="single" target="RotateImage" title="" header-row-style="header-row"> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResource">
                <field-map field-name="contentId" from-field="parameters.contentId"/>
                <field-map field-name="drDataResourceId" from-field="parameters.dataResourceId"/>
            </entity-one>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId" from-field="parameters.contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="imageURL" from-field="contentDataResourceViews[0].drObjectInfo"/>
        </actions>
        <field name="productId"><hidden/></field>
        <field name="contentId"><hidden/></field>
        <field name="dataResourceId"><hidden/></field>
        <field name="angle"><hidden/></field>
        <field name="imageName"><hidden value="${contentDataResource.drDataResourceName}"/></field>
        SCIPIO: widget-area-style here creates an extra div
        <field name="imageRotate" widget-area-style=";container:cropbox" title="${uiLabelMap.CommonImage}"><image value="${imageURL}" /></field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}" position="1"><submit button-type="button"/></field>
        <field name="cancelAction" title=" " widget-style="${styles.link_nav_cancel}">
            <hyperlink target="ListImageManage" description="${uiLabelMap.CommonCancel}">
                <parameter param-name="productId" from-field="parameters.productId"/>
            </hyperlink>
        </field>
    </form>
    
    <form name="ImageShare" type="single" title="" header-row-style="header-row"> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResource">
                <field-map field-name="contentId" from-field="parameters.contentId"/>
                <field-map field-name="drDataResourceId" from-field="parameters.dataResourceId"/>
            </entity-one>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId" from-field="parameters.contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="imageThumbnail" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <set field="imageURL" from-field="contentDataResource.drObjectInfo"/>
        </actions>
        <field name="imageURL"><hidden/></field>
        <field name="imageThumbnail"><hidden/></field>
        <field name="seoURL"><hidden value="${parameters.seoUrl}"/></field>
        <field name="contentId"><hidden/></field>
        <field name="imageShare" use-when="imageURL != null" title="${uiLabelMap.CommonImage}"><image value="${imageURL}" style="cssImgXLarge"/></field>
        <field name="imageShare" use-when="imageURL == null" title="${uiLabelMap.CommonImage}"><image value="/images/defaultImage.jpg" style="cssImgXLarge"/></field>
        <field name="link" title="${uiLabelMap.CommonLink}" event="onClick" action="javascript:select();"><text/></field>
        <field name="direct" title="${uiLabelMap.ImageManagementDirectLink}" event="onClick" action="javascript:select();"><text/></field>
        <field name="forumCode" title="${uiLabelMap.ImageManagementForumCode}" event="onClick" action="javascript:select();"><text/></field>
        <field name="forumThumbnail" title="${uiLabelMap.ImageManagementForumThumbnail}" event="onClick" action="javascript:select();"><text/></field>
        <field name="altForumCode" title="${uiLabelMap.ImageManagementAltForumCode}" event="onClick" action="javascript:select();"><text/></field>
        <field name="altForumThumbnail" title="${uiLabelMap.ImageManagementAltForumThumbnail}" event="onClick" action="javascript:select();"><text/></field>
        <field name="html" title="${uiLabelMap.ImageManagementHTMLCode}" event="onClick" action="javascript:select();"><text/></field>
        <field name="htmlThumbnail" title="${uiLabelMap.ImageManagementHTMLThumbnail}" event="onClick" action="javascript:select();"><text/></field>
    </form>
    
    <form name="ImageReplace" type="single" target="replaceImageToExistImage" title="" header-row-style="header-row"> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResourceExist">
                <field-map field-name="contentId" from-field="parameters.contentIdExist"/>
                <field-map field-name="drDataResourceId" from-field="parameters.dataResourceIdExist"/>
            </entity-one>
            <set field="imageURLExist" from-field="contentDataResourceExist.drObjectInfo"/>
            <entity-one entity-name="ContentDataResourceView" value-field="contentDataResourceReplace">
                <field-map field-name="contentId" from-field="parameters.contentIdReplace"/>
                <field-map field-name="drDataResourceId" from-field="parameters.dataResourceIdReplace"/>
            </entity-one>
            <set field="imageURLReplace" from-field="contentDataResourceReplace.drObjectInfo"/>
        </actions>
        <field name="productId"><hidden/></field>
        <field name="contentIdExist"><hidden value="${parameters.contentIdExist}"/></field>
        <field name="contentIdReplace"><hidden value="${parameters.contentIdReplace}"/></field>
        <field name="dataResourceNameExist"><hidden value="${contentDataResourceExist.drDataResourceName}"/></field>
        <field name="dataResourceNameReplace"><hidden value="${contentDataResourceReplace.drDataResourceName}"/></field>
        <field name="imageExist" position="1" use-when="imageURLExist != null" title="${uiLabelMap.ImageManagementReplacementImage}"><image value="${imageURLExist}" style="cssImgXLarge"/></field>
        <field name="imageReplace" position="2" use-when="imageURLReplace != null&amp;&amp;imageURLExist != null" title="${uiLabelMap.ImageManagementImageToReplace}"><image value="${imageURLReplace}" style="cssImgXLarge"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_run_sys} ${styles.action_update}"><submit button-type="button"/></field>
    </form>
    
    <form name="ListImageUpload" type="list" title="" list-name="productContent" odd-row-style="alternate-row" use-row-submit="true" separate-columns="true"> orig: default-table-style=-style="basic-table"
        <actions>
            <set field="dateNow" type="Timestamp" value="${groovy:import org.ofbiz.base.util.UtilDateTime;UtilDateTime.nowTimestamp().getTime() - 18000;}"/>
            <entity-condition entity-name="ProductContentAndInfo">
                <condition-list combine="and">
                    <condition-expr field-name="productId" from-field="parameters.productId"/>
                       <condition-expr field-name="productContentTypeId" value="IMAGE"/>
                       <condition-expr field-name="fromDate" operator="greater-equals" from-field="dateNow" />
                </condition-list>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
        </row-actions>
        <field name="productId"><hidden/></field>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
        <field name="status"><display description="Uploaded"/></field>
        <field name="removeAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="removeImageUpload" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="productId"/>
                <parameter param-name="contentId"/>
                <parameter param-name="productContentTypeId"/>
                <parameter param-name="fromDate"/>
            </hyperlink>
        </field>
    </form>
      
    <form name="ListLookupImage" type="list" list-name="listIt" paginate-target="ListLookupImage" odd-row-style="alternate-row"> orig: default-table-style=-style="basic-table hover-bar"
        <actions>
            <entity-condition entity-name="ProductContentAndInfo">
                <condition-list combine="and">
                    <condition-expr field-name="productId" from-field="parameters.productId"/>
                    <condition-expr field-name="statusId" value="IM_APPROVED"/>
                    <condition-expr field-name="productContentTypeId" value="IMAGE"/>
                </condition-list>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
        </row-actions>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}" widget-style="${styles.link_nav_info_name}">
            <hyperlink also-hidden="false" target-type="plain" description="${drDataResourceName}" target="javascript:set_value('${contentId}')"/>
        </field>
        <field name="contentId"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}"><display/></field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="viewAction" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
    </form>
    
    <form name="ProductImageReplace" type="single" method="get" title="" header-row-style="header-row" target="ListImageReplace"> orig: default-table-style=-style="basic-table" 
        <field name="productId" title="${uiLabelMap.ImageManagementChooseProductID}"><lookup target-form-name="LookupProduct"/></field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_nav} ${styles.action_view}"><submit button-type="button"/></field>
    </form>
    
    <form name="ListImageRecentlyApproved" type="list" title="" odd-row-style="alternate-row" use-row-submit="true" separate-columns="true" target=""> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-condition entity-name="ProductContentAndInfo">
                <condition-list combine="and">
                    <condition-expr field-name="productId" from-field="parameters.productId"/>
                    <condition-expr field-name="productContentTypeId" value="IMAGE"/>
                    <condition-expr field-name="statusId" value="IM_APPROVED"/>
                    <condition-expr field-name="purchaseFromDate" operator="greater-equals" from-field="parameters.date1"/>
                    <condition-expr field-name="purchaseFromDate" operator="less" from-field="parameters.date2"/>
                </condition-list>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
            <entity-and entity-name="UserLoginAndPartyDetails" list="userLoginAndPartyDetails">
                <field-map field-name="userLoginId" from-field="createdByUserLogin"/>
            </entity-and>
            <set field="ApprovedBy" value="${userLoginAndPartyDetails[0].firstName} ${userLoginAndPartyDetails[0].middleName} ${userLoginAndPartyDetails[0].lastName}"/>
        </row-actions>
        <field name="productId"><hidden/></field>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}"><display/></field>
        <field name="contentId"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}"><display/></field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="purchaseFromDate" title="${uiLabelMap.ImageManagementApprovedDate}"><display/></field>
        <field name="viewAction" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
    </form>
    
    <form name="ListImageExist" type="list" title="" odd-row-style="alternate-row" use-row-submit="true" separate-columns="true"> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-condition entity-name="ProductContentAndInfo">
                <condition-list combine="and">
                    <condition-expr field-name="productId" from-field="parameters.productId"/>
                    <condition-expr field-name="statusId" from-field="statusForm"/>
                    <condition-expr field-name="productContentTypeId" value="IMAGE"/>
                </condition-list>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
        </row-actions>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}" widget-style="${styles.link_nav_info_name} ${styles.action_view}">
            <hyperlink target="ListImageReplace" description="${drDataResourceName}">
                <parameter param-name="productId"/>
                <parameter param-name="contentIdExist" from-field="contentId"/>
                <parameter param-name="dataResourceIdExist" from-field="dataResourceId"/>
            </hyperlink>
        </field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="viewAction" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
    </form>
    
    <form name="ListImageReplace" type="list" title="" odd-row-style="alternate-row" use-row-submit="true" separate-columns="true"> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-condition entity-name="ProductContentAndInfo">
                <condition-list combine="and">
                    <condition-expr field-name="productId" from-field="parameters.productId"/>
                    <condition-expr field-name="statusId" from-field="statusForm"/>
                    <condition-expr field-name="productContentTypeId" value="IMAGE"/>
                </condition-list>
            </entity-condition>
        </actions>
        <row-actions>
            <entity-and entity-name="ContentAssoc" list="contentAssocs">
                <field-map field-name="contentId"/>
                <field-map field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
            </entity-and>
            <set field="contentIdTo" from-field="contentAssocs[0].contentIdTo"/>
            <entity-and entity-name="ContentDataResourceView" list="contentDataResourceViews">
                <field-map field-name="contentId" from-field="contentIdTo"/>
            </entity-and>
            <set field="drObjectInfo" from-field="contentDataResourceViews[0].drObjectInfo"/>
            <entity-and entity-name="ContentDataResourceView" list="origContentDataResourceViews">
                <field-map field-name="contentId"/>
            </entity-and>
        </row-actions>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}" widget-style="${styles.link_nav_info_name} ${styles.action_view}">
            <hyperlink target="ListImageReplace" description="${drDataResourceName}">
                <parameter param-name="productId"/>
                <parameter param-name="contentIdReplace" from-field="contentId"/>
                <parameter param-name="dataResourceIdReplace" from-field="dataResourceId"/>
                <parameter param-name="contentIdExist" from-field="parameters.contentIdExist"/>
                <parameter param-name="dataResourceIdExist" from-field="parameters.dataResourceIdExist"/>
            </hyperlink>
        </field>
        <field name="fromDate" title="${uiLabelMap.CommonFrom}"><display/></field>
        <field name="statusId" title="${uiLabelMap.CommonStatus}">
            <display-entity entity-name="StatusItem" key-field-name="statusId" description="${description}"/>
        </field>
        <field name="viewAction" title="${uiLabelMap.CommonView}" widget-style="${styles.link_nav} ${styles.action_view}">
            <hyperlink target="${origContentDataResourceViews[0].drObjectInfo}" target-window="_blank" description="${uiLabelMap.CommonView}" also-hidden="false" target-type="content"/>
        </field>
    </form>
    
    <form name="ListLookupImageFrame" type="list" list-name="listIt" paginate-target="ListLookupImageFrame" odd-row-style="alternate-row"> orig: default-table-style=-style="basic-table hover-bar"
        <actions>
            <entity-condition entity-name="ContentDataResourceView">
                <condition-expr field-name="contentTypeId" value="IMAGE_FRAME"/>
            </entity-condition>
        </actions>
        <field name="drObjectInfo" title="${uiLabelMap.CommonImage}"><image style="cssImgLarge"/></field>
        <field name="drDataResourceName" title="${uiLabelMap.ImageManagementImageName}" widget-style="${styles.link_nav_info_name}">
            <hyperlink also-hidden="false" target-type="plain" description="${drDataResourceName}" target="javascript:set_value('${contentId}')"/>
        </field>
        <field name="contentId"><display/></field>
        <field name="dataResourceId" title="${uiLabelMap.ContentDataResourceId}"><display/></field>
        <field name="createdDate"><display/></field>
        <field name="deleteAction" title="${uiLabelMap.CommonDelete}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="deleteImageFrame" target-window="_blank" description="${uiLabelMap.CommonDelete}" also-hidden="false">
                <parameter param-name="contentId" from-field="contentId"/>
            </hyperlink>
        </field>
    </form>
    
    <form name="ImageResize" type="single" title="" header-row-style="header-row" target="resizeImages"> orig: default-table-style=-style="basic-table"
        <field name="resizeOption">
            <drop-down >
                <option key="resizeAllImages" description="Resize All Images"/>
                <option key="createNewThumbnail" description="Create New Thumbnail Size"/>
            </drop-down>
        </field>
        <field name="productId" title="${uiLabelMap.ImageManagementChooseProductID}"><lookup target-form-name="LookupProduct"/></field>
        <field name="size" title="${uiLabelMap.ImageManagementImageWidth}"><text/></field>
        <field name="submitAction" title="${uiLabelMap.CommonSubmit}" widget-style="${styles.link_nav} ${styles.action_view}"><submit button-type="button"/></field>
    </form>
    
    <form name="SizeListOfProduct" type="list" title="" odd-row-style="alternate-row" use-row-submit="true" separate-columns="true"> orig: default-table-style=-style="basic-table"
        <actions>
            <entity-condition entity-name="ContentAssoc">
                <condition-list combine="and">
                    <condition-expr field-name="contentId" from-field="parameters.contentIdAccos"/>
                    <condition-expr field-name="contentAssocTypeId" value="IMAGE_THUMBNAIL"/>
                    <condition-expr field-name="statusId" from-field="statusForm"/>
                </condition-list>
                <order-by field-name="mapKey"/>
            </entity-condition>
        </actions>
        <field name="mapKey" title="${uiLabelMap.CommonSize}"><display/></field>
        <field name="deleteAction" title="${uiLabelMap.CommonRemove}" use-when="${groovy: return context.mapKey != '100';}" widget-style="${styles.link_run_sys} ${styles.action_remove}">
            <hyperlink target="removeImageBySize" description="${uiLabelMap.CommonRemove}" also-hidden="false" confirmation-message="Do you want to remove this size?">
                <parameter param-name="productId" from-field="parameters.productId"/>
                <parameter param-name="mapKey" from-field="mapKey"/>
            </hyperlink>
        </field>
    </form> -->
</forms>