Mercurial > lada > lada-client
comparison app/view/proben/Edit.js @ 18:9e1a40312bbe
Implemented a basic edit dialog. Data will be set to data/proben2.json url
which is currently just a dummy file to make to request work. But currently no
data is actually saved. The urls need to be replaced with the correct urls in
the application backend.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 06 May 2013 16:41:39 +0200 |
parents | |
children | a05625ae08b1 |
comparison
equal
deleted
inserted
replaced
17:3eaeeec2bb28 | 18:9e1a40312bbe |
---|---|
1 Ext.define('Lada.view.proben.Edit', { | |
2 extend: 'Ext.window.Window', | |
3 alias: 'widget.probenedit', | |
4 | |
5 title: 'Maske für §3-Proben', | |
6 layout: 'fit', | |
7 autoShow: true, | |
8 | |
9 initComponent: function() { | |
10 this.items = [ | |
11 { | |
12 xtype: 'form', | |
13 items: [ | |
14 { | |
15 xtype: 'textfield', | |
16 name : 'probeId', | |
17 fieldLabel: 'ID' | |
18 }, | |
19 { | |
20 xtype: 'textfield', | |
21 name : 'datenbasisId', | |
22 fieldLabel: 'Datenbasis' | |
23 } | |
24 ] | |
25 } | |
26 ]; | |
27 | |
28 this.buttons = [ | |
29 { | |
30 text: 'Speichern', | |
31 action: 'save' | |
32 }, | |
33 { | |
34 text: 'Verwerfen', | |
35 scope: this, | |
36 handler: this.close | |
37 } | |
38 ]; | |
39 this.callParent(arguments); | |
40 } | |
41 }); |