Mercurial > lada > lada-client
comparison app/view/window/Ortszuordnung.js @ 1288:08085b7d1d0b
Ortszuordnung: Search, new orte, display and validity check
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 27 Jan 2017 13:25:14 +0100 |
parents | e317ba349204 |
children | bfdc00c24baf |
comparison
equal
deleted
inserted
replaced
1287:e317ba349204 | 1288:08085b7d1d0b |
---|---|
14 alias: 'widget.ortszuordnungwindow', | 14 alias: 'widget.ortszuordnungwindow', |
15 | 15 |
16 requires: [ | 16 requires: [ |
17 'Lada.view.form.Ortszuordnung', | 17 'Lada.view.form.Ortszuordnung', |
18 'Lada.view.form.Ortserstellung', | 18 'Lada.view.form.Ortserstellung', |
19 'Lada.view.panel.Ort' | 19 'Lada.view.panel.Map', |
20 'Lada.view.grid.Orte' | |
20 ], | 21 ], |
21 | 22 |
22 collapsible: true, | 23 collapsible: true, |
23 maximizable: true, | 24 maximizable: true, |
24 autoshow: true, | 25 autoshow: true, |
25 layout: 'fit', | 26 layout: 'fit', |
26 constrain: true, | 27 constrain: true, |
27 | 28 |
28 probe: null, | 29 probe: null, |
30 | |
29 parentWindow: null, | 31 parentWindow: null, |
30 record: null, | 32 record: null, |
31 grid: null, | 33 grid: null, |
32 | 34 |
33 /** | 35 /** |
34 * This function initialises the Window | 36 * This function initialises the Window |
35 */ | 37 */ |
36 initComponent: function() { | 38 initComponent: function() { |
37 var i18n = Lada.getApplication().bundle; | 39 var i18n = Lada.getApplication().bundle; |
38 | |
39 this.title = i18n.getMsg('ortszuordnung.window.title'); | 40 this.title = i18n.getMsg('ortszuordnung.window.title'); |
40 | 41 |
41 if (this.record && this.probe) { | 42 if (this.record && this.probe) { |
42 // A record be edited | 43 // A record be edited |
43 this.title = i18n.getMsg('ortszuordnung.window.title') | 44 this.title = i18n.getMsg('ortszuordnung.window.title') |
60 + ' ' | 61 + ' ' |
61 + this.probe.get('hauptprobenNr') | 62 + this.probe.get('hauptprobenNr') |
62 + ' ' | 63 + ' ' |
63 + i18n.getMsg('create'); | 64 + i18n.getMsg('create'); |
64 } | 65 } |
65 | |
66 this.buttons = [{ | 66 this.buttons = [{ |
67 text: i18n.getMsg('close'), | 67 text: i18n.getMsg('close'), |
68 scope: this, | 68 scope: this, |
69 handler: this.close | 69 handler: this.close |
70 }]; | 70 }]; |
79 }, | 79 }, |
80 deactivate: function(){ | 80 deactivate: function(){ |
81 this.getEl().addCls('window-inactive'); | 81 this.getEl().addCls('window-inactive'); |
82 } | 82 } |
83 }); | 83 }); |
84 | |
85 | 84 |
86 this.items = [{ | 85 this.items = [{ |
87 layout: 'border', | 86 layout: 'border', |
88 bodyStyle: {background: '#fff'}, | 87 bodyStyle: {background: '#fff'}, |
89 border: 0, | 88 border: 0, |