[form][style] Added form cell spacing and left-right margins
authorDavid Baz Fayos <david.baz@openbravo.com>
Mon, 03 Jan 2011 14:13:12 +0100
changeset 9514 5efd24dd658a
parent 9513 9e16057d3d4b
child 9515 7fd9eda9afd0
[form][style] Added form cell spacing and left-right margins
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.css
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js	Mon Jan 03 13:09:40 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js	Mon Jan 03 14:13:12 2011 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2011 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -36,7 +36,6 @@
   // ** {{ Layout Settings }} **
   numCols: 4,
   colWidths: ['24%', '24%', '24%', '24%'],
-  //cellBorder: 1, // debug layout
   
   fieldsByInpColumnName: null,
   fieldsByColumnName: null,
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.css	Mon Jan 03 13:09:40 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.css	Mon Jan 03 14:13:12 2011 +0100
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2010 Openbravo SLU 
+ * All portions are Copyright (C) 2010-2011 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -19,10 +19,19 @@
 
 /*=======================================================================
  * Contains styles for:
+ * View Form Styles 
  * Form Fields/Items
  * Form Buttons 
+ * SectionItem Button Styles 
 =======================================================================*/
 
+/*=======================================================================
+ * View Form Styles 
+=======================================================================*/
+
+.OBViewForm {
+  margin: 5px 25px 0px 25px;
+}
 
 /*=======================================================================
  * Form Field Styles 
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js	Mon Jan 03 13:09:40 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js	Mon Jan 03 14:13:12 2011 +0100
@@ -18,6 +18,13 @@
 */
 
 
+isc.OBViewForm.addProperties({
+  styleName: "OBViewForm",
+  //cellBorder: 1, // debug layout
+  cellPadding: 8
+});
+
+
 isc.OBSectionItem.addProperties({
   sectionHeaderClass: "OBSectionItemButton",
   height: 24