about summary refs log tree commit diff
path: root/uploader/templates
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates')
-rw-r--r--uploader/templates/publications/view-publication.html18
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%}