Commit 597a523b authored by Ryan Herbert's avatar Ryan Herbert
Browse files

form_builder.js partial/file/form.html single file type indication

parent 25c68f8f
......@@ -236,6 +236,9 @@ FileFormBuilder.prototype.build_file_fieldset = function() {
var hide_second = this.source || this.num_files < 2;
var f = document.createElement('fieldset');
f.appendChild(this.build_legend('sequence file(s)'));
var s = document.createElement('div');
s.innerText = "(.fa, .fastq, .fa.gz, .fastq.gz, .clntab)";
f.appendChild(s);
var file1 = this.build_file_field(1, this.source);
var file_input = file1.getElementsByTagName('input')[0];
file_input.onchange = function() {
......@@ -325,9 +328,6 @@ FileFormBuilder.prototype.build_file_field = function(id, hidden) {
i.disabled = true;
}
d.appendChild(i);
var s = document.createElement('span');
s.innerText = "* (.fa, .fastq, .fa.gz, .fastq.gz, .clntab)";
d.appendChild(s);
return d;
}
......
......@@ -12,6 +12,7 @@
</div>
<fieldset name="sequence_file">
<legend>sequence file(s)</legend>
<div>(.fa, .fastq, .fa.gz, .fastq.gz, .clntab)</div>
<div id="file_field_1_{{=i}}" class="field_div file_1" {{if source_module_active:}} hidden {{pass}}>
<label for="file_upload_1_{{=i}}" id="file__label_{{=i}}"> file 1 :</label>
<input class="upload_field form-control" id="file_upload_1_{{=i}}" type="file"
......@@ -19,7 +20,7 @@
disabled
{{pass}}
onchange="db.upload_file_onChange('file_filename_{{=i}}', this.value)"
><span>* (.fa, .fastq, .fa.gz, .fastq.gz, .clntab)</span>
>
</div>
<div id="file_2_{{=i}}" class="field_div file_2" hidden>
<label for="file_upload_2_{{=i}}" id="file2__label_{{=i}}"> file 2 :</label>
......@@ -27,7 +28,7 @@
{{if source_module_active:}}
disabled
{{pass}}
><span>* (.fa, .fastq, .fa.gz, .fastq.gz, .clntab)</span>
>
</div>
<div class="jstree_container" {{if not source_module_active:}} hidden {{pass}}>
selected
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment