change icons, max length of fields
authorStefanie Stamer <s.stamer@metaways.de>
Fri, 9 Sep 2011 09:49:50 +0000 (11:49 +0200)
committerMichael Spahn <m.spahn@metaways.de>
Thu, 4 Oct 2012 13:54:55 +0000 (15:54 +0200)
tine20/Inventory/Setup/setup.xml
tine20/Inventory/css/Inventory.css
tine20/Inventory/js/InventoryItemEditDialog.js
tine20/Inventory/js/InventoryItemGridPanel.js
tine20/Inventory/js/Model.js

index f0bc4a6..47bff5e 100644 (file)
@@ -24,7 +24,7 @@
                 <field>
                     <name>name</name>
                     <type>text</type>
-                    <length>255</length>
+                    <length>100</length>
                     <notnull>true</notnull>
                 </field>
                 <!-- keyfield 'status' -->
                 <field>
                     <name>inventory_id</name>
                     <type>text</type>
-                    <length>255</length>
+                    <length>100</length>
                     <notnull>false</notnull>
                 </field>
                 <field>
                     <name>description</name>
                     <type>text</type>
-                    <length>255</length>
                     <notnull>true</notnull>
                 </field>
                 <field>
index c0fc30b..25a8b76 100644 (file)
@@ -7,13 +7,14 @@
  * @copyright   Copyright (c) 2007-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  *
  */
+
 .InventoryIconCls {
-    background-image:url(../../images/oxygen/16x16/actions/document-open-recent.png) !important;
+    /*background-image:url(../../images/oxygen/16x16/actions/document-open-recent.png) !important;*/
+    background-image:url(../../images/oxygen/16x16/apps/klipper.png) !important;
 }
 .x-btn-medium .InventoryIconCls {
-    background-image:url(../../images/oxygen/22x22/actions/document-open-recent.png) !important;
+    background-image:url(../../images/oxygen/22x22/actions/document-new.png) !important;
 }
 .x-btn-large .InventoryIconCls {
-    background-image:url(../../images/oxygen/32x32/actions/document-open-recent.png) !important;
+    background-image:url(../../images/oxygen/32x32/actions/document-new.png) !important;
 }
\ No newline at end of file
index 7915b5d..5d43aac 100644 (file)
@@ -121,20 +121,22 @@ Tine.Inventory.InventoryItemEditDialog = Ext.extend(Tine.widgets.dialog.EditDial
                         fieldLabel: this.app.i18n._('Name'),
                         name: 'name',
                         columnWidth: 0.5,
-                        allowBlank: false
+                        allowBlank: false,
+                        maxLength: 100
                         }, new Tine.Tinebase.widgets.keyfield.ComboBox({
                             app: 'Inventory',
                             keyFieldName: 'inventoryType',
                             fieldLabel: this.app.i18n._('Type'),
                             name: 'type',
                             columnWidth: 0.5,
-                            allowBlank: false
+                            allowBlank: false,
+                            maxLength: 100
                         })],
                         [{
                             columnWidth: 1,
                             fieldLabel: this.app.i18n._('ID'),
                             name: 'inventory_id',
-                            
+                            maxLength: 100
                         }],
                         [{
                                xtype: 'textarea',
@@ -144,7 +146,6 @@ Tine.Inventory.InventoryItemEditDialog = Ext.extend(Tine.widgets.dialog.EditDial
                             preventScrollbars: false,
                             columnWidth: 1,
                             height: 150,
-   
                             emptyText: this.app.i18n._('Enter description')
                         }],
                         [{
@@ -152,7 +153,8 @@ Tine.Inventory.InventoryItemEditDialog = Ext.extend(Tine.widgets.dialog.EditDial
                             xtype: 'tine.widget.field.AutoCompleteField',
                             recordClass: this.recordClass,
                             fieldLabel: this.app.i18n._('Location'),
-                            name: 'location'
+                            name: 'location',
+                            maxLength: 255
                             
                         },
                         {
@@ -178,7 +180,7 @@ Tine.Inventory.InventoryItemEditDialog = Ext.extend(Tine.widgets.dialog.EditDial
                             fieldLabel: this.app.i18n._('Active number'),
                             name: 'active_number',
                             value: 1,
-                            minValue: 0,
+                            minValue: 0
                             
                         }],
                         
index 9af6d39..a9d5c25 100644 (file)
@@ -81,7 +81,7 @@ Tine.Inventory.InventoryItemGridPanel = Ext.extend(Tine.widgets.grid.GridPanel,
             columns: [{
                 id: 'inventory_id',
                 header: this.app.i18n._("ID"),
-                width: 50,
+                width: 90,
                 sortable: true,
                 dataIndex: 'inventory_id'
             }, {
@@ -113,19 +113,19 @@ Tine.Inventory.InventoryItemGridPanel = Ext.extend(Tine.widgets.grid.GridPanel,
             },{
                 id: 'total_number',
                 header: this.app.i18n._("Total number"),
-                width: 30,
+                width: 25,
                 sortable: true,
                 dataIndex: 'total_number'
             },{
                 id: 'active_number',
                 header: this.app.i18n._("Active number"),
-                width: 30,
+                width: 25,
                 sortable: true,
                 dataIndex: 'active_number'
             },{
                 id: 'description',
                 header: this.app.i18n._("Description"),
-                width: 80,
+                width: 50,
                 sortable: true,
                 dataIndex: 'description'
             }
index d76800a..ed48185 100644 (file)
@@ -35,8 +35,8 @@ Tine.Inventory.Model.InventoryItem = Tine.Tinebase.data.Record.create(Tine.Tineb
     idProperty: 'id',
     titleProperty: 'title',
     // ngettext('inventory item', 'inventory records', n);
-    recordName: 'inventory item',
-    recordsName: 'inventory items',
+    recordName: 'Item',
+    recordsName: 'Items',
     containerProperty: 'container_id',
     // ngettext('inventory record list', 'inventory record lists', n);
     containerName: 'inventory item list',