Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Oct 11, 2024
1 parent 1079585 commit 09574c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Variants query backend allows rank_score filtering
- Added script to tabulate causatives clinical filter rank
- Do not display inheritance models associated to ORPHA terms on variant page
- Moved edit and delete buttons close to gene name on gene panel page
### Fixed
- Make BA1 fully stand-alone to Benign prediction
- Modifying Benign terms to "Moderate" has no effect under Richards. Ignored completely before, will retain unmodified significance now
Expand Down
22 changes: 11 additions & 11 deletions scout/server/blueprints/panels/templates/panels/panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,21 +146,30 @@
<table class="table table-bordered" aria-label="Included genes">
<thead class="table-light thead">
<tr>
<th></th>
<th>Gene</th>
<th>HGNC ID</th>
<th>Transcripts</th>
<th>Disease-associated transcripts</th>
<th>Reduced penetrance</th>
<th>Mosaicism</th>
<th>Entry version</th>
<th>Manual inheritance (pre-set terms)</th>
<th>Manual inheritance (free text terms)</th>
<th>Comment</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for gene in panel.genes|sort(attribute='symbol') %}
<tr>
<td>
{% if not panel.is_archived %}
<form class="float-start" action="{{ url_for('panels.panel', panel_id=panel._id) }}" method="POST">
<input type="hidden" name="hgnc_id" value="{{ gene.hgnc_id }}">
<button name="action" type="submit" value="delete" class="btn btn-danger btn-xs">Delete</button>
</form>
<a class="btn btn-secondary btn-xs ms-1" href="{{ url_for('panels.gene_edit', panel_id=panel._id, hgnc_id=gene.hgnc_id) }}">Edit</a>
{% endif %}
</td>
<td>
<a href="{{ url_for('genes.gene', hgnc_id=gene.hgnc_id) }}">
{{ gene.symbol }}
Expand All @@ -175,15 +184,6 @@
<td>{{ gene.inheritance_models|join(', ') }}</td>
<td>{{ gene.custom_inheritance_models|join(', ') }}</td>
<td>{{ gene.comment }}</td>
<td>
{% if not panel.is_archived %}
<a class="btn btn-secondary btn-xs" href="{{ url_for('panels.gene_edit', panel_id=panel._id, hgnc_id=gene.hgnc_id) }}">Edit</a>
<form class="float-end" action="{{ url_for('panels.panel', panel_id=panel._id) }}" method="POST">
<input type="hidden" name="hgnc_id" value="{{ gene.hgnc_id }}">
<button name="action" type="submit" value="delete" class="btn btn-danger btn-xs">Delete</button>
</form>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 09574c8

Please sign in to comment.