diff options
author | zsloan | 2021-06-17 19:46:12 +0000 |
---|---|---|
committer | zsloan | 2021-06-17 19:46:12 +0000 |
commit | 2b52a4f16008a450386cf46d008452942c2d98e4 (patch) | |
tree | 25e12d6b599bfcfafb28d2784713be2a986375fa /wqflask | |
parent | e5a8fad251bff8160e49c6c9fea42b815488e6c3 (diff) | |
download | genenetwork2-2b52a4f16008a450386cf46d008452942c2d98e4.tar.gz |
Only show all-numerical attributes in the 'Filter samples by value' drop-down
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/show_trait_transform_and_filter.html | 12 |
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> |