Mercurial > lada > lada-client
annotate app/view/proben/Create.js @ 76:eb8a7d3cca89
Use translated message from server in error dialog
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 05 Jun 2013 18:05:00 +0200 |
parents | e54cb2f3566e |
children | 95b08b96f5c9 |
rev | line source |
---|---|
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.view.proben.Create', { |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.window.Window', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 alias: 'widget.probencreate', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 title: 'Maske für §3-Proben', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 // Make size of the dialog dependend of the available space. |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 // TODO: Handle resizing the browser window. |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 width: Ext.getBody().getViewSize().width - 30, |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 height: Ext.getBody().getViewSize().height - 30, |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 autoShow: true, |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 autoScroll: true, |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 modal: true, |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 requires: [ |
68
e54cb2f3566e
Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
65
diff
changeset
|
15 'Lada.view.proben.CreateForm', |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 'Lada.view.widgets.Uwb', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 'Lada.view.widgets.Datenbasis', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 'Lada.view.widgets.Probenart', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 'Lada.view.widgets.Betriebsart', |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 'Lada.view.widgets.Testdatensatz' |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 ], |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 initComponent: function() { |
68
e54cb2f3566e
Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
65
diff
changeset
|
23 var form = Ext.create('Lada.view.proben.CreateForm'); |
e54cb2f3566e
Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
65
diff
changeset
|
24 this.items = [form]; |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 this.buttons = [ |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 { |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 text: 'Speichern', |
68
e54cb2f3566e
Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
65
diff
changeset
|
28 handler: form.commit, |
e54cb2f3566e
Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
65
diff
changeset
|
29 scope: form |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 } |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 ]; |
68
e54cb2f3566e
Do not define form element in the window. Use new defined Probencreate Form.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
65
diff
changeset
|
32 this.callParent(); |
65
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 } |
9e2e09e819fd
Added a new Dialog to create proben without any kommentare or other additional
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 }); |