diff app/controller/form/Messung.js @ 1386:7e9a6f0e55b3

Added UI for audit trail. TODO: add more i18n strings.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 24 Feb 2017 14:32:55 +0100
parents 81b585645581
children
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Thu Feb 23 12:49:28 2017 +0100
+++ b/app/controller/form/Messung.js	Fri Feb 24 14:32:55 2017 +0100
@@ -24,6 +24,9 @@
             'messungform button[action=discard]': {
                 click: this.discard
             },
+            'messungform button[action=audit]': {
+                click: this.showAuditTrail
+            },
             'messungform': {
                 dirtychange: this.dirtyForm
             }
@@ -135,5 +138,14 @@
                 form.owner.up('window').enableChildren();
             }
         }
+    },
+
+    showAuditTrail: function(button) {
+        Ext.create('Lada.view.window.AuditTrail', {
+            autoShow: true,
+            closeAction: 'destroy',
+            type: 'messung',
+            objectId: button.up('form').recordId
+        });
     }
 });

http://lada.wald.intevation.org