aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2023-07-24 12:04:55 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2023-07-24 12:04:56 +0200
commit34d59ca113727d41d7bf0c8a3a986445fd40d087 (patch)
tree9c5c1f7e50d9b7640d4417da857e09e5ec52d14a /server/templates
parentMerge branch 'master' into dev (diff)
downloadscout-subs-34d59ca113727d41d7bf0c8a3a986445fd40d087.tar.gz
scout-subs-34d59ca113727d41d7bf0c8a3a986445fd40d087.zip
add doc table link
Diffstat (limited to '')
-rw-r--r--server/templates/server/doc_list_table.html17
-rw-r--r--server/templates/server/index.html1
2 files changed, 1 insertions, 17 deletions
diff --git a/server/templates/server/doc_list_table.html b/server/templates/server/doc_list_table.html
index 9f9ed2a..0096380 100644
--- a/server/templates/server/doc_list_table.html
+++ b/server/templates/server/doc_list_table.html
@@ -120,16 +120,6 @@
}
}
- $(".tabulator-group").each(function() {
- for (var i = 0; i < this.childNodes.length; i++) {
- if (this.childNodes[i].nodeType === 3) {
- this.appendChild(elemsMapping[this.childNodes[i].textContent]);
- elemsMapping[this.childNodes[i].textContent].style = "background-color: #ccc; margin-left: -10px;";
- elemsMapping[this.childNodes[i].textContent].classList.add("embedded-row");
- }
- }
- })
-
$(".tabulator-col-resize-handle").css("margin-left", "-3px");
});
@@ -258,13 +248,6 @@
}
}
- for (var key in docTypes) {
- tabledata.push({
- type: key,
- username: "col_row",
- });
- }
-
var col_select = document.getElementById("column-select");
for (var j = 0; j < col_categories.length; j++) {
col_select.innerHTML += '<div class="input-field col s12"><label><input onclick="check_all(\''+col_categories[j].field+'\')" id="category_'+col_categories[j].field+'" type="checkbox" class="filled-in"/><span style="color:black"><b>'+col_categories[j].name+'</b></span></label></div>';
diff --git a/server/templates/server/index.html b/server/templates/server/index.html
index e57d575..2db42e4 100644
--- a/server/templates/server/index.html
+++ b/server/templates/server/index.html
@@ -89,6 +89,7 @@
<div class="hide-on-med-and-down">
<a class="waves-effect waves-light btn {{color}}" href="{% url 'doctype' %}">Tipi</a>
<a class="waves-effect waves-light btn {{color}}" href="{% url 'doclist' %}">Documenti</a>
+ <a class="waves-effect waves-light btn {{color}}" href="{% url 'doclist-table' %}">Documenti (Tabella BETA)</a>
<a class="waves-effect waves-light btn {{color}}" href="{% url 'docapprove' %}">Approva documento</a>
</div>