aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2020-12-16 11:33:10 -0600
committerzsloan2020-12-16 11:33:10 -0600
commit124bc16cdc67b6ba31a281e619dcf15f181ba131 (patch)
treed2c8bd1b2c475b5332d1caeab8d8b9041047a405
parent87fdfc19009acda8b58729d0ffbdccbdf6a85a1e (diff)
downloadgenenetwork2-124bc16cdc67b6ba31a281e619dcf15f181ba131.tar.gz
Removed ID/Sample/Value from Show/Hide Columns in trait page and only show the option if columns other than those exist
-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 %}