From 52751a5600245af7608441dbb39e99264668ecdb Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 11 Sep 2015 22:35:47 +0000 Subject: Fixed issue causing error if trying to use Heatmap or Correlation Matrix with an empty collection Fixed tables in correlation page and trait page to separate index column and checkbox column --- wqflask/wqflask/templates/correlation_page.html | 17 ++--- wqflask/wqflask/templates/empty_collection.html | 15 +++++ wqflask/wqflask/templates/show_trait.html | 2 + .../wqflask/templates/show_trait_edit_data.html | 9 +-- wqflask/wqflask/views.py | 73 +++++++++++++--------- 5 files changed, 71 insertions(+), 45 deletions(-) create mode 100644 wqflask/wqflask/templates/empty_collection.html (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index 62407555..d44fd2d4 100755 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -26,6 +26,7 @@
{% for header in target_dataset.header_fields %} {% if header == 'Max LRS' %} | Max LRS ? |
@@ -78,10 +79,9 @@
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{ loop.index }} - + | + | {{ loop.index }} |
{% endblock %}
diff --git a/wqflask/wqflask/templates/empty_collection.html b/wqflask/wqflask/templates/empty_collection.html
new file mode 100644
index 00000000..3f2b3786
--- /dev/null
+++ b/wqflask/wqflask/templates/empty_collection.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block title %}{{ tool }}{% endblock %}
+{% block content %}
+
+ {{ header("Error") }}
+
+
+
+
+
+
+
+
+{% endblock %}
diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html
index 0709a82f..55464635 100755
--- a/wqflask/wqflask/templates/show_trait.html
+++ b/wqflask/wqflask/templates/show_trait.html
@@ -199,6 +199,7 @@
{% if sample_groups[0].se_exists() %}
$('#samples_primary, #samples_other').DataTable( {
"columns": [
+ { "bSortable": false },
{ "type": "natural" },
{ "type": "natural" },
{ "type": "cust-txt" },
@@ -228,6 +229,7 @@
$('#samples_primary, #samples_other').DataTable( {
"columns": [
+ { "bSortable": false },
{ "type": "natural" },
null,
{ "type": "cust-txt" }
diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html
index ca8e02de..d39df976 100755
--- a/wqflask/wqflask/templates/show_trait_edit_data.html
+++ b/wqflask/wqflask/templates/show_trait_edit_data.html
@@ -81,6 +81,7 @@
You must select at least one trait to use the {{ tool }}. +
|