aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-11-09 12:56:36 +0300
committerBonfaceKilz2021-11-11 09:32:26 +0300
commit511d3450e4301173a1c0c8af371b6c9354b5bff1 (patch)
tree5ef74d01665c2871d04a3068fee0006f29e7b905 /wqflask
parentb4ed3cb7beca79b89ee05117daae264487d442cb (diff)
downloadgenenetwork2-511d3450e4301173a1c0c8af371b6c9354b5bff1.tar.gz
view_group.html: Hide the "Change Group Name" button for non-admins
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/admin/view_group.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/admin/view_group.html b/wqflask/wqflask/templates/admin/view_group.html
index b4bac7d2..4a3ecede 100644
--- a/wqflask/wqflask/templates/admin/view_group.html
+++ b/wqflask/wqflask/templates/admin/view_group.html
@@ -11,9 +11,11 @@
<div class="container">
<div class="page-header">
<h1>
- <input type="text" name="new_group_name" style="font-size: 20px; display: none; width: 500px;" class="form-control" placeholder="{{ group_info.name }}">
<span id="group_name">Name: {{ group_info.name }}</span>
+ <input type="text" name="new_group_name" style="font-size: 20px; display: none; width: 500px;" class="form-control" placeholder="{{ group_info.name }}">
+ {% if is_admin %}
<button class="btn btn-default" style="display: inline;" id="change_group_name">Change Group Name</button>
+ {% endif %}
</h1>
{% if is_admin %}
<div style="display: inline;">