From bf63ec177459abcf9b517a07a572ec3c4cc6841e Mon Sep 17 00:00:00 2001 From: 7u83 <7u83> Date: Mon, 24 Feb 2020 15:54:42 +0000 Subject: [PATCH] First part of new input form works --- ka.html | 234 +++++++++++++++++------------------------------------- kaform.js | 121 +++++----------------------- 2 files changed, 96 insertions(+), 259 deletions(-) diff --git a/ka.html b/ka.html index faee665..7b0dca5 100644 --- a/ka.html +++ b/ka.html @@ -24,7 +24,7 @@ Bitte fülle dieses Formular aus ...

-
+
@@ -64,62 +64,87 @@
- - + + +
+
+
+ +
+
+
+
+
+ +
+
+ + + +
+
+ +
+
+
+ + +
+ + +
+
+
+ +
+
+
+
+
+ +
+
+ + + +
+
+ +
+
+
+ +
+ +
- - +
- - -
- - -

- - - - - - - - - - - - - - - - - - - - - + - - +
+
+ + -
+ +
+
+ + + +
@@ -133,116 +158,7 @@ Grund für abweichende Kontoinhaberin">
-
- Deine Ansprechperson bei Wikimedia - -
- -
- Deine Kontaktdaten - - - - - - - -
- - - -
- Auszahlungsweg - - - -
- - -
- - -
- - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
- -

Bitte trage deine einzelnen Kostenpositionen ein.

-

- Bitte trage nur eine Ausgabe pro Zeile ein, lege den - Originalbeleg dem Antrag bei und kennzeichne den Beleg - mit der entsprechenden Zeilennummer. Aus der Beschreibung - soll zu ersehen sein, ob es sich um Transport, Dienstleistung, - Materialien, Verpflegung oder ähnliches handelt. -

- - - - - - - - - - - - - - - -
Pos.BeschreibungBelegdatumBetragBeleg
+
diff --git a/kaform.js b/kaform.js index 3a486f4..144e7c9 100644 --- a/kaform.js +++ b/kaform.js @@ -88,113 +88,34 @@ function addTableRow(){ -$K.add('module','kaform', { - init: function(app,context){ - this.app = app; - - // getting context and the module element - this.context = context; - this.$element = context.getElement(); - }, - - hello: function(){ - alert ("hello function of kaform"); - }, - - start: function() - { +$K.add('module', 'kaform', { + init: function(app, context) + { + this.app = app; + }, + // catch event + onmessage: { + tabs: { + opened: function(sender) + { + console.log('Tab box is ',sender.getActiveBox()); + } + } + }, - /*this.$element.on('keydown.kube.editable', this._hui.bind(this)); - this.$element.on('paste.kube.editable', this._hui.bind(this)); - this.$element.on('blur.kube.editable', this._hui.bind(this)); - */ -// alert(this.$element); -// this.$element.on('click', this.addRow.bind(this)); - this._build(); - }, - - addRow: function() - { - - var $node = $K.dom('#tabbody'); - // create a new table row with id - var element = document.createElement('tr'); - element.setAttribute("id", "trow"+nextRowId); - - var e=""; - - // add column for position no - e += ''; - - // add coluemn for description - e += ' '; - - // add column for date - e += ''; - - // add column for num - e += ''; - - // add column for file upload - - e+= ` - -
-
-
-
-
-
-
- - - `; - // add delete bnutton - e += - ` - `; - - $node.append(element); - element.innerHTML=(e); - renumberTableRows(); - nextRowId++; - - - }, - - // private - _build: function() - { - - }, - onmessage: { - alert: { - closed: function(sender) - { - alert(sender); - // caught - } - } - } -}); - - -// startup is here + }); $K.init({ observer: true }); + +// startup is here + + + // on startup clear session on server $K.ajax.get({ url: 'clear.php', @@ -205,4 +126,4 @@ $K.ajax.get({ }); // add on table row -addTableRow(); +//addTableRow();