Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
1385:3f499c52eee6 | 1386:7e9a6f0e55b3 |
---|---|
21 'messungform button[action=save]': { | 21 'messungform button[action=save]': { |
22 click: this.save | 22 click: this.save |
23 }, | 23 }, |
24 'messungform button[action=discard]': { | 24 'messungform button[action=discard]': { |
25 click: this.discard | 25 click: this.discard |
26 }, | |
27 'messungform button[action=audit]': { | |
28 click: this.showAuditTrail | |
26 }, | 29 }, |
27 'messungform': { | 30 'messungform': { |
28 dirtychange: this.dirtyForm | 31 dirtychange: this.dirtyForm |
29 } | 32 } |
30 }); | 33 }); |
133 //Only enable children if the form was not readOnly | 136 //Only enable children if the form was not readOnly |
134 if (!form.getRecord().get('readonly')) { | 137 if (!form.getRecord().get('readonly')) { |
135 form.owner.up('window').enableChildren(); | 138 form.owner.up('window').enableChildren(); |
136 } | 139 } |
137 } | 140 } |
141 }, | |
142 | |
143 showAuditTrail: function(button) { | |
144 Ext.create('Lada.view.window.AuditTrail', { | |
145 autoShow: true, | |
146 closeAction: 'destroy', | |
147 type: 'messung', | |
148 objectId: button.up('form').recordId | |
149 }); | |
138 } | 150 } |
139 }); | 151 }); |