From cf4db5545efee6d9052153708fc05ca707ef1716 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 24 Nov 2020 12:51:17 -0600 Subject: Added html/css for new "Filter Samples by Value" feature and changed a couple class names to make more sense for being shared between both this feature and "Block Samples by Index" --- wqflask/wqflask/static/new/css/show_trait.css | 4 ++-- .../templates/show_trait_transform_and_filter.html | 23 ++++++++++++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/wqflask/wqflask/static/new/css/show_trait.css b/wqflask/wqflask/static/new/css/show_trait.css index 5e1a279b..39c6ba53 100644 --- a/wqflask/wqflask/static/new/css/show_trait.css +++ b/wqflask/wqflask/static/new/css/show_trait.css @@ -145,11 +145,11 @@ input.corr-location { display: inline; } -div.block-by-index-div { +div.block-div { margin-bottom: 10px; } -div.block-by-attribute-div { +div.block-div-2 { margin-top:10px; margin-bottom:10px; } diff --git a/wqflask/wqflask/templates/show_trait_transform_and_filter.html b/wqflask/wqflask/templates/show_trait_transform_and_filter.html index 0418d972..22c52d8c 100644 --- a/wqflask/wqflask/templates/show_trait_transform_and_filter.html +++ b/wqflask/wqflask/templates/show_trait_transform_and_filter.html @@ -4,7 +4,7 @@ Reset option as needed.

-
+
+ + + + + + + + +
{% if sample_groups[0].attributes %} -
+
+ {% for attribute in sample_groups[0].attributes %} + {% if sample_groups[0].attributes[attribute].distinct_values|length <= 10 %} + + {% endif %} + {% endfor %} + + + + +
+ {% endif %}
- + + {% if sample_groups[0].attributes %} + + {% endif %}
- {% if sample_groups[0].attributes %} -
- - - - -
- {% endif %}
-- cgit v1.2.3