view app/view/orte/Create.js @ 109:2308094f5a8c

Added forms to add Orte
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 19 Jun 2013 14:10:25 +0200
parents
children 26ac4c99f8c4
line wrap: on
line source
Ext.define('Lada.view.orte.Create', {
    extend: 'Ext.window.Window',
    alias: 'widget.ortecreate',

    title: 'Maske für Orte',
    // 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.orte.CreateForm'
    ],
    initComponent: function() {
        var form = Ext.create('Lada.view.orte.CreateForm');
        this.items = [form];
        this.buttons = [
            {
                text: 'Speichern',
                handler: form.commit,
                scope: form
            }
        ];
        this.callParent();
    }
});

http://lada.wald.intevation.org