aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/templates
diff options
context:
space:
mode:
authorzsloan2015-07-23 16:20:55 +0000
committerzsloan2015-07-23 16:20:55 +0000
commitc053ff453e6c8354e61b227d028378712ab240d6 (patch)
tree1b754cb3c1e6670c9078c799b0990313169b54d1 /wqflask/wqflask/templates
parent1e190b22c35c5a7d71eafa8c7136fd9b8cbd0688 (diff)
downloadgenenetwork2-c053ff453e6c8354e61b227d028378712ab240d6.tar.gz
Committing most recent changes to tables so Lei can pull; still have a few more issues to resolve, like setting initial column width
Diffstat (limited to 'wqflask/wqflask/templates')
-rwxr-xr-xwqflask/wqflask/templates/correlation_page.html27
-rwxr-xr-xwqflask/wqflask/templates/search_result_page.html55
-rwxr-xr-xwqflask/wqflask/templates/show_trait.html131
-rwxr-xr-xwqflask/wqflask/templates/show_trait_edit_data.html25
4 files changed, 131 insertions, 107 deletions
diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html
index b60b4ea9..d53f930d 100755
--- a/wqflask/wqflask/templates/correlation_page.html
+++ b/wqflask/wqflask/templates/correlation_page.html
@@ -144,6 +144,7 @@
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/jquery.dataTables.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.naturalSort.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.colResize.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.colReorder.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/DT_bootstrap/DT_bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/TableTools/media/js/TableTools.min.js"></script>
<script language="javascript" type="text/javascript" src="//cdn.datatables.net/fixedheader/2.1.2/js/dataTables.fixedHeader.min.js"></script>
@@ -228,15 +229,14 @@
{ "type": "natural" },
{ "type": "natural" }
],
- "sDom": "Ztir",
+ "sDom": "RJtir",
"iDisplayLength": -1,
"autoWidth": true,
"bLengthChange": true,
"bDeferRender": true,
"bSortClasses": false,
- "scrollY": "600px",
- "scrollX": true,
- "scrollCollapse": true,
+ "scrollY": "700px",
+ "scrollCollapse": false,
"colResize": {
"tableWidthFixed": false
},
@@ -257,15 +257,14 @@
{ "type": "natural" },
{ "type": "natural" }
],
- "sDom": "Ztir",
+ "sDom": "RJtir",
"iDisplayLength": -1,
"autoWidth": true,
"bLengthChange": true,
"bDeferRender": true,
"bSortClasses": false,
- "scrollY": "600px",
- "scrollX": true,
- "scrollCollapse": true,
+ "scrollY": "700px",
+ "scrollCollapse": false,
"colResize": {
"tableWidthFixed": false
},
@@ -281,15 +280,14 @@
{ "type": "natural" },
{ "type": "natural" }
],
- "sDom": "Ztir",
+ "sDom": "RJtir",
"iDisplayLength": -1,
"autoWidth": true,
"bLengthChange": true,
"bDeferRender": true,
"bSortClasses": false,
- "scrollY": "600px",
- "scrollX": true,
- "scrollCollapse": true,
+ "scrollY": "700px",
+ "scrollCollapse": false,
"colResize": {
"tableWidthFixed": false
},
@@ -298,11 +296,6 @@
{% endif %}
console.timeEnd("Creating table");
- var table = $('#corr_results').DataTable();
- //new $.fn.dataTable.FixedHeader( table );
- new $.fn.dataTable.FixedColumns( table );
-
-
});
</script>
{% endblock %}
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 1ae2a25a..7c8bdb1b 100755
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -4,7 +4,7 @@
<link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/css/jquery.dataTables.css" />
<link rel="stylesheet" type="text/css" href="/static/packages/DT_bootstrap/DT_bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/static/packages/TableTools/media/css/TableTools.css" />
- <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/fixedheader/2.1.2/css/dataTables.fixedHeader.css" >
+ <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/extensions/dataTables.fixedHeader.css" >
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/fixedcolumns/3.0.4/css/dataTables.fixedColumns.css">
{% endblock %}
{% block content %}
@@ -47,7 +47,7 @@
<button class="btn btn-primary"><span class="glyphicon glyphicon-download"></span> Download Table</button>
<br />
<br />
- <table class="table table-hover table-striped" id='trait_table' {% if dataset.type == 'Geno' %} width="400px" style="float: left;"{% endif %}>
+ <table class="table table-hover table-striped" id='trait_table' {% if dataset.type == 'Geno' %}width="400px"{% endif %} style="float: left;">
<thead>
<tr>
{% for header in header_fields %}
@@ -119,11 +119,11 @@
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/jquery.dataTables.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.naturalSort.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.colResize.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.colReorder.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.fixedHeader.js"></script>
+ <script language="javascript" type="text/javascript" src="//cdn.datatables.net/fixedcolumns/3.0.4/js/dataTables.fixedColumns.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/DT_bootstrap/DT_bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/TableTools/media/js/TableTools.min.js"></script>
- <script language="javascript" type="text/javascript" src="//cdn.datatables.net/fixedheader/2.1.2/js/dataTables.fixedHeader.min.js"></script>
- <script language="javascript" type="text/javascript" src="//cdn.datatables.net/fixedcolumns/3.0.4/js/dataTables.fixedColumns.min.js"></script>
-
<script type="text/javascript" charset="utf-8">
function getValue(x) {
@@ -173,28 +173,33 @@
console.time("Creating table");
{% if dataset.type == 'ProbeSet' %}
- $('#trait_table').dataTable( {
+ $('#trait_table').DataTable( {
"columns": [
{ "type": "natural" },
{ "type": "natural" },
{ "type": "natural" },
- { "type": "natural", "width": "35%"},
- { "type": "natural", "width": "15%"},
{ "type": "natural" },
- { "type": "natural", "width": "8%"},
- { "type": "natural", "width": "15%"},
- { "type": "natural", "width": "7%"}
+ { "type": "natural" },
+ { "type": "natural" },
+ { "type": "natural" },
+ { "type": "natural" },
+ { "type": "natural" }
],
- "sDom": "Ztir",
+ "sDom": "RJtir",
"iDisplayLength": -1,
"autoWidth": true,
"bLengthChange": true,
"bDeferRender": true,
"bSortClasses": false,
+ "scrollY": "700px",
+ "scrollCollapse": false,
+ "colResize": {
+ "tableWidthFixed": false,
+ },
"paging": false
} );
{% elif dataset.type == 'Publish' %}
- $('#trait_table').dataTable( {
+ $('#trait_table').DataTable( {
"columns": [
{ "type": "natural" },
{ "type": "natural" },
@@ -205,36 +210,46 @@
{ "type": "natural", "width": "15%"},
{ "type": "natural" }
],
- "sDom": "Ztir",
+ "sDom": "RJtir",
"iDisplayLength": -1,
"autoWidth": true,
"bLengthChange": true,
"bDeferRender": true,
"bSortClasses": false,
+ "scrollY": "700px",
+ "scrollCollapse": false,
+ "colResize": {
+ "tableWidthFixed": false,
+ },
"paging": false
} );
{% elif dataset.type == 'Geno' %}
- $('#trait_table').dataTable( {
+ $('#trait_table').DataTable( {
"columns": [
{ "type": "natural" },
{ "type": "natural" },
{ "type": "natural", "width": "40%"}
],
- "sDom": "Ztir",
+ "sDom": "RJtir",
"iDisplayLength": -1,
"autoWidth": true,
"bLengthChange": true,
"bDeferRender": true,
"bSortClasses": false,
+ "scrollY": "700px",
+ "scrollCollapse": false,
+ "colResize": {
+ "tableWidthFixed": false,
+ },
"paging": false
} );
{% endif %}
console.timeEnd("Creating table");
-
- var table = $('#trait_table').DataTable();
- new $.fn.dataTable.FixedHeader( table );
- new $.fn.dataTable.FixedColumns( table );
+ //var table = $('#trait_table').DataTable();
+ //new $.fn.dataTable.FixedHeader( table );
+ //new $.fn.dataTable.FixedColumns( table );
+
});
</script>
{% endblock %}
diff --git a/wqflask/wqflask/templates/show_trait.html b/wqflask/wqflask/templates/show_trait.html
index cdde5d9d..b4d6b85b 100755
--- a/wqflask/wqflask/templates/show_trait.html
+++ b/wqflask/wqflask/templates/show_trait.html
@@ -13,6 +13,8 @@
<link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/css/jquery.dataTables.css" />
<link rel="stylesheet" type="text/css" href="/static/packages/DT_bootstrap/DT_bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/static/packages/TableTools/media/css/TableTools.css" />
+ <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/extensions/dataTables.fixedHeader.css" >
+ <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/fixedcolumns/3.0.4/css/dataTables.fixedColumns.css">
{% endblock %}
{% block content %} <!-- Start of body -->
@@ -146,6 +148,10 @@
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/jquery.dataTables.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.scientific.js"></script>
<script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/js/dataTables.naturalSort.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.colResize.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.colReorder.js"></script>
+ <script language="javascript" type="text/javascript" src="/static/new/packages/DataTables/extensions/dataTables.fixedHeader.js"></script>
+ <script language="javascript" type="text/javascript" src="//cdn.datatables.net/fixedcolumns/3.0.4/js/dataTables.fixedColumns.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/DT_bootstrap/DT_bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="/static/packages/TableTools/media/js/TableTools.min.js"></script>
<script type="text/javascript" charset="utf-8">
@@ -195,68 +201,79 @@
});
console.time("Creating table");
-
- {% if sample_groups[0].se_exists() %}
- $('#samples_primary, #samples_other').find("tr.outlier").css('background-color', 'yellow')
- $('#samples_primary, #samples_other').dataTable( {
- //"sDom": "<<'span3'l><'span3'T><'span4'f>'row-fluid'r>t<'row-fluid'<'span6'i><'span6'p>>",
- "aoColumns": [
- { "sType": "natural" },
- null,
- { "sType": "cust-txt" },
- { "bSortable": false },
- { "sType": "cust-txt" }
+
+ $('#samples_primary, #samples_other').find("tr.outlier").css('background-color', 'yellow')
+ {% if sample_groups[0].se_exists() %}
+ $('#samples_primary, #samples_other').DataTable( {
+ "columns": [
+ { "type": "natural" },
+ { "type": "natural" },
+ { "type": "cust-txt" },
+ { "bSortable": false },
+ { "type": "cust-txt" }
+ ],
+ "sDom": "RJtir",
+ "oTableTools": {
+ "aButtons": [
+ "copy",
+ "print",
+ {
+ "sExtends": "collection",
+ "sButtonText": 'Save <span class="caret" />',
+ "aButtons": [ "csv", "xls", "pdf" ]
+ }
],
- "sDom": "ftr",
- "oTableTools": {
- "aButtons": [
- "copy",
- "print",
- {
- "sExtends": "collection",
- "sButtonText": 'Save <span class="caret" />',
- "aButtons": [ "csv", "xls", "pdf" ]
- }
- ],
- "sSwfPath": "/static/packages/TableTools/media/swf/copy_csv_xls_pdf.swf"
- },
- "bPaginate": false,
- "bLengthChange": true,
- "bDeferRender": true,
- "bSortClasses": false
- } );
- console.timeEnd("Creating table");
+ "sSwfPath": "/static/packages/TableTools/media/swf/copy_csv_xls_pdf.swf"
+ },
+ "iDisplayLength": -1,
+ "autoWidth": true,
+ "bLengthChange": true,
+ "bDeferRender": true,
+ "bSortClasses": false,
+ "scrollY": "600px",
+ "scrollCollapse": false,
+ "colResize": {
+ "tableWidthFixed": false
+ },
+ "paging": false
+ } );
+ console.timeEnd("Creating table");
{% else %}
-
-
- console.time("Creating table");
+ console.time("Creating table");
- $('#samples_primary, #samples_other').dataTable( {
- //"sDom": "<<'span3'l><'span3'T><'span4'f>'row-fluid'r>t<'row-fluid'<'span6'i><'span6'p>>",
- "aoColumns": [
- { "sType": "natural" },
- null,
- { "sType": "cust-txt" }
+ $('#samples_primary, #samples_other').DataTable( {
+ "columns": [
+ { "type": "natural" },
+ null,
+ { "type": "cust-txt" }
+ ],
+ "sDom": "RJtir",
+ "oTableTools": {
+ "aButtons": [
+ "copy",
+ "print",
+ {
+ "sExtends": "collection",
+ "sButtonText": 'Save <span class="caret" />',
+ "aButtons": [ "csv", "xls", "pdf" ]
+ }
],
- "sDom": "ftr",
- "oTableTools": {
- "aButtons": [
- "copy",
- "print",
- {
- "sExtends": "collection",
- "sButtonText": 'Save <span class="caret" />',
- "aButtons": [ "csv", "xls", "pdf" ]
- }
- ],
- "sSwfPath": "/static/packages/TableTools/media/swf/copy_csv_xls_pdf.swf"
- },
- "bPaginate": false,
- "bLengthChange": true,
- "bDeferRender": true,
- "bSortClasses": false
- } );
+ "sSwfPath": "/static/packages/TableTools/media/swf/copy_csv_xls_pdf.swf"
+ },
+ "iDisplayLength": -1,
+ "autoWidth": true,
+ "bLengthChange": true,
+ "bDeferRender": true,
+ "bSortClasses": false,
+ "scrollY": "600px",
+ "scrollX": true,
+ "scrollCollapse": false,
+ "colResize": {
+ "tableWidthFixed": false
+ },
+ "paging": false
+ } );
{% endif %}
});
</script>
diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html
index a02dc409..8c919ee0 100755
--- a/wqflask/wqflask/templates/show_trait_edit_data.html
+++ b/wqflask/wqflask/templates/show_trait_edit_data.html
@@ -73,26 +73,25 @@
<br>
- <div id="edit_sample_lists">
+ <!--<div id="edit_sample_lists">-->
{% for sample_type in sample_groups %}
- <div class="sample_group">
+ <!--<div class="sample_group">-->
<h3>{{ sample_type.header }}</h3>
- <table cellpadding="0" cellspacing="0" border="0" class="table table-hover table-striped table-bordered"
- id="samples_{{ sample_type.sample_group_type }}">
+ <table class="table table-hover table-striped" id="samples_{{ sample_type.sample_group_type }}" style="float: left;">
<thead>
<tr>
- <td>Index</td>
- <td>Sample</td>
- <td>Value</td>
+ <th>Index</td>
+ <th>Sample</td>
+ <th>Value</td>
{% if sample_type.se_exists() %}
- <td>&nbsp;</td>
- <td>SE</td>
+ <th>&nbsp;</td>
+ <th>SE</td>
{% endif %}
{% for attribute in sample_type.attributes|sort() %}
- <td>
+ <th>
{{ sample_type.attributes[attribute].name }}
- </td>
+ </th>
{% endfor %}
</tr>
</thead>
@@ -148,9 +147,9 @@
{% endfor %}
</tbody>
</table>
- </div>
+ <!--</div>-->
{% endfor %}
- </div>
+ <!--</div>-->
<input type="hidden" name="Default_Name">