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 raimund@497: * 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', raimund@497: requires: [ raimund@497: 'Lada.view.orte.CreateForm' raimund@497: ], 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: initComponent: function() { raimund@497: var form = Ext.create('Lada.view.orte.CreateForm', raimund@497: this.initialConfig); 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: }]; torsten@271: this.items = [form]; torsten@109: this.callParent(); torsten@109: } torsten@109: });