[Lada-commits] [PATCH 2 of 4] Updated style to fit the other windows style

Wald Commits scm-commit at wald.intevation.org
Fri Feb 3 14:32:33 CET 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1486128670 -3600
# Node ID f1e348109ebbbe031d1388ed02db216d719d72d0
# Parent  3a3148d50b9cf15207a47d3f24e6aaae9e8474fa
Updated style to fit the other windows style.

diff -r 3a3148d50b9c -r f1e348109ebb app/view/form/Ortserstellung.js
--- a/app/view/form/Ortserstellung.js	Fri Feb 03 14:30:16 2017 +0100
+++ b/app/view/form/Ortserstellung.js	Fri Feb 03 14:31:10 2017 +0100
@@ -20,6 +20,8 @@
 
     margin: 5,
 
+    border: 0,
+
     record: null,
 
     trackResetOnLoad: true,
@@ -44,6 +46,7 @@
             fieldLabel: i18n.getMsg('orte.ortId')
         }, {
             xtype: 'checkbox',
+            labelWidth: 125,
             name: 'aktiv',
             fieldLabel: 'aktiv:'
         },{
@@ -184,7 +187,6 @@
         this.dockedItems = [{
             xtype: 'toolbar',
             dock: 'bottom',
-            ui: 'footer',
             border: '0, 1, 1, 1',
             style: {
                 borderBottom: '1px solid #b5b8c8 !important',
@@ -194,14 +196,14 @@
             items: ['->', {
                 text: i18n.getMsg('save'),
                 action: 'save',
-                handler: me.saveOrt,
+                qtip: 'Daten speichern',
+                icon: 'resources/img/dialog-ok-apply.png',
                 disabled: true
             }, {
-                text: i18n.getMsg('close'),
-                action: 'close',
-                handler: function() {
-                    me.close();
-                }
+                text: i18n.getMsg('discard'),
+                qtip: 'Änderungen verwerfen',
+                icon: 'resources/img/dialog-cancel.png',
+                action: 'revert',
             }]
         }];
 
diff -r 3a3148d50b9c -r f1e348109ebb app/view/form/Ortszuordnung.js
--- a/app/view/form/Ortszuordnung.js	Fri Feb 03 14:30:16 2017 +0100
+++ b/app/view/form/Ortszuordnung.js	Fri Feb 03 14:31:10 2017 +0100
@@ -74,6 +74,11 @@
                         icon: 'resources/img/dialog-ok-apply.png',
                         action: 'save',
                         disabled: true
+                    }, {
+                        text: i18n.getMsg('discard'),
+                        qtip: 'Änderungen verwerfen',
+                        icon: 'resources/img/dialog-cancel.png',
+                        action: 'revert',
                     }]
                 }],
                 items: [{
diff -r 3a3148d50b9c -r f1e348109ebb app/view/window/Ortserstellung.js
--- a/app/view/window/Ortserstellung.js	Fri Feb 03 14:30:16 2017 +0100
+++ b/app/view/window/Ortserstellung.js	Fri Feb 03 14:31:10 2017 +0100
@@ -51,6 +51,11 @@
                 }
             })
         ];
+        this.buttons = [{
+            text: 'Schließen',
+            scope: this,
+            handler: this.close
+        }];
         this.callParent(arguments);
     }
-});
\ No newline at end of file
+});
diff -r 3a3148d50b9c -r f1e348109ebb app/view/window/Ortszuordnung.js
--- a/app/view/window/Ortszuordnung.js	Fri Feb 03 14:30:16 2017 +0100
+++ b/app/view/window/Ortszuordnung.js	Fri Feb 03 14:31:10 2017 +0100
@@ -137,13 +137,6 @@
                 dockedItems: [{
                     xtype: 'toolbar',
                     dock: 'bottom',
-                    ui: 'footer',
-                    border: '0, 1, 1, 1',
-                    style: {
-                        borderBottom: '1px solid #b5b8c8 !important',
-                        borderLeft: '1px solid #b5b8c8 !important',
-                        borderRight: '1px solid #b5b8c8 !important'
-                    },
                     items: [{
                         xtype: 'textfield',
                         name: 'search',


More information about the Lada-commits mailing list