From 69d1bdaf05a491148101e61bb3ec0d011ca5a90a Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 9 Jan 2020 14:35:41 -0600 Subject: Added R and python import code for trait page export --- wqflask/wqflask/static/new/javascript/show_trait.js | 5 +++++ wqflask/wqflask/templates/show_trait_edit_data.html | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js index f3f38541..7fb718cd 100644 --- a/wqflask/wqflask/static/new/javascript/show_trait.js +++ b/wqflask/wqflask/static/new/javascript/show_trait.js @@ -796,6 +796,11 @@ export_sample_table_data = function() { }; $('.export_format').change(function() { + if (this.value == "csv"){ + $('#export_code').css("display", "block") + } else{ + $('#export_code').css("display", "none") + } $('input[name=export_format]').val( this.value ); $('.export_format').val( this.value ); }); diff --git a/wqflask/wqflask/templates/show_trait_edit_data.html b/wqflask/wqflask/templates/show_trait_edit_data.html index c3052866..ddc58784 100644 --- a/wqflask/wqflask/templates/show_trait_edit_data.html +++ b/wqflask/wqflask/templates/show_trait_edit_data.html @@ -12,6 +12,18 @@ + +
{% set outer_loop = loop %}