torsten@55: Ext.define('Lada.view.kommentare.Edit', { torsten@55: extend: 'Ext.window.Window', torsten@55: alias: 'widget.kommentaredit', torsten@55: torsten@55: title: 'Maske für Kommentare', torsten@55: // Make size of the dialog dependend of the available space. torsten@55: // TODO: Handle resizing the browser window. torsten@55: width: Ext.getBody().getViewSize().width - 30, torsten@55: maxHeight: Ext.getBody().getViewSize().height - 30, torsten@55: autoShow: true, torsten@55: autoScroll: true, torsten@55: modal: true, torsten@55: torsten@55: requires: [ torsten@55: ], torsten@55: torsten@55: initComponent: function() { torsten@55: this.items = [ torsten@55: { torsten@55: //Define the form torsten@55: xtype: 'form', torsten@55: bodyPadding: '10 10', torsten@55: border: 0, torsten@55: layout: 'fit', torsten@55: items: [ torsten@55: { torsten@55: xtype: 'textfield', torsten@55: name: 'erzeuger', torsten@55: fieldLabel: 'Erzeuger' torsten@55: }, torsten@55: { torsten@107: xtype: 'datefield', torsten@55: name: 'kdatum', torsten@55: fieldLabel: 'Datum' torsten@55: }, torsten@55: { torsten@55: xtype: 'textareafield', torsten@55: name: 'ktext', torsten@55: fieldLabel: 'Text' torsten@55: } torsten@55: ] torsten@55: } torsten@55: ]; torsten@55: this.buttons = [ torsten@55: { torsten@55: text: 'Speichern', torsten@55: action: 'save' torsten@55: }, torsten@55: { torsten@55: text: 'Verwerfen', torsten@55: scope: this, torsten@55: handler: this.close torsten@55: } torsten@55: ]; torsten@55: this.callParent(arguments); torsten@55: } torsten@55: }); torsten@55: