comparison app/view/window/Ortserstellung.js @ 1284:faecbb446a04

Ortserstellung: new Messpunkt from map, clone or form functional, still needs error handling and layout
author Maximilian Krambach <mkrambach@intevation.de>
date Tue, 24 Jan 2017 12:58:26 +0100
parents
children bfdc00c24baf
comparison
equal deleted inserted replaced
1283:9d298c82575f 1284:faecbb446a04
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
8
9 /**
10 * Window for new Ort, wraps around a {@link Lada.view.form.Ortsertellung}
11 */
12 Ext.define('Lada.view.window.Ortserstellung', {
13 extend: 'Ext.window.Window',
14 alias: 'window.ortserstellung',
15 requires: [
16 'Lada.model.Ort',
17 'Lada.view.form.Ortserstellung'
18 ],
19
20 minWidth: 350,
21
22 margin: 5,
23
24 border: 0,
25
26 bodyStyle: {background: '#fff'},
27
28 layout: 'fit',
29
30 title: 'Neuen Messpunkt anlegen',
31
32 /**
33 * The record for the new Ort. Should be a {@link Lada.model.Ort}
34 */
35 record: null,
36
37 parentWindow: null,
38
39 initComponent: function() {
40 var me = this;
41 if (this.record === null) {
42 this.record = Ext.create('Lada.model.Ort');
43 }
44 this.items = [
45 Ext.create('Lada.view.form.Ortserstellung', {
46 record: me.record,
47 listeners: {
48 destroy: {fn: function() {me.close();}}
49 }
50 })
51 ];
52 this.callParent(arguments);
53 }
54 });

http://lada.wald.intevation.org