|
35 | 35 | <span class="badge bg-info">{{ evaluation.classification.short|safe }}</span> |
36 | 36 | </h4> |
37 | 37 | 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 %} |
42 | 38 | <button type="button" id="download-pdf" class="btn btn-secondary btn-sm position-absolute" style="top: 10px; right: 10px;"> |
43 | 39 | Download as PDF |
44 | 40 | </button> |
45 | | - {% elif not evaluation %} |
46 | | - <button class="btn btn-primary form-control">Submit</button> |
| 41 | + <br> |
47 | 42 | {% 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> |
48 | 56 | <div id="conflicts_div" class="bg-warning"></div> |
49 | 57 | </div> |
50 | 58 | </div> |
@@ -108,15 +116,13 @@ <h4>Evidence of {{ category }}</h4> |
108 | 116 | </div> |
109 | 117 | {% endfor %} |
110 | 118 | </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 | + |
120 | 126 | <!-- classification preview in the footer--> |
121 | 127 | <div class="mt-3 fixed-bottom bg-light border"> |
122 | 128 | <div class="row"> |
|
0 commit comments