Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
54:3c7bfff8bd64 | 55:4fa3fba50f79 |
---|---|
1 Ext.define('Lada.view.kommentare.Edit', { | |
2 extend: 'Ext.window.Window', | |
3 alias: 'widget.kommentaredit', | |
4 | |
5 title: 'Maske für Kommentare', | |
6 // Make size of the dialog dependend of the available space. | |
7 // TODO: Handle resizing the browser window. | |
8 width: Ext.getBody().getViewSize().width - 30, | |
9 maxHeight: Ext.getBody().getViewSize().height - 30, | |
10 autoShow: true, | |
11 autoScroll: true, | |
12 modal: true, | |
13 | |
14 requires: [ | |
15 ], | |
16 | |
17 initComponent: function() { | |
18 this.items = [ | |
19 { | |
20 //Define the form | |
21 xtype: 'form', | |
22 bodyPadding: '10 10', | |
23 border: 0, | |
24 layout: 'fit', | |
25 items: [ | |
26 { | |
27 xtype: 'textfield', | |
28 name: 'erzeuger', | |
29 fieldLabel: 'Erzeuger' | |
30 }, | |
31 { | |
32 xtype: 'textfield', | |
33 name: 'kdatum', | |
34 fieldLabel: 'Datum' | |
35 }, | |
36 { | |
37 xtype: 'textareafield', | |
38 name: 'ktext', | |
39 fieldLabel: 'Text' | |
40 } | |
41 ] | |
42 } | |
43 ]; | |
44 this.buttons = [ | |
45 { | |
46 text: 'Speichern', | |
47 action: 'save' | |
48 }, | |
49 { | |
50 text: 'Verwerfen', | |
51 scope: this, | |
52 handler: this.close | |
53 } | |
54 ]; | |
55 this.callParent(arguments); | |
56 } | |
57 }); | |
58 |