From 1320283cb1374365777dbe61e9c4ec6d42cba40d Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 29 Sep 2020 16:10:07 -0500 Subject: Made a variety of changes to table pages * wqflask/wqflask/static/new/css/show_trait.css - Adding position relative and a 2px offset for glyphicons to make them better align with button text * wqflask/wqflask/templates/collections/view.html - Added glyphicon to Download button, changed a couple head names (Peak Location and Effect Size), made Location and Peak Location columns the same width, and made the "?" glossary links a little larger and red * wqflask/wqflask/templates/search_result_page.html - same as above * wqflask/wqflask/templates/show_trait_edit_data.html - Added glyphicon to Export button --- wqflask/wqflask/static/new/css/show_trait.css | 5 +++++ wqflask/wqflask/templates/collections/view.html | 10 ++++------ wqflask/wqflask/templates/search_result_page.html | 20 ++++++++++---------- wqflask/wqflask/templates/show_trait_edit_data.html | 2 +- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/wqflask/wqflask/static/new/css/show_trait.css b/wqflask/wqflask/static/new/css/show_trait.css index 338302af..92deab20 100644 --- a/wqflask/wqflask/static/new/css/show_trait.css +++ b/wqflask/wqflask/static/new/css/show_trait.css @@ -46,4 +46,9 @@ table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td { table.dataTable.cell-border tbody tr th:first-child, table.dataTable.cell-border tbody tr td:first-child { border-left: 1px solid #ccc; +} + +.glyphicon { + position: relative; + top: 2px; } \ No newline at end of file diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html index 13d45d62..ca8aece3 100644 --- a/wqflask/wqflask/templates/collections/view.html +++ b/wqflask/wqflask/templates/collections/view.html @@ -16,8 +16,6 @@

This collection has {{ '{}'.format(numify(trait_obs|count, "record", "records")) }}

- -
@@ -77,7 +75,7 @@ - + @@ -99,9 +97,9 @@ Description Location Mean - Max LRS ? - Max LRS Location - Additive Effect ? + Max LRS ? + Peak Location + Effect Size ? diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html index 282e752d..487c6980 100644 --- a/wqflask/wqflask/templates/search_result_page.html +++ b/wqflask/wqflask/templates/search_result_page.html @@ -127,7 +127,7 @@ - + @@ -315,20 +315,20 @@ 'orderSequence': [ "desc", "asc"] }, { - 'title': "Max LRS?", + 'title': "Max LRS ?", 'type': "natural-minus-na", 'data': "lrs_score", 'width': "80px", 'orderSequence': [ "desc", "asc"] }, { - 'title': "Max LRS Location", + 'title': "Peak Location", 'type': "natural-minus-na", - 'width': "150px", + 'width': "120px", 'data': "lrs_location" }, { - 'title': "Additive Effect?", + 'title': "Effect Size ?", 'type': "natural-minus-na", 'data': "additive", 'width': "120px", @@ -390,20 +390,20 @@ 'orderSequence': [ "desc", "asc"] }, { - 'title': "Max LRS?", + 'title': "Max LRS ?", 'type': "natural-minus-na", 'data': "lrs_score", 'width': "80px", 'orderSequence': [ "desc", "asc"] }, { - 'title': "Max LRS Location", + 'title': "Peak Location", 'type': "natural-minus-na", - 'width': "150px", + 'width': "120px", 'data': "lrs_location" }, { - 'title': "Additive Effect?", + 'title': "Effect Size ?", 'type': "natural-minus-na", 'width': "120px", 'data': "additive", @@ -412,7 +412,7 @@ { 'title': "Location", 'type': "natural-minus-na", - 'width': "140px", + 'width': "120px", 'data': "location" }{% endif %} ], diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html index 05a2be73..a8ed91b1 100644 --- a/wqflask/wqflask/templates/show_trait_edit_data.html +++ b/wqflask/wqflask/templates/show_trait_edit_data.html @@ -5,7 +5,7 @@
- +