torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz torsten@472: * Software engineering by Intevation GmbH torsten@472: * torsten@472: * This file is Free Software under the GNU GPL (v>=3) torsten@472: * and comes with ABSOLUTELY NO WARRANTY! Check out torsten@472: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@347: /* torsten@347: * Window to create and edit a Ort torsten@347: */ torsten@109: Ext.define('Lada.view.orte.Create', { torsten@109: extend: 'Ext.window.Window', torsten@109: alias: 'widget.ortecreate', torsten@109: torsten@109: title: 'Maske für Orte', torsten@109: autoShow: true, torsten@109: autoScroll: true, torsten@109: modal: true, torsten@109: torsten@109: requires: [ torsten@109: 'Lada.view.orte.CreateForm' torsten@109: ], torsten@109: initComponent: function() { raimund@491: this.buttons = [{ raimund@491: text: 'Speichern', raimund@491: scope: form, raimund@491: action: 'save' raimund@491: }, { raimund@491: text: 'Abbrechen', raimund@491: scope: this, raimund@491: handler: this.close raimund@491: }]; raimund@491: var form = Ext.create('Lada.view.orte.CreateForm', raimund@491: this.initialConfig); torsten@271: this.items = [form]; torsten@109: this.callParent(); torsten@109: } torsten@109: });