Mercurial > lada > lada-client
diff app/view/zusatzwerte/Create.js @ 110:c4f97a5a9939
Added Forms to add Zusatzwerte
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 14:10:54 +0200 |
parents | |
children | 70f80c4ef90e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/view/zusatzwerte/Create.js Wed Jun 19 14:10:54 2013 +0200 @@ -0,0 +1,29 @@ +Ext.define('Lada.view.zusatzwerte.Create', { + extend: 'Ext.window.Window', + alias: 'widget.zusatzwertecreate', + + title: 'Maske für Zusatzwerte', + // Make size of the dialog dependend of the available space. + // TODO: Handle resizing the browser window. + width: Ext.getBody().getViewSize().width - 30, + height: Ext.getBody().getViewSize().height - 30, + autoShow: true, + autoScroll: true, + modal: true, + + requires: [ + 'Lada.view.zusatzwerte.CreateForm' + ], + initComponent: function() { + var form = Ext.create('Lada.view.zusatzwerte.CreateForm'); + this.items = [form]; + this.buttons = [ + { + text: 'Speichern', + handler: form.commit, + scope: form + } + ]; + this.callParent(); + } +});