svn commit: r786016 - /ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml

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

svn commit: r786016 - /ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml

ashish-18
Author: ashish
Date: Thu Jun 18 11:12:19 2009
New Revision: 786016

URL: http://svn.apache.org/viewvc?rev=786016&view=rev
Log:
Applied patch from jira issue OFBIZ-2626 (Edit contact list party form should not have primary key fields in editable mode).
I have provided default value in fromDate field while creating new record. Because after saving it returns to the same screen and it shows empty value for fromDate field. User can change fromDate manually if he / she would prefer to do this.

Thanks Divesh, Ratnesh for the contribution.

Modified:
    ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml

Modified: ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml?rev=786016&r1=786015&r2=786016&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml (original)
+++ ofbiz/trunk/applications/marketing/webapp/marketing/contact/ContactListForms.xml Thu Jun 18 11:12:19 2009
@@ -146,8 +146,10 @@
 
         <field name="contactListId"><hidden/></field>
         <field name="partyId" title="${uiLabelMap.MarketingContactListPartyId}"><lookup target-form-name="LookupPartyName"/></field>
-        <field name="fromDate" title="${uiLabelMap.CommonFromDate}"><date-time/></field>
+        <field name="fromDate" title="${uiLabelMap.CommonFromDate}"><date-time default-value="${groovy: org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/></field>
         <field name="thruDate" title="${uiLabelMap.CommonThruDate}"><date-time/></field>
+        <field use-when="partyId!=null" name="partyId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
+        <field use-when="fromDate!=null" name="fromDate" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field>
 
         <field name="statusId" title="${uiLabelMap.CommonStatus}">
             <drop-down no-current-selected-key="CLPT_PENDING">
@@ -164,8 +166,10 @@
         </field>
 
         <field name="submitButton" title="${uiLabelMap.CommonSave}" widget-style="buttontext"><submit button-type="text-link"/></field>
+        <field use-when="partyId!=null" name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext"><submit button-type="text-link"/></field>
         <field name="cancelLink" title=" " widget-style="buttontext"><hyperlink target="${donePage}" also-hidden="false" description="${uiLabelMap.CommonCancelDone}"/></field>
      </form>
+    
 
     <form name="FindContactListParties" type="single" target="ListContactListParties" title=""
         header-row-style="header-row" default-table-style="basic-table">