diff options
| author | Frederick Muriuki Muriithi | 2025-10-13 13:13:02 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-10-13 13:13:58 -0500 |
| commit | f2d21da16508d1859d0e2aeac63ccb5709540aab (patch) | |
| tree | 516751554c970da86d5a8f2a8aadcdb93b8e3b31 /uploader/templates | |
| parent | eecc17d9c7b79a31eed40ed72df9dc06eec9056d (diff) | |
| download | gn-uploader-f2d21da16508d1859d0e2aeac63ccb5709540aab.tar.gz | |
Publications: Enable deletion of unlinked publications.
Diffstat (limited to 'uploader/templates')
| -rw-r--r-- | uploader/templates/publications/view-publication.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/uploader/templates/publications/view-publication.html b/uploader/templates/publications/view-publication.html index 4de5da8..0bd7bc5 100644 --- a/uploader/templates/publications/view-publication.html +++ b/uploader/templates/publications/view-publication.html @@ -12,6 +12,10 @@ <div class="row"> <table class="table"> <tr> + <th>Linked Phenotypes</th> + <td>{{linked_phenotypes | count}}</td> + </tr> + <tr> <th>PubMed</th> <td> {%if publication.PubMed_ID%} @@ -58,17 +62,15 @@ </div> <div class="row"> + <div> <a href="{{url_for('publications.edit_publication', publication_id=publication.Id)}}" title="Edit details for this publication." class="btn btn-primary">Edit</a> - <form id="frm-edit-delete-publication" method="POST" action="#"> - <input type="hidden" name="publication_id" value="{{publication.Id}}" /> - <div class="form-group"> - {%if linked_phenotypes | length == 0%} - <input type="submit" value="delete" class="btn btn-danger not-implemented" /> - {%endif%} - </div> - </form> + {%if linked_phenotypes | length == 0%} + <a href="{{url_for('publications.delete_publication', publication_id=publication.Id)}}" + class="btn btn-danger">delete</a> + {%endif%} + </div> </div> {%endblock%} |
