aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/show_trait_edit_data.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html
index 4ad11a5e..0d34bebc 100644
--- a/wqflask/wqflask/templates/show_trait_edit_data.html
+++ b/wqflask/wqflask/templates/show_trait_edit_data.html
@@ -1,12 +1,9 @@
<div>
{% for sample_type in sample_groups %}
<div class="sample-table-container">
- {% if loop.index == 1 %}
+ {% if loop.index == 1 and (sample_groups[0].se_exists or has_num_cases or sample_groups[0].attributes|length > 0) %}
<b>Show/Hide Columns:</b>
<br>
- <button class="toggle-vis" data-column="1">ID</button>
- <button class="toggle-vis" data-column="2">Sample</button>
- <button class="toggle-vis" data-column="3">Value</button>
{% if sample_groups[0].se_exists %}
<button class="toggle-vis" data-column="4,5">SE</button>
{% if has_num_cases %}