[Lada-commits] [PATCH 1 of 2] New view to create ort details
Wald Commits
scm-commit at wald.intevation.org
Thu Dec 5 09:58:07 CET 2013
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1386233810 -3600
# Node ID b3e806045a5a4d863c0a9df65d5e0f934b700106
# Parent a122424f2f0f93cc8f69df2b540d9efcf937f56b
New view to create ort details.
diff -r a122424f2f0f -r b3e806045a5a app/view/orte/CreateOrt.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/orte/CreateOrt.js Thu Dec 05 09:56:50 2013 +0100
@@ -0,0 +1,66 @@
+/**
+ *
+ */
+Ext.define('Lada.view.orte.CreateOrt', {
+ extend: 'Ext.window.Window',
+ alias: 'widget.createortdetail',
+ title: 'Neuer Ort',
+
+ /**
+ * @private
+ * Initialize the view.
+ */
+ initComponent: function() {
+ var me = this;
+
+ var form = Ext.create('Ext.form.Panel', {
+ items: [{
+ xtype: 'textfield',
+ maxLength: 100,
+ name: 'ort_beschreibung',
+ fieldLabel: 'Beschreibung'
+ },
+ {
+ xtype: 'staat',
+ name: 'ort_staatId',
+ fieldLabel: 'Staat'
+ },
+ {
+ xtype: 'verwaltungseinheiten',
+ name: 'ort_gemId',
+ fieldLabel: 'Gemeinde'
+ },
+ {
+ xtype: 'numberfield',
+ name: 'ort_latitude',
+ fieldLabel: 'Lat'
+ },
+ {
+ xtype: 'numberfield',
+ name: 'ort_longitude',
+ fieldLabel: 'Lon'
+ },
+ {
+ xtype: 'numberfield',
+ name: 'ort_hoeheLand',
+ fieldLabel: 'Höhe'
+ }]
+ });
+
+ me.items = [form];
+ this.buttons = [
+ {
+ text: 'Speichern',
+ scope: form,
+ action: 'save'
+ },
+ {
+ text: 'Abbrechen',
+ scope: this,
+ handler: this.close
+ }
+ ];
+ this.callParent(arguments);
+ }
+});
+
More information about the Lada-commits
mailing list