From 5fdb3b83566516782542d04b92a5be97f41c2330 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Tue, 13 Oct 2020 15:25:54 -0500
Subject: Added right-alignment for trait_value_input text fields in sample
table to CSS file instead of setting it as a style in
initialize_show_trait_tables.js
---
wqflask/wqflask/static/new/css/show_trait.css | 8 ++++++++
.../static/new/javascript/initialize_show_trait_tables.js | 12 ++++++------
2 files changed, 14 insertions(+), 6 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/static/new/css/show_trait.css b/wqflask/wqflask/static/new/css/show_trait.css
index 338302af..853819ea 100644
--- a/wqflask/wqflask/static/new/css/show_trait.css
+++ b/wqflask/wqflask/static/new/css/show_trait.css
@@ -46,4 +46,12 @@ 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;
+}
+
+.checkbox {
+ min-height: 20px;
+}
+
+.trait_value_input {
+ text-align: right;
}
\ No newline at end of file
diff --git a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
index 5be3c790..97b71306 100644
--- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
+++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js
@@ -16,7 +16,7 @@ build_columns = function() {
'orderDataType': "dom-checkbox",
'searchable' : false,
'render': function(data, type, row, meta) {
- return ''
+ return ''
}
},
{
@@ -42,7 +42,7 @@ build_columns = function() {
if (data.value == null) {
return ''
} else {
- return ''
+ return ''
}
}
}
@@ -66,9 +66,9 @@ build_columns = function() {
'data': null,
'render': function(data, type, row, meta) {
if (data.variance == null) {
- return ''
+ return ''
} else {
- return ''
+ return ''
}
}
}
@@ -84,9 +84,9 @@ build_columns = function() {
'data': null,
'render': function(data, type, row, meta) {
if (data.num_cases == null || data.num_cases == undefined) {
- return ''
+ return ''
} else {
- return ''
+ return ''
}
}
}
--
cgit v1.2.3