Mercurial > lada > lada-client
diff app/view/kommentare/Edit.js @ 55:4fa3fba50f79
Added dialog for editing kommentare. Open the dialog on double click on a
kommentar in the kommentarlist.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 28 May 2013 11:39:14 +0200 |
parents | |
children | 84f32c62670f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/view/kommentare/Edit.js Tue May 28 11:39:14 2013 +0200 @@ -0,0 +1,58 @@ +Ext.define('Lada.view.kommentare.Edit', { + extend: 'Ext.window.Window', + alias: 'widget.kommentaredit', + + title: 'Maske für Kommentare', + // Make size of the dialog dependend of the available space. + // TODO: Handle resizing the browser window. + width: Ext.getBody().getViewSize().width - 30, + maxHeight: Ext.getBody().getViewSize().height - 30, + autoShow: true, + autoScroll: true, + modal: true, + + requires: [ + ], + + initComponent: function() { + this.items = [ + { + //Define the form + xtype: 'form', + bodyPadding: '10 10', + border: 0, + layout: 'fit', + items: [ + { + xtype: 'textfield', + name: 'erzeuger', + fieldLabel: 'Erzeuger' + }, + { + xtype: 'textfield', + name: 'kdatum', + fieldLabel: 'Datum' + }, + { + xtype: 'textareafield', + name: 'ktext', + fieldLabel: 'Text' + } + ] + } + ]; + this.buttons = [ + { + text: 'Speichern', + action: 'save' + }, + { + text: 'Verwerfen', + scope: this, + handler: this.close + } + ]; + this.callParent(arguments); + } +}); +