svn commit: r638179 - in /ofbiz/trunk/applications/marketing: webapp/sfa/WEB-INF/web.xml widget/sfa/CommonScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r638179 - in /ofbiz/trunk/applications/marketing: webapp/sfa/WEB-INF/web.xml widget/sfa/CommonScreens.xml

apatel-2
Author: apatel
Date: Mon Mar 17 19:10:41 2008
New Revision: 638179

URL: http://svn.apache.org/viewvc?rev=638179&view=rev
Log:
converted main-decorator to support two column layout like in catalog manager. Added place holder screenlet for Quick Add Contract and added main-decorator location parameter to web.xml in sfa web.xml.

Modified:
    ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml
    ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml

Modified: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml?rev=638179&r1=638178&r2=638179&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml (original)
+++ ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml Mon Mar 17 19:10:41 2008
@@ -38,7 +38,13 @@
         <param-name>serviceReaderUrls</param-name>
         <param-value>/WEB-INF/services.xml</param-value>
         <description>Configuration File(s) For The Service Dispatcher</description>
-    </context-param>  
+    </context-param>
+    <context-param>
+        <param-name>mainDecoratorLocation</param-name>
+        <param-value>component://marketing/widget/sfa/CommonScreens.xml</param-value>
+        <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
+    </context-param>
+      
     <filter>
         <filter-name>ContextFilter</filter-name>
         <display-name>ContextFilter</display-name>

Modified: ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml?rev=638179&r1=638178&r2=638179&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml Mon Mar 17 19:10:41 2008
@@ -30,12 +30,16 @@
                 <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.MarketingCompanySubtitle" global="true"/>
                 <set field="applicationMenuName" value="SfaAppBar" global="true"/>
                 <set field="applicationMenuLocation" value="component://marketing/widget/sfa/SfaMenus.xml" global="true"/>
+                <set field="leftbarScreenName" value="leftbar"/>
+                <set field="leftbarScreenLocation" value="component://marketing/widget/sfa/CommonScreens.xml"/>
+                <set field="MainColumnStyle" value="leftonly"/>
             </actions>
             <widgets>
                 <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
             </widgets>
         </section>
     </screen>
+    
     <screen name="main">
         <section>
             <widgets>
@@ -51,6 +55,36 @@
                         </container>
                     </decorator-section>
                 </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+
+    <screen name="leftbar">
+        <section>
+            <widgets>
+                <container style="left">
+                    <include-screen name="miniAddContact"/>
+                </container>
+            </widgets>
+        </section>
+    </screen>
+    
+    <screen name="miniAddContact">
+        <section>
+            <widgets>
+                <container style="screenlet">
+                    <container style="screenlet-title-bar">
+                        <container style="h3">
+                            <label text="Quick Add Contract"></label>
+                        </container>
+                    </container>
+                    <container style="screenlet-body">
+                        <section>
+                            <widgets><label text="Quick Add Contract Form"></label>    
+                            </widgets>
+                        </section>
+                    </container>
+                </container>
             </widgets>
         </section>
     </screen>