From ce3364aad83938f1d84234aef6f4a19277637116 Mon Sep 17 00:00:00 2001
From: Sam Ockman
Date: Sat, 21 Jul 2012 19:39:31 -0400
Subject: checkpoint
---
wqflask/wqflask/show_trait/DataEditingPage.py | 12 ++++++---
.../new/javascript/trait_data_and_analysis.coffee | 20 +++++++++------
.../new/javascript/trait_data_and_analysis.js | 29 ++++++++++++++++------
3 files changed, 43 insertions(+), 18 deletions(-)
diff --git a/wqflask/wqflask/show_trait/DataEditingPage.py b/wqflask/wqflask/show_trait/DataEditingPage.py
index 610124ae..68de5ae4 100755
--- a/wqflask/wqflask/show_trait/DataEditingPage.py
+++ b/wqflask/wqflask/show_trait/DataEditingPage.py
@@ -227,9 +227,15 @@ class DataEditingPage(templatePage):
# """)
self.basic_table['columns'] = yaml.load("""
- - All Cases
- - BXD Only
- - Non-BXD Only
+ -
+ n: All Cases
+ t: all
+ -
+ n: BXD Only
+ t: primary
+ -
+ n: Non-BXD Only
+ t: other
""")
print(pf(self.basic_table))
diff --git a/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee b/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee
index 2c912f05..1f59788c 100644
--- a/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee
+++ b/wqflask/wqflask/static/new/javascript/trait_data_and_analysis.coffee
@@ -58,8 +58,9 @@ $ ->
make_table = ->
header = " "
rows = [
@@ -90,7 +91,7 @@ $ ->
row_line += """ "
for column in basic_table['columns']
- the_id = process_id("column_" + column)
- header += """#{ column } """
+ console.log("column:", column)
+ the_id = process_id("column", column.t)
+ header += """#{ column.n } """
header += "