[Lada-commits] [PATCH 10 of 13] Added forms to create a Messstatus
Wald Commits
scm-commit at wald.intevation.org
Mon Jul 8 16:17:48 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373292898 -7200
# Node ID 30ba9a98d6271a267391977d6bb86d74d567e3e6
# Parent 808c24773713fb88a5448784ee9e5f8d3695377c
Added forms to create a Messstatus
diff -r 808c24773713 -r 30ba9a98d627 app/view/status/Create.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/status/Create.js Mon Jul 08 16:14:58 2013 +0200
@@ -0,0 +1,22 @@
+Ext.define('Lada.view.status.Create', {
+ extend: 'Ext.window.Window',
+ alias: 'widget.statuscreate',
+
+ title: 'Maske für den Messstatus',
+ autoShow: true,
+ autoScroll: true,
+ modal: true,
+
+ initComponent: function() {
+ var form = Ext.create('Lada.view.status.CreateForm', this.initialConfig);
+ this.items = [form];
+ this.buttons = [
+ {
+ text: 'Speichern',
+ scope: form,
+ action: 'save'
+ }
+ ];
+ this.callParent();
+ }
+});
diff -r 808c24773713 -r 30ba9a98d627 app/view/status/CreateForm.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/status/CreateForm.js Mon Jul 08 16:14:58 2013 +0200
@@ -0,0 +1,34 @@
+Ext.define('Lada.view.status.CreateForm', {
+ extend: 'Lada.view.widgets.LadaForm',
+ requires : [
+ 'Lada.view.widgets.Mst',
+ 'Lada.view.widgets.Statuswert'
+ ],
+ model: 'Lada.model.Status',
+ initComponent: function() {
+ this.items = [
+ {
+ xtype: 'mst',
+ label: 'Erzeuger',
+ name: 'erzeuger'
+ },
+ {
+ xtype: 'statuswert',
+ label: 'Status',
+ name: 'status'
+ },
+ {
+ xtype: 'datefield',
+ label: 'Datum',
+ name: 'sdatum'
+ },
+ {
+ xtype: 'textarea',
+ label: 'Kommentar',
+ name: 'skommentar'
+ }
+ ];
+ this.callParent();
+ }
+});
+
More information about the Lada-commits
mailing list