You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/06/18 13:27:31 UTC

svn commit: r786020 - /ofbiz/branches/release09.04/applications/marketing/webapp/marketing/contact/ContactListForms.xml

Author: ashish
Date: Thu Jun 18 11:27:30 2009
New Revision: 786020

URL: http://svn.apache.org/viewvc?rev=786020&view=rev
Log:
Applied fix from trunk revision: 786016
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/branches/release09.04/applications/marketing/webapp/marketing/contact/ContactListForms.xml

Modified: ofbiz/branches/release09.04/applications/marketing/webapp/marketing/contact/ContactListForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/marketing/webapp/marketing/contact/ContactListForms.xml?rev=786020&r1=786019&r2=786020&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/marketing/webapp/marketing/contact/ContactListForms.xml (original)
+++ ofbiz/branches/release09.04/applications/marketing/webapp/marketing/contact/ContactListForms.xml Thu Jun 18 11:27:30 2009
@@ -145,8 +145,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">
@@ -163,6 +165,7 @@
         </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>
      </form>
 
     <form name="FindContactListParties" type="single" target="ListContactListParties" title=""