From: Kilian Saffran Date: Sun, 19 May 2019 10:53:21 +0000 (+0200) Subject: produkt form basics X-Git-Tag: 0.7beta~23 X-Git-Url: http://cloud.dks.lu/git/?a=commitdiff_plain;h=e0f8b4413fc2946a6412d6620c75168effaba2a5;p=invoicejournal.git produkt form basics --- diff --git a/modules/products/form_product.html b/modules/products/form_product.html new file mode 100644 index 0000000..92acad8 --- /dev/null +++ b/modules/products/form_product.html @@ -0,0 +1,120 @@ + + + + + + + + + + + + Konto + + + +
+ + + +
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+ +
+
+
+
+
+
+ +
+ +
+
+
+
+ +
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+ + + +
+ + + + + + + + + + + + + diff --git a/modules/products/form_product.js b/modules/products/form_product.js new file mode 100644 index 0000000..577d3c7 --- /dev/null +++ b/modules/products/form_product.js @@ -0,0 +1,21 @@ +function initpage(){ + + tinymce.init({ + selector: 'textarea.richtextedit', + branding: false, + menubar:false, + statusbar: false, + plugins: 'searchreplace autolink directionality visualblocks visualchars advlist lists textpattern', + toolbar: 'bold italic underline strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat', + image_advtab: true, + language: 'de', + }); + + if (mpref.cfg.id){ + // getinvoicedata(mpref.cfg.id); + // loadinvoicepositions(mpref.cfg.id); + } else { + //load default new invoice data + } + console.log("product ID:",mpref.cfg.id); +} \ No newline at end of file diff --git a/modules/products/index.js b/modules/products/index.js index 923c73d..07d5a3c 100644 --- a/modules/products/index.js +++ b/modules/products/index.js @@ -101,9 +101,9 @@ function product_new(){ } function product_edit(){ - //var inv_id= getTableSelectionID(); + var inv_id= selection[0]; if (inv_id){ - parent.browserapp.loadmodulepage('bookings','form_booking',{"id":inv_id}); + parent.browserapp.loadmodulepage('products','form_product',{"id":inv_id}); } } diff --git a/server/invoicejournalserver.pl b/server/invoicejournalserver.pl old mode 100644 new mode 100755