Mercurial > lada > lada-client
comparison app/view/proben/Edit.js @ 53:73bc17de6ff2
Added store, view and model for kommentare. Load kommentare when opening a probe.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 28 May 2013 10:58:47 +0200 |
parents | 792c34b3f5a9 |
children | db26aeebe521 |
comparison
equal
deleted
inserted
replaced
52:af418743e1f4 | 53:73bc17de6ff2 |
---|---|
14 requires: [ | 14 requires: [ |
15 'Lada.view.widgets.Uwb', | 15 'Lada.view.widgets.Uwb', |
16 'Lada.view.widgets.Datenbasis', | 16 'Lada.view.widgets.Datenbasis', |
17 'Lada.view.widgets.Probenart', | 17 'Lada.view.widgets.Probenart', |
18 'Lada.view.widgets.Betriebsart', | 18 'Lada.view.widgets.Betriebsart', |
19 'Lada.view.widgets.Testdatensatz' | 19 'Lada.view.widgets.Testdatensatz', |
20 'Lada.view.kommentare.List' | |
20 ], | 21 ], |
21 | 22 |
22 initComponent: function() { | 23 initComponent: function() { |
23 this.items = [ | 24 this.items = [ |
24 { | 25 { |
261 collapsible: true, | 262 collapsible: true, |
262 collapsed: true, | 263 collapsed: true, |
263 padding: '10 10', | 264 padding: '10 10', |
264 items: [ | 265 items: [ |
265 { | 266 { |
266 xtype: 'grid', | 267 xtype: 'kommentarelist' |
267 dockedItems: [ | |
268 { | |
269 xtype: 'toolbar', | |
270 dock: 'top', | |
271 items: [ | |
272 { | |
273 text: 'Hinzufügen', | |
274 icon: 'gfx/plus.gif' | |
275 }, | |
276 { | |
277 text: 'Löschen', | |
278 icon: 'gfx/minus.gif' | |
279 } | |
280 ] | |
281 } | |
282 ], | |
283 columns: [ | |
284 { | |
285 text: 'Erzeuger' | |
286 }, | |
287 { | |
288 text: 'Datum' | |
289 }, | |
290 { | |
291 text: 'Text', | |
292 flex: 1 | |
293 } | |
294 ] | |
295 } | 268 } |
296 ] | 269 ] |
297 }, | 270 }, |
298 // Messungsangaben | 271 // Messungsangaben |
299 { | 272 { |