diff options
author | Frederick Muriuki Muriithi | 2024-10-01 14:31:49 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-01 14:31:49 -0500 |
commit | 02804dc46b31f90b372f7254f018750631a95f80 (patch) | |
tree | 99785d35cad6da232571e5ad90c706a707bd0baf /uploader | |
parent | 94513310831875a72d21b3e17af9541a328cabd6 (diff) | |
download | gn-uploader-02804dc46b31f90b372f7254f018750631a95f80.tar.gz |
Add UI elements for possible extra functionality.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/templates/phenotypes/view-phenotype.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/view-phenotype.html b/uploader/templates/phenotypes/view-phenotype.html index 03935f5..f26c5f0 100644 --- a/uploader/templates/phenotypes/view-phenotype.html +++ b/uploader/templates/phenotypes/view-phenotype.html @@ -43,6 +43,36 @@ </tr> </tbody> </table> + + <form action="#edit-delete-phenotype" + method="POST" + id="frm-delete-phenotype"> + + <input type="hidden" name="species_id" value="{{species.SpeciesId}}" /> + <input type="hidden" name="population_id" value="{{population.Id}}" /> + <input type="hidden" name="dataset_id" value="{{dataset.Id}}" /> + <input type="hidden" name="phenotype_id" value="{{phenotype.Id}}" /> + + <div class="btn-group btn-group-justified"> + <div class="btn-group"> + {%if "group:resource:edit-resource" in privileges%} + <input type="submit" + title="Edit the values for the phenotype. Do we actually want this?" + class="btn btn-primary not-implemented" + value="edit" /> + {%endif%} + </div> + <div class="btn-group"></div> + <div class="btn-group"> + {%if "group:resource:delete-resource" in privileges%} + <input type="submit" + title="Delete the entire phenotype. Do we actually want this?" + class="btn btn-danger not-implemented" + value="delete" /> + {%endif%} + </div> + </div> + </form> </div> </div> |