From a35ebbb9773ce04b48692501b56505bcde97ed4b Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 27 Jul 2015 22:45:34 +0000 Subject: Committing a few more changes to tables before pulling Lei's global search updates --- wqflask/wqflask/templates/search_result_page.html | 39 +++++++++++++--------- wqflask/wqflask/templates/show_trait.html | 7 ++-- .../wqflask/templates/show_trait_edit_data.html | 6 ++-- 3 files changed, 29 insertions(+), 23 deletions(-) diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index 7c8bdb1b..b9bb65fd 100755 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -39,14 +39,16 @@

To study a record, click on its ID below. Check records below and click Add button to add to selection.

-
- - - - - -
-
+
+ + + + + + +
+
+
@@ -104,6 +106,7 @@
+
@@ -178,16 +181,16 @@ { "type": "natural" }, { "type": "natural" }, { "type": "natural" }, + { "type": "natural", "width": "30%" }, + { "type": "natural", "width": "15%" }, { "type": "natural" }, { "type": "natural" }, - { "type": "natural" }, - { "type": "natural" }, - { "type": "natural" }, + { "type": "natural", "width": "15%" }, { "type": "natural" } ], "sDom": "RJtir", "iDisplayLength": -1, - "autoWidth": true, + "autoWidth": false, "bLengthChange": true, "bDeferRender": true, "bSortClasses": false, @@ -212,7 +215,7 @@ ], "sDom": "RJtir", "iDisplayLength": -1, - "autoWidth": true, + "autoWidth": false, "bLengthChange": true, "bDeferRender": true, "bSortClasses": false, @@ -232,7 +235,7 @@ ], "sDom": "RJtir", "iDisplayLength": -1, - "autoWidth": true, + "autoWidth": false, "bLengthChange": true, "bDeferRender": true, "bSortClasses": false, @@ -245,8 +248,12 @@ } ); {% endif %} console.timeEnd("Creating table"); - - //var table = $('#trait_table').DataTable(); + + $('#redraw').click(function() { + var table = $('#trait_table').DataTable(); + table.colReorder.reset() + }); + //new $.fn.dataTable.FixedHeader( table ); //new $.fn.dataTable.FixedColumns( table ); diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html index b4d6b85b..40f6eafd 100755 --- a/wqflask/wqflask/templates/show_trait.html +++ b/wqflask/wqflask/templates/show_trait.html @@ -145,7 +145,7 @@ - + @@ -226,7 +226,7 @@ "sSwfPath": "/static/packages/TableTools/media/swf/copy_csv_xls_pdf.swf" }, "iDisplayLength": -1, - "autoWidth": true, + "autoWidth": false, "bLengthChange": true, "bDeferRender": true, "bSortClasses": false, @@ -262,12 +262,11 @@ "sSwfPath": "/static/packages/TableTools/media/swf/copy_csv_xls_pdf.swf" }, "iDisplayLength": -1, - "autoWidth": true, + "autoWidth": false, "bLengthChange": true, "bDeferRender": true, "bSortClasses": false, "scrollY": "600px", - "scrollX": true, "scrollCollapse": false, "colResize": { "tableWidthFixed": false diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html index 8c919ee0..5c7b0417 100755 --- a/wqflask/wqflask/templates/show_trait_edit_data.html +++ b/wqflask/wqflask/templates/show_trait_edit_data.html @@ -75,10 +75,10 @@ {% for sample_type in sample_groups %} - +

{{ sample_type.header }}

- +
Index @@ -147,7 +147,7 @@ {% endfor %}
- +
{% endfor %} -- cgit v1.2.3