aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-10-26 20:23:14 +0000
committerzsloan2022-10-26 20:34:08 +0000
commit57392d4213a7365be6a79d7e3c0ee4c2fc5f7f83 (patch)
treebaf3a1e2970bcf2a3119794d31a3ad0273424a73
parentbdaeea7f4c272217d382cc354913e979f226b7a4 (diff)
downloadgenenetwork2-57392d4213a7365be6a79d7e3c0ee4c2fc5f7f83.tar.gz
Add Edit Privileges button to trait page
-rw-r--r--wqflask/wqflask/templates/show_trait_details.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/show_trait_details.html b/wqflask/wqflask/templates/show_trait_details.html
index 1250d728..75192a18 100644
--- a/wqflask/wqflask/templates/show_trait_details.html
+++ b/wqflask/wqflask/templates/show_trait_details.html
@@ -244,5 +244,10 @@
{% endif %}
{% endif %}
</div>
+ {% if admin_status != None and admin_status.get('metadata', DataRole.VIEW) > DataRole.VIEW %}
+ <div class="btn-group">
+ <button type="button" id="edit_resource" class="btn btn-success" title="Edit Privileges" onclick="window.open('/resource-management/resources/{{ resource_id }}', '_blank')">Edit Privileges</button>
+ </div>
+ {% endif %}
</div>