aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader
diff options
context:
space:
mode:
authorPjotr Prins2020-05-15 09:26:34 -0500
committerPjotr Prins2020-05-15 09:26:34 -0500
commitb2d1de098117944531896297c16cc9365204fb54 (patch)
tree5023d36a2bf85876c1bc70ec7379908fcc934ad8 /bh20simplewebuploader
parent51503d89df4f5568f503f80c5cbc4fc3325c70aa (diff)
downloadbh20-seq-resource-b2d1de098117944531896297c16cc9365204fb54.tar.gz
bh20-seq-resource-b2d1de098117944531896297c16cc9365204fb54.tar.lz
bh20-seq-resource-b2d1de098117944531896297c16cc9365204fb54.zip
Template: prefill some form fields
Diffstat (limited to 'bh20simplewebuploader')
-rw-r--r--bh20simplewebuploader/templates/form.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/bh20simplewebuploader/templates/form.html b/bh20simplewebuploader/templates/form.html
index 6196624..f9b1ecf 100644
--- a/bh20simplewebuploader/templates/form.html
+++ b/bh20simplewebuploader/templates/form.html
@@ -139,7 +139,16 @@
{% endfor %}
</select>
{% else %} <!-- input field -->
- <input class="control" type="{{ record['type'] }}" id="{{ record['id'] }}{{ '[0]' if record['list'] else ''}}" name="{{ record['id'] }}{{ '[0]' if record['list'] else ''}}" {{ "required" if record['required'] else "" }} {{ ("step=" + record['step']) if 'step' in record else ""}}>
+ <input class="control"
+ type="{{ record['type'] }}"
+ id="{{ record['id'] }}{{ '[0]' if record['list'] else ''}}"
+ {{ 'value=http://purl.obolibrary.org/obo/NCBITaxon_9606' if record['id']=='metadata.host.host_species'}}
+ {{ 'placeholder=http://www.wikidata.org/entity/Q30' if record['id']=='metadata.sample.collection_location'}}
+ {{ 'placeholder=MyUniqueSampleId.1' if record['id']=='metadata.sample.sample_id'}}
+ {{ 'value=http://purl.obolibrary.org/obo/NCBITaxon_2697049' if record['id']=='metadata.virus.virus_species'}}
+ {{ 'readonly=1 value=http://identifiers.org/insdc/MT334571.1#sequence' if record['id']=='metadata.id'}}
+ name="{{ record['id'] }}{{ '[0]' if record['list'] else ''}}"
+ {{ "required" if record['required'] else "" }} {{ ("step=" + record['step']) if 'step' in record else ""}}>
{% endif %}
</div>
{% if record['list'] %}