changeset 513:6de00657cd87

Moved alll list toolbars to bottom and buttons to the right.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 16 Dec 2014 13:19:18 +0100
parents 8818becb8cde
children 61c76c12bd28
files app/view/kommentare/List.js app/view/messungen/List.js app/view/messwerte/List.js app/view/mkommentare/List.js app/view/orte/List.js app/view/status/List.js app/view/zusatzwerte/List.js
diffstat 7 files changed, 18 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/kommentare/List.js	Tue Dec 16 13:17:24 2014 +0100
+++ b/app/view/kommentare/List.js	Tue Dec 16 13:19:18 2014 +0100
@@ -31,8 +31,8 @@
     initComponent: function() {
         this.dockedItems = [{
             xtype: 'toolbar',
-            dock: 'top',
-            items: [{
+            dock: 'bottom',
+            items: ['->', {
                 text: 'Hinzufügen',
                 icon: 'gfx/list-add.png',
                 action: 'add',
--- a/app/view/messungen/List.js	Tue Dec 16 13:17:24 2014 +0100
+++ b/app/view/messungen/List.js	Tue Dec 16 13:19:18 2014 +0100
@@ -24,21 +24,17 @@
     },
 
     probeId: null,
-    
-    
 
     initComponent: function() {
         var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
             clicksToMoveEditor: 1,
             autoCancel: false
         });
-        
         this.plugins = [rowEditing];
-        
         this.dockedItems = [{
             xtype: 'toolbar',
-            dock: 'top',
-            items: [{
+            dock: 'bottom',
+            items: ['->', {
                 text: 'Hinzufügen',
                 icon: 'gfx/list-add.png',
                 action: 'add',
@@ -104,7 +100,7 @@
             },
             editor: {
                 xtype: 'numberfield',
-                allowBlank: false,
+                allowBlank: false
             }
         }, {
             header: 'OK-Flag',
@@ -118,7 +114,7 @@
             },
             editor: {
                 xtype: 'checkboxfield',
-                allowBlank: false,
+                allowBlank: false
             }
          }, {
             header: 'Anzahl Nuklide',
--- a/app/view/messwerte/List.js	Tue Dec 16 13:17:24 2014 +0100
+++ b/app/view/messwerte/List.js	Tue Dec 16 13:19:18 2014 +0100
@@ -29,8 +29,8 @@
     initComponent: function() {
         this.dockedItems = [{
             xtype: 'toolbar',
-            dock: 'top',
-            items: [{
+            dock: 'bottom',
+            items: ['->', {
                 text: 'Hinzufügen',
                 icon: 'gfx/list-add.png',
                 action: 'add',
--- a/app/view/mkommentare/List.js	Tue Dec 16 13:17:24 2014 +0100
+++ b/app/view/mkommentare/List.js	Tue Dec 16 13:19:18 2014 +0100
@@ -29,8 +29,8 @@
     initComponent: function() {
         this.dockedItems = [{
             xtype: 'toolbar',
-            dock: 'top',
-            items: [{
+            dock: 'bottom',
+            items: ['->', {
                 text: 'Hinzufügen',
                 icon: 'gfx/list-add.png',
                 action: 'add',
--- a/app/view/orte/List.js	Tue Dec 16 13:17:24 2014 +0100
+++ b/app/view/orte/List.js	Tue Dec 16 13:19:18 2014 +0100
@@ -29,17 +29,15 @@
             clicksToMoveEditor: 1,
             autoCancel: false
         });
-        
         this.plugins = [rowEditing];
-        
         this.store = Ext.data.StoreManager.get('Orte');
         if (!this.store) {
             this.store = Ext.create('Lada.store.Orte');
         }
         this.dockedItems = [{
             xtype: 'toolbar',
-            dock: 'top',
-            items: [{
+            dock: 'bottom',
+            items: ['->', {
                 text: 'Hinzufügen',
                 icon: 'gfx/list-add.png',
                 action: 'add',
@@ -86,7 +84,7 @@
                 var gemid = record.get('gemId');
                 var record2 = gemeinden.getById(gemid);
                 return record2.get('bezeichnung');
-            },
+            }
             //editor: {
             //    allowBlank: false
             //}
@@ -97,7 +95,7 @@
                 var store = Ext.getStore('staOrte');
                 var record = store.getById(value);
                 return record.get('bezeichnung');
-            },
+            }
             //editor: {
             //    allowBlank: false
             //}
--- a/app/view/status/List.js	Tue Dec 16 13:17:24 2014 +0100
+++ b/app/view/status/List.js	Tue Dec 16 13:19:18 2014 +0100
@@ -29,8 +29,8 @@
     initComponent: function() {
         this.dockedItems = [{
             xtype: 'toolbar',
-            dock: 'top',
-            items: [{
+            dock: 'bottom',
+            items: ['->', {
                 text: 'Hinzufügen',
                 icon: 'gfx/list-add.png',
                 action: 'add',
--- a/app/view/zusatzwerte/List.js	Tue Dec 16 13:17:24 2014 +0100
+++ b/app/view/zusatzwerte/List.js	Tue Dec 16 13:19:18 2014 +0100
@@ -28,8 +28,8 @@
     initComponent: function() {
         this.dockedItems = [{
             xtype: 'toolbar',
-            dock: 'top',
-            items: [{
+            dock: 'bottom',
+            items: ['->', {
                 text: 'Hinzufügen',
                 icon: 'gfx/list-add.png',
                 action: 'add',

http://lada.wald.intevation.org