From 6750c65bd09b89960cd3a1bd3bff1fd58b96fb04 Mon Sep 17 00:00:00 2001 From: Johannes Randerath Date: Thu, 1 Aug 2024 09:43:02 +0200 Subject: [PATCH] more buttons --- templates/table.html | 81 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 67 insertions(+), 14 deletions(-) diff --git a/templates/table.html b/templates/table.html index 67bce1d..a5592c6 100644 --- a/templates/table.html +++ b/templates/table.html @@ -18,14 +18,15 @@ }; row.onclick = createClickHandler(row); } - for (let column of document.getElementById("content_table").rows[0].cells) { - column.innerHTML = column.innerHTML + ""; - } }); - function add_column() { - ncol += 1; - document.getElementById('columns').innerHTML += "
" + ncol + "
" - } + function add_column() { + ncol += 1; + document.getElementById('dynamic_columns').innerHTML += "
" + ncol + "
" + } + function create_table() { + document.getElementById('dynamic_columns').innerHTML = ""; + ncol = 1; + } @@ -58,7 +59,7 @@
-

Inventory table

+

Inventory table

+
- - - - - + + + + + @@ -135,6 +185,9 @@ +
+ +
@@ -144,7 +197,7 @@
#namefsiddrf
+
+
+ # +
+
+
+ + +
+
+
+
+
+
+ name +
+
+
+ + +
+
+
+
+
+
+ sdakjhf +
+
+
+ + +
+
+
+
+
+
+ drtr +
+
+
+ + +
+
+
+