Skip to content

Commit 9d75872

Browse files
northwestwitchChiara Rasidnil
authored
Switch Submit and ClinGen links on ACMG page (#5876)
* Switch Submit and ClinGen links on ACMG page * Move reclassify down and make ClinGen Criteria Specifications extra small --------- Co-authored-by: Chiara Rasi <[email protected]> Co-authored-by: Daniel Nilsson <[email protected]>
1 parent 70ed1cd commit 9d75872

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
1313
### Changed
1414
- A case becomes inactive whenever there is a change to any VCF or RNA-associated file (#5888)
1515
- Enhance variants filters by allowing selection of individual soft filters (#5897)
16+
- On ACMG classification form, move `Submit` button at the bottom and ClinGen gene links to the top (#5876)
1617
### Fixed
1718
- Fix PanelApp fetch failures caused by 429 responses - Retry-After support (#5864)
1819
- Parsing of `REVEL rank score` field for LRS from all transcript of a LRS variant (#5860)

scout/server/blueprints/variant/templates/variant/acmg.html

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,24 @@ <h4>
3535
<span class="badge bg-info">{{ evaluation.classification.short|safe }}</span>
3636
</h4>
3737
By {{ evaluation.user_name }} on {{ evaluation.created_at.date() }}
38-
{% if edit %}
39-
<br><br>
40-
<button class="btn btn-primary form-control" data-bs-toggle="tooltip" title="Editing this classification will result in a new classification">Reclassify</button>
41-
{% endif %}
4238
<button type="button" id="download-pdf" class="btn btn-secondary btn-sm position-absolute" style="top: 10px; right: 10px;">
4339
Download as PDF
4440
</button>
45-
{% elif not evaluation %}
46-
<button class="btn btn-primary form-control">Submit</button>
41+
<br>
4742
{% endif %}
43+
<!-- external links -->
44+
<div class="small">
45+
Search ClinGen Criteria Specifications (CSPEC):
46+
{% for gene in variant.genes %}
47+
<a href="{{ gene.cspec_link }}"
48+
class="btn btn-secondary btn-xs text-white"
49+
rel="noopener"
50+
referrerpolicy="no-referrer"
51+
target="_blank">
52+
{{ gene.common.hgnc_symbol if gene.common else gene.hgnc_id }}
53+
</a>
54+
{% endfor %}
55+
</div>
4856
<div id="conflicts_div" class="bg-warning"></div>
4957
</div>
5058
</div>
@@ -108,15 +116,13 @@ <h4>Evidence of {{ category }}</h4>
108116
</div>
109117
{% endfor %}
110118
</div>
111-
<!-- external links -->
112-
<div class="card panel-default mt-3">
113-
<div class="card-body">
114-
Search ClinGen Criteria Specifications (CSPEC):
115-
{% for gene in variant.genes %}
116-
<a href="{{ gene.cspec_link }}" class="btn btn-secondary text-white" rel="noopener" referrerpolicy="no-referrer" target="_blank">{{ gene.common.hgnc_symbol if gene.common else gene.hgnc_id }}</a>
117-
{% endfor %}
118-
</div>
119-
</div>
119+
120+
{% if not evaluation %}
121+
<button class="btn btn-primary form-control mt-3">Submit</button>
122+
{% elif edit %}
123+
<button class="btn btn-primary form-control mt-3" data-bs-toggle="tooltip" title="Editing this classification will result in a new classification">Reclassify</button>
124+
{%endif %}
125+
120126
<!-- classification preview in the footer-->
121127
<div class="mt-3 fixed-bottom bg-light border">
122128
<div class="row">

0 commit comments

Comments
 (0)