Skip to content

Commit

Permalink
Fix samples input field on report template
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Apr 17, 2024
1 parent 565150c commit 7ed34fb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/chanjo2/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h2 class="accordion-header" id="flush-headingOne">
<form name="customizeForm" action="{{url_for('report')}}" method="post">
<input type="hidden" id="build" name="build" value="{{extras.build}}">
<input type="hidden" id="interval_type" name="interval_type" value="{{extras.interval_type}}">
<input type="hidden" name="samples" value="{{extras.samples|safe}}"/>
<div>
<div class="form-group">
<div class="row" {% if hidden %}hidden{% endif %}>
Expand All @@ -48,16 +49,12 @@ <h2 class="accordion-header" id="flush-headingOne">
<div class="row">
<div class="col-7">
<label class="form-label">Included genes (Comma separated list HGNC IDs)</label>
<div><input class="form-control" type="text" name="hgnc_gene_ids" value="{{ extras.hgnc_gene_ids|join(', ') }}" placeholder="17284,21022,.."></div>
<div><input class="form-control" type="text" name="hgnc_gene_ids" value="{{ extras.hgnc_gene_ids|join(', ') }}" placeholder="17284, 21022,.."></div>
</div>
<div class="col-4 offset-1 mt-2">
<button class="btn btn-primary mt-4" type="submit">Update</button>
</div>
</div>

{% for sample_id in sample_ids %}
<input type="text" name="sample_id" value="{{ sample_id }}" hidden>
{% endfor %}
</form>
</div>
</div>
Expand Down

0 comments on commit 7ed34fb

Please sign in to comment.