aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates
diff options
context:
space:
mode:
authorPjotr Prins2020-05-16 12:08:30 -0500
committerPjotr Prins2020-05-16 12:08:30 -0500
commitf1d0f4faa2cc4496f5e0df679db0e716ceeac5b2 (patch)
treeb55dfc341837b648dfadb8b4acf8c58a631d0c19 /bh20simplewebuploader/templates
parent9b9420725094a49c7f2cf670da4e2d469b12d40e (diff)
downloadbh20-seq-resource-f1d0f4faa2cc4496f5e0df679db0e716ceeac5b2.tar.gz
bh20-seq-resource-f1d0f4faa2cc4496f5e0df679db0e716ceeac5b2.tar.lz
bh20-seq-resource-f1d0f4faa2cc4496f5e0df679db0e716ceeac5b2.zip
Move globales into from - fixes data field form visibility again
Diffstat (limited to 'bh20simplewebuploader/templates')
-rw-r--r--bh20simplewebuploader/templates/form.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/bh20simplewebuploader/templates/form.html b/bh20simplewebuploader/templates/form.html
index 2cbaf62..1227ca2 100644
--- a/bh20simplewebuploader/templates/form.html
+++ b/bh20simplewebuploader/templates/form.html
@@ -114,7 +114,7 @@
{% for record in fields %}
{% if 'heading' in record %}
- {% if loop.index > 1 and 2 < 3 %}
+ {% if loop.index > 1 and 2 < 3 %} <!-- for emacs matching elements -->
</div>
{% endif %}
<div class="record"> <!-- from block, e.g. host fields -->
@@ -211,6 +211,12 @@
<script type="text/javascript">
let scriptRoot = {{ request.script_root|tojson|safe }};
+ let uploadForm = document.getElementById('metadata_upload_form')
+ let uploadFormSpot = document.getElementById('metadata_upload_form_spot')
+ let fillForm = document.getElementById('metadata_fill_form')
+ let fillFormSpot = document.getElementById('metadata_fill_form_spot')
+
+ setMode()
document.addEventListener("DOMContentLoaded", function(){
var count = fetch("/api/getCount")