aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-06-17 19:46:12 +0000
committerzsloan2021-06-17 19:46:12 +0000
commit2b52a4f16008a450386cf46d008452942c2d98e4 (patch)
tree25e12d6b599bfcfafb28d2784713be2a986375fa
parente5a8fad251bff8160e49c6c9fea42b815488e6c3 (diff)
downloadgenenetwork2-2b52a4f16008a450386cf46d008452942c2d98e4.tar.gz
Only show all-numerical attributes in the 'Filter samples by value' drop-down
-rw-r--r--wqflask/wqflask/templates/show_trait_transform_and_filter.html12
1 files changed, 5 insertions, 7 deletions
diff --git a/wqflask/wqflask/templates/show_trait_transform_and_filter.html b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
index e3f5ef81..20f78b48 100644
--- a/wqflask/wqflask/templates/show_trait_transform_and_filter.html
+++ b/wqflask/wqflask/templates/show_trait_transform_and_filter.html
@@ -46,19 +46,17 @@
</div>
{% endif %}
<div id="filterMenuSpan" class="input-append block-div-2">
- <label for="filter_samples_field">Filter samples by {% if not sample_groups[0].attributes %}value{% endif %} </label>
- {% if sample_groups[0].attributes %}
+ <label for="filter_samples_field">Filter samples by {% if (numerical_var_list|length == 0) and (not js_data.se_exists) %}value{% endif %} </label>
+ {% if (numerical_var_list|length > 0) or js_data.se_exists %}
<select id="filter_column">
<option value="value">Value</option>
{% if js_data.se_exists %}
<option value="stderr">SE</option>
{% endif %}
- {% for attribute in sample_groups[0].attributes %}
-
+ {% for attribute in numerical_var_list %}
<option value="{{ loop.index }}">
- {{ sample_groups[0].attributes[attribute].name }}
+ {{ attribute }}
</option>
-
{% endfor %}
</select>
{% endif %}
@@ -116,4 +114,4 @@
<p>Samples with no value (x) can be hidden by clicking<strong>Hide No Value</strong> button.</p>
</div>
-</div> \ No newline at end of file
+</div>