# HG changeset patch # User Torsten Irländer # Date 1371650177 -7200 # Node ID 70f80c4ef90e66783d4a08cac90df69dbbe01d5d # Parent 882566d0b8f32981e5c4dc53feb70f65ae124b26 Use new widgets in form for zusatzwerte. diff -r 882566d0b8f3 -r 70f80c4ef90e app/view/zusatzwerte/Create.js --- a/app/view/zusatzwerte/Create.js Wed Jun 19 15:55:34 2013 +0200 +++ b/app/view/zusatzwerte/Create.js Wed Jun 19 15:56:17 2013 +0200 @@ -12,7 +12,9 @@ modal: true, requires: [ - 'Lada.view.zusatzwerte.CreateForm' + 'Lada.view.zusatzwerte.CreateForm', + 'Lada.view.widgets.Zusatzwert', + 'Lada.view.widgets.Messeinheit' ], initComponent: function() { var form = Ext.create('Lada.view.zusatzwerte.CreateForm'); diff -r 882566d0b8f3 -r 70f80c4ef90e app/view/zusatzwerte/CreateForm.js --- a/app/view/zusatzwerte/CreateForm.js Wed Jun 19 15:55:34 2013 +0200 +++ b/app/view/zusatzwerte/CreateForm.js Wed Jun 19 15:56:17 2013 +0200 @@ -3,21 +3,36 @@ model: 'Lada.model.Zusatzwert', initComponent: function() { this.items = [ - //{ - // xtype: 'textfield', - // name: 'erzeuger', - // fieldLabel: 'Erzeuger' - //}, - //{ - // xtype: 'datefield', - // name: 'kdatum', - // fieldLabel: 'Datum' - //}, - //{ - // xtype: 'textareafield', - // name: 'ktext', - // fieldLabel: 'Text' - //} + { + xtype: 'zusatzwert', + name: 'pzsId', + fieldLabel: 'PWZ-ID' + }, + { + xtype: 'textfield', + name: 'erzeuger', + fieldLabel: 'PWZ-Größe' + }, + { + xtype: 'textfield', + name: 'messwertNwg', + fieldLabel: '<NWG' + }, + { + xtype: 'textfield', + name: 'messwertPzs', + fieldLabel: '<PZW' + }, + { + xtype: 'textfield', + name: 'messfehler', + fieldLabel: 'rel. Unsich.[%]' + }, + { + xtype: 'messeinheit', + name: 'mehId', + fieldLabel: 'Maßeinheit' + } ]; this.callParent(); }