aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-21 15:38:26 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commit2e8902835fede7b393ba5a659779bc0ce882d300 (patch)
tree883287dcaeb228e1835a2f346c18370144aa5f43 /gn2/wqflask
parent5a962593996bb9b38f63f3506f7bbe2a1835e415 (diff)
downloadgenenetwork2-2e8902835fede7b393ba5a659779bc0ce882d300.tar.gz
Add classified-under to hidden form inputs.
* gn2/wqflask/templates/metadata/editor.html: Add "classified-under" form element. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/templates/metadata/editor.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/metadata/editor.html b/gn2/wqflask/templates/metadata/editor.html
index d8d36902..03c12821 100644
--- a/gn2/wqflask/templates/metadata/editor.html
+++ b/gn2/wqflask/templates/metadata/editor.html
@@ -22,6 +22,10 @@
<form action="/metadata/save" method="POST">
<input name="type" type="hidden" value="{{ metadata.type }}"/>
<input name="label" type="hidden" value="{{ metadata.label }}"/>
+ {% if metadata.classifiedUnder %}
+ <input name="classified-under" type="hidden" value="{{ metadata.classifiedUnder.id }}"/>
+ {% endif %}
+
{% if metadata.accessionId %}
<input name="accession-id" type="hidden" value="{{ metadata.accessionId }}"/>