aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-11-09 12:57:14 +0300
committerBonfaceKilz2021-11-11 09:32:26 +0300
commitd545936f3eb8dd491c2f691da0fcdc89722e2c64 (patch)
tree366593cca6194a5f5ed07b97a131524d426755c8 /wqflask
parent511d3450e4301173a1c0c8af371b6c9354b5bff1 (diff)
downloadgenenetwork2-d545936f3eb8dd491c2f691da0fcdc89722e2c64.tar.gz
view_group.html: Hide checkbox for non-users
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/admin/view_group.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/admin/view_group.html b/wqflask/wqflask/templates/admin/view_group.html
index 4a3ecede..4a20c0dd 100644
--- a/wqflask/wqflask/templates/admin/view_group.html
+++ b/wqflask/wqflask/templates/admin/view_group.html
@@ -91,7 +91,12 @@
<tbody>
{% for member in members %}
<tr>
- <td style="text-align: center; padding: 0px 10px 2px 10px;"><input type="checkbox" name="member_id" value="{{ member.user_id }}"></td>
+
+ <td style="text-align: center; padding: 0px 10px 2px 10px;">
+ {% if is_admin %}
+ <input type="checkbox" name="member_id" value="{{ member.user_id }}">
+ {% endif %}
+ </td>
<td align="right">{{ loop.index }}</td>
<td>{% if 'full_name' in member %}{{ member.full_name }}{% elif 'name' in admin %}{{ admin.name }}{% else %}N/A{% endif %}</td>
<td>{% if 'email_address' in member %}{{ member.email_address }}{% else %}N/A{% endif %}</td>