Mercurial > lada > lada-client
comparison app/view/messungen/CreateForm.js @ 231:edb2b636319f
Modified create dialogs to only contain fields to create a messung (without,
messwerte, status, kommentare).
Added Editdialog with all fields.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 17 Jul 2013 12:09:01 +0200 |
parents | a9a7d8abc45e |
children | dee3e54a61b1 |
comparison
equal
deleted
inserted
replaced
230:7bea6974fb5b | 231:edb2b636319f |
---|---|
1 Ext.define('Lada.view.messungen.CreateForm', { | 1 Ext.define('Lada.view.messungen.CreateForm', { |
2 extend: 'Lada.view.widgets.LadaForm', | 2 extend: 'Lada.view.widgets.LadaForm', |
3 model: 'Lada.model.Messung', | 3 model: 'Lada.model.Messung', |
4 requires: [ | 4 requires: [ |
5 'Lada.view.widgets.Messmethode', | 5 'Lada.view.widgets.Messmethode', |
6 'Lada.view.widgets.Testdatensatz', | 6 'Lada.view.widgets.Testdatensatz' |
7 'Lada.view.mkommentare.List', | |
8 'Lada.view.status.List', | |
9 'Lada.view.messwerte.List' | |
10 ], | 7 ], |
11 initComponent: function() { | 8 initComponent: function() { |
12 this.items = [ | 9 this.items = [ |
13 { | 10 { |
14 xtype: 'textfield', | 11 xtype: 'textfield', |
38 }, | 35 }, |
39 { | 36 { |
40 xtype: 'testdatensatz', | 37 xtype: 'testdatensatz', |
41 name: 'geplant', | 38 name: 'geplant', |
42 fieldLabel: 'Geplant' | 39 fieldLabel: 'Geplant' |
43 }, | |
44 // Messwerte | |
45 { | |
46 xtype: 'fieldset', | |
47 title: 'Messwerte', | |
48 collapsible: true, | |
49 collapsed: false, | |
50 padding: '10 10', | |
51 items: [ | |
52 { | |
53 xtype: 'messwertelist', | |
54 parentId: this.model.get('messungsId'), | |
55 probeId: this.model.get('probeId') | |
56 } | |
57 ] | |
58 }, | |
59 // Status | |
60 { | |
61 xtype: 'fieldset', | |
62 title: 'Messungsstatus', | |
63 collapsible: true, | |
64 collapsed: false, | |
65 padding: '10 10', | |
66 items: [ | |
67 { | |
68 xtype: 'statuslist', | |
69 parentId: this.model.get('messungsId'), | |
70 probeId: this.model.get('probeId') | |
71 } | |
72 ] | |
73 }, | |
74 // Messungskommentare | |
75 { | |
76 xtype: 'fieldset', | |
77 title: 'Messungskommentare', | |
78 collapsible: true, | |
79 collapsed: false, | |
80 padding: '10 10', | |
81 items: [ | |
82 { | |
83 xtype: 'mkommentarelist', | |
84 parentId: this.model.get('messungsId'), | |
85 probeId: this.model.get('probeId') | |
86 } | |
87 ] | |
88 } | 40 } |
89 ]; | 41 ]; |
90 this.callParent(); | 42 this.callParent(); |
91 } | 43 } |
92 }); | 44 }); |