aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates
diff options
context:
space:
mode:
authorAdam Novak2020-04-17 13:23:42 -0700
committerAdam Novak2020-04-17 13:23:42 -0700
commit528186eea8a70ecab6359a07aef3be87177d5144 (patch)
tree7f676575fcff4b4e6f635ffdd713bcdcc6a909d0 /bh20simplewebuploader/templates
parent3932c2a342c93c9488e73d399f24329b2b0072ea (diff)
downloadbh20-seq-resource-528186eea8a70ecab6359a07aef3be87177d5144.tar.gz
bh20-seq-resource-528186eea8a70ecab6359a07aef3be87177d5144.tar.lz
bh20-seq-resource-528186eea8a70ecab6359a07aef3be87177d5144.zip
Make ? link show doc info and a different link to the ontology IRI
Diffstat (limited to 'bh20simplewebuploader/templates')
-rw-r--r--bh20simplewebuploader/templates/form.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/bh20simplewebuploader/templates/form.html b/bh20simplewebuploader/templates/form.html
index 0e98fd7..6993cf5 100644
--- a/bh20simplewebuploader/templates/form.html
+++ b/bh20simplewebuploader/templates/form.html
@@ -223,8 +223,11 @@
<label for="{{ record['id'] }}" title="{{ record.get('docstring', '') }}">
{{ record['label'] }}
{{ "*" if record['required'] else "" }}
+ {% if 'docstring' in record %}
+ <a href='javascript:alert({{ record['docstring'] | tojson }})'>❓</a>
+ {% endif %}
{% if 'ref_iri' in record %}
- <a href="{{ record['ref_iri'] }}" target="_blank">?</a>
+ <a href="{{ record['ref_iri'] }}" target="_blank" title="Ontology Link">🔗</a>
{% endif %}
</label>
{% if record['type'] == 'select' %}